/* --- Notification System --- */
.notification-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    pointer-events: none;
}

.notification {
    background-color: #2a2a2a;
    color: #ffffff;
    padding: 16px 24px;
    border-radius: 12px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-left: 4px solid #f1c40f;
    min-width: 300px;
    max-width: 400px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    pointer-events: auto;
    position: relative;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

.notification.success {
    border-left-color: #27ae60;
}

.notification.error {
    border-left-color: #e74c3c;
}

.notification.warning {
    border-left-color: #f39c12;
}

.notification.info {
    border-left-color: #3498db;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.notification-text {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* --- Global Styles --- */
:root {
    --primary-bg: #121212;
    --secondary-bg: #212121;
    --accent-gold: #FACC15;
    --text-color: #D1D5DB;
    --text-white: #FFFFFF;
    --win-green: #34D399;
    --lose-red: #EF4444;
    --font-main: 'Inter', sans-serif;
}

body {
    font-family: var(--font-main);
    background-color: var(--primary-bg);
    color: var(--text-color);
    margin: 0;
    display: flex;
    justify-content: center;
}

.main-container {
    width: 100%;
    max-width: 420px; /* Mobile-first, fixed width for desktop */
    background-color: var(--primary-bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
}

.content {
    flex-grow: 1;
    padding: 20px;
}

/* --- Header --- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: var(--secondary-bg);
}

.logo, .page-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-white);
}

.auth-buttons button, .submit-btn {
    background: none;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    margin-left: 10px;
}

.auth-buttons button:last-child, .submit-btn {
    background-color: var(--accent-gold);
    color: #000;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-color);
    margin: 15px 0;
    align-self: flex-start; /* Align this specific item to the start (left) */
    white-space: nowrap; /* Prevent text from wrapping */
}


.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #2a2a2a;
    padding: 8px 16px;
    border-radius: 20px;
}

.user-info #user-balance {
    color: #fff;
    font-weight: bold;
    font-size: 1.1rem;
}

.refresh-btn {
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.refresh-btn:hover {
    opacity: 0.8;
}

.refresh-btn .refresh-icon {
    width: 18px;
    height: 18px;
    /* Yellow color filter to match the reference design */
    filter: brightness(0) saturate(100%) invert(81%) sepia(58%) saturate(938%) hue-rotate(359deg) brightness(103%) contrast(101%);
}

/* Spin animation for refresh button */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}



/* Spin animation for refresh button */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.auth-buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
}

/* --- Banner --- */
.banner {
    height: 120px; /* Or any desired height */
    background-color: #2a2a2a; /* Placeholder background */
    border-radius: 15px;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #555;
    font-weight: bold;
}

/* --- Roulette --- */
.roulette-section {
    display: flex;
    justify-content: center;
    align-items: center;
}
.roulette-wheel-container {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Final Pure SVG Roulette Wheel Styles */
.roulette-wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    background-color: #1a1a1a;
    border: 3px solid #444;
    box-shadow: 0 0 15px rgba(0,0,0,0.5) inset;
}

.roulette-svg {
    width: 100%;
    height: 100%;
    transition: transform 5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.segment-value {
    fill: #ffffff;
    font-size: 24px; /* Adjusted for SVG text */
    font-weight: bold;
    text-anchor: middle; /* Center text horizontally */
    dominant-baseline: middle; /* Center text vertically */
}


.roulette-pointer {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 20px solid var(--accent-gold);
    z-index: 10;
}

.spin-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(45deg, #D4AF37, #FFD700);
    color: #000;
    border: none;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.spin-text {
    font-size: 1rem;
    line-height: 1;
}

.spin-price {
    font-size: 0.7rem;
    line-height: 1;
    opacity: 0.8;
}


/* --- Footer --- */
.footer {
    background-color: var(--secondary-bg);
    position: sticky;
    bottom: 0;
    width: 100%;
    max-width: 420px;
}
.nav-bar {
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    background-color: #2a2a2a;
}
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #ffffff !important;
    font-size: 0.8rem;
    transition: color 0.2s ease;
}
.nav-item svg {
    width: 28px;
    height: 28px;
    stroke-width: 2;
    stroke: #ffffff;
    fill: none;
    display: block;
}
.nav-item.active {
    color: #f1c40f !important;
}
.nav-item.active svg {
    stroke: #f1c40f !important;
}

/* --- Agente Page --- */
.agente-content {
    padding: 20px;
}

.invitation-section {
    margin-bottom: 30px;
}

.invitation-section h2 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: normal;
}

.invitation-link-container {
    display: flex;
    align-items: center;
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 4px;
    gap: 8px;
}

#invitation-link {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    padding: 12px 16px;
    font-size: 0.9rem;
    outline: none;
}

.copy-btn {
    background-color: #f1c40f;
    border: none;
    border-radius: 6px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #000000;
    transition: background-color 0.2s ease;
}

.copy-btn:hover {
    background-color: #e6b800;
}

.team-section {
    margin-top: 30px;
}

.team-section h3 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: normal;
}

.team-list-container {
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 20px;
}

.empty-team {
    text-align: center;
    color: #888888;
}

.empty-team p {
    margin: 8px 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* --- Modal --- */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}

.modal[style*="flex"] {
    display: flex !important;
}
.modal-content {
    background-color: var(--secondary-bg);
    padding: 25px;
    border-radius: 15px;
    width: 90%;
    max-width: 380px;
    position: relative;
}
.close-button { float: right; font-size: 28px; cursor: pointer; }
.tabs { display: flex; border-bottom: 1px solid #444; margin-bottom: 20px; }
.tab-btn { background: none; border: none; color: var(--text-color); font-size: 1.1rem; padding: 10px 15px; cursor: pointer; }
.tab-btn.tab-active { color: var(--accent-gold); border-bottom: 3px solid var(--accent-gold); }

.form-container {
    display: flex;
    flex-direction: column;
}

.form-container input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background: #333;
    border: 1px solid #444;
    border-radius: 8px; /* Rounded corners */
    color: var(--text-white);
    box-sizing: border-box;
}

/* Scoped submit button style for the modal */
.form-container .submit-btn {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    margin-left: 0; /* Override global margin */
    font-size: 1rem;
}

/* === Slider Captcha Styles === */
.slider-captcha {
    margin: 15px 0;
    user-select: none;
}

.slider-track {
    position: relative;
    width: 100%;
    height: 40px;
    background: #333;
    border: 1px solid #444;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.slider-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    width: 0;
    transition: width 0.3s ease;
    border-radius: 7px;
}

.slider-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #888;
    font-size: 14px;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.slider-button {
    position: absolute;
    left: 2px;
    top: 2px;
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #333;
    cursor: grab;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.slider-button:active {
    cursor: grabbing;
    transform: scale(1.05);
}

.slider-captcha.verified .slider-fill {
    width: 100%;
}

.slider-captcha.verified .slider-text {
    opacity: 0;
}

.slider-captcha.verified .slider-button {
    left: calc(100% - 38px);
    background: #4CAF50;
    color: white;
}

.slider-captcha.verified .slider-button::before {
    content: '✓';
    font-size: 18px;
}

.form-container .submit-btn:disabled {
    background: #555;
    color: #888;
    cursor: not-allowed;
    opacity: 0.6;
}

.form-container .submit-btn:enabled {
    background: var(--accent-color);
    color: white;
    cursor: pointer;
}

/* --- Perfil Page --- */
.perfil-content { 
    padding-top: 30px; 
}
.user-profile-card { 
    background: var(--secondary-bg); 
    border-radius: 15px; 
    padding: 20px; 
    text-align: center; 
}
.profile-avatar { 
    width: 80px; 
    height: 80px; 
    border-radius: 50%; 
    border: 3px solid var(--accent-gold); 
    margin-bottom: 15px; 
}
.balance-display { 
    margin: 15px 0; 
    font-size: 1.2rem; 
}
.balance-display strong { 
    color: var(--win-green); 
    font-size: 1.5rem; 
}
.profile-actions { 
    display: flex; 
    gap: 15px; 
    margin-top: 20px; 
}

.btn-action { 
    flex: 1; 
    padding: 16px 12px;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-height: 80px;
    justify-content: center;
}

.btn-withdraw {
    border: 2px solid #f1c40f;
    background: transparent;
    color: #f1c40f;
}

.btn-withdraw:hover {
    background: rgba(241, 196, 15, 0.1);
}

.btn-deposit { 
    background: #f1c40f; 
    color: #000000;
    border: 2px solid #f1c40f;
}

.btn-deposit:hover {
    background: #e6b800;
    border-color: #e6b800;
}

.btn-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon svg {
    width: 24px;
    height: 24px;
}

.btn-action span {
    font-size: 0.9rem;
    font-weight: 600;
}
.menu-options { 
    margin-top: 20px; 
}
.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #2a2a2a;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 10px;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.hidden { display: none; }

/* --- Team Tabs Styles --- */
.team-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid #333;
}

.team-tab {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    color: #888;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.team-tab:hover {
    color: #f1c40f;
    background-color: rgba(241, 196, 15, 0.1);
}

.team-tab.active {
    color: #f1c40f;
    border-bottom-color: #f1c40f;
    background-color: rgba(241, 196, 15, 0.1);
}

.team-tab-content {
    display: none;
}

.team-tab-content.active {
    display: block;
}

/* --- Team Member Styles --- */
.team-member {
    background-color: #2a2a2a;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
}

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

.team-member-username {
    font-weight: bold;
    color: #f1c40f;
    font-size: 16px;
}

.team-member-time {
    color: #888;
    font-size: 14px;
}

.team-member-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #ccc;
}

.team-member-deposit {
    color: #27ae60;
    font-weight: bold;
}

.team-member-level {
    background-color: #3498db;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.team-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
    background-color: #2a2a2a;
    border-radius: 10px;
    padding: 15px;
}

.team-stat {
    text-align: center;
}

.team-stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #f1c40f;
    display: block;
}

.team-stat-label {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

/* --- Deposit Modal Styles --- */
.deposit-modal-content {
    background: #1a1a1a;
    border-radius: 20px;
    padding: 25px;
    max-width: 380px;
    width: 85%;
    margin: 0 auto;
    position: relative;
    border: 1px solid #333;
    max-height: 90vh;
    overflow-y: auto;
}

.deposit-header {
    text-align: center;
    margin-bottom: 25px;
}

.deposit-header h2 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

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

.payment-method-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #2a2a2a;
    border: 2px solid #27ae60;
    border-radius: 12px;
    padding: 15px;
    color: #27ae60;
    font-weight: 500;
}

.payment-method-item svg {
    color: #27ae60;
    flex-shrink: 0;
}

.amount-options {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    justify-content: center;
}

.amount-btn {
    flex: 1;
    padding: 15px 10px;
    background: #2a2a2a;
    border: 2px solid #444;
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

.amount-btn:hover {
    border-color: #f1c40f;
    background: rgba(241, 196, 15, 0.1);
}

.amount-btn.selected {
    border-color: #f1c40f;
    background: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
}

.custom-amount {
    margin-bottom: 25px;
}

#deposit-amount {
    width: calc(100% - 4px);
    padding: 15px;
    background: #2a2a2a;
    border: 2px solid #444;
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    text-align: center;
    outline: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

#deposit-amount:focus {
    border-color: #f1c40f;
}

#deposit-amount::placeholder {
    color: #888;
}

/* Hide number input arrows/spinners */
#deposit-amount::-webkit-outer-spin-button,
#deposit-amount::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#deposit-amount[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.amount-limits {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: #888;
}

.deposit-btn {
    width: 100%;
    padding: 16px;
    background: #f1c40f;
    border: none;
    border-radius: 12px;
    color: #000000;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.deposit-btn:hover {
    background: #e6b800;
    transform: translateY(-2px);
}

.deposit-btn:disabled {
    background: #555;
    color: #888;
    cursor: not-allowed;
    transform: none;
}

/* Responsive adjustments for deposit modal */
@media (max-width: 480px) {
    .deposit-modal-content {
        padding: 20px;
        margin: 20px;
    }
    
    .amount-options {
        flex-direction: column;
        gap: 10px;
    }
    
    .amount-btn {
        min-width: auto;
    }
}

/* === Saques Page Styles === */
.mobile-container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--bg-color);
    position: relative;
    padding: 0;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
}

.saques-header {
    background: var(--bg-color);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid #333;
}

.saques-header .back-btn {
    position: absolute;
    left: 20px;
}

.saques-content {
    padding: 20px;
    max-width: 100%;
    margin: 0;
}

.saques-info {
    margin-bottom: 30px;
    text-align: center;
}

.info-text {
    color: var(--accent-green);
    font-size: 16px;
    line-height: 1.4;
    margin: 0;
    font-weight: 500;
}

.password-section {
    margin-bottom: 30px;
}

.password-group {
    margin-bottom: 25px;
}

.password-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-color);
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 500;
}

.eye-icon {
    color: #888;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 4px;
    border-radius: 4px;
}

.eye-icon:hover {
    color: var(--accent-gold);
    background: rgba(241, 196, 15, 0.1);
}

.eye-icon:active {
    transform: scale(0.95);
}

.password-input-container {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.password-digit {
    width: 42px;
    height: 42px;
    background: #2a2a2a;
    border: 2px solid #444;
    border-radius: 8px;
    color: var(--text-color);
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
}

.password-digit:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: #333;
}

.password-digit:not(:placeholder-shown) {
    border-color: var(--accent-gold);
    background: #333;
}

.warning-section {
    margin-bottom: 40px;
    padding: 15px;
    background: rgba(241, 196, 15, 0.1);
    border-radius: 8px;
}

.warning-text {
    color: var(--accent-gold);
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}

.confirm-btn {
    width: 100%;
    padding: 15px;
    background: var(--accent-gold);
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.confirm-btn:hover {
    background: #e6b800;
    transform: translateY(-1px);
}

.confirm-btn:active {
    transform: translateY(0);
}

/* Back button styles */
.back-btn {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.header-title {
    color: var(--text-color);
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .mobile-container {
        max-width: 100%;
    }
    
    .saques-content {
        padding: 15px;
    }
    
    .password-digit {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    
    .password-input-container {
        gap: 6px;
    }
    
    .info-text {
        font-size: 15px;
    }
    
    .password-label {
        font-size: 15px;
    }
    
    .saques-header {
        padding: 12px 15px;
    }
    
    .header-title {
        font-size: 18px;
    }
}

/* === Withdrawal Form Styles === */
.withdrawal-form {
    margin-bottom: 30px;
}

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

.form-section h3 {
    color: var(--text-color);
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px 0;
}

.amount-input-section input {
    width: 100%;
    padding: 12px 15px;
    background: #2a2a2a;
    border: 2px solid #444;
    border-radius: 8px;
    color: var(--text-color);
    font-size: 16px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.amount-input-section input:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: #333;
}

.amount-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #888;
}

.radio-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px 15px;
    background: #2a2a2a;
    border: 2px solid #444;
    border-radius: 8px;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 80px;
}

.radio-option:hover {
    border-color: var(--accent-gold);
    background: #333;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-option input[type="radio"]:checked + .radio-custom {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    opacity: 1;
}

.radio-option:has(input[type="radio"]:checked) {
    border-color: var(--accent-gold);
    background: rgba(241, 196, 15, 0.1);
}

.radio-custom {
    width: 16px;
    height: 16px;
    border: 2px solid #666;
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: #000;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.radio-label {
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    background: #2a2a2a;
    border: 2px solid #444;
    border-radius: 8px;
    color: var(--text-color);
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: #333;
}

.input-help {
    display: block;
    color: #888;
    font-size: 12px;
    margin-top: 5px;
}

.withdrawal-summary {
    background: #2a2a2a;
    border: 2px solid #444;
    border-radius: 8px;
    padding: 15px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: var(--text-color);
    font-size: 14px;
}

.summary-row.total {
    border-top: 1px solid #444;
    padding-top: 8px;
    margin-top: 8px;
    font-weight: 600;
    color: var(--accent-gold);
}

.withdrawal-btn {
    width: 100%;
    padding: 15px;
    background: var(--accent-gold);
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.withdrawal-btn:hover {
    background: #e6b800;
    transform: translateY(-1px);
}

.withdrawal-btn:active {
    transform: translateY(0);
}

.withdrawal-btn:disabled {
    background: #666;
    color: #999;
    cursor: not-allowed;
    transform: none;
}

/* === Withdrawal History Styles === */
.withdrawal-history {
    margin-top: 30px;
}

.withdrawal-history h3 {
    color: var(--text-color);
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px 0;
}

.withdrawal-list {
    background: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
}

.empty-state {
    padding: 30px 20px;
    text-align: center;
    color: #888;
    font-size: 14px;
}

.withdrawal-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #333;
}

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

.withdrawal-info {
    flex: 1;
}

.withdrawal-amount {
    color: var(--text-color);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.withdrawal-details {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #888;
}

.withdrawal-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-pending {
    background: rgba(241, 196, 15, 0.2);
    color: var(--accent-gold);
}

.status-processing {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

.status-paid {
    background: rgba(39, 174, 96, 0.2);
    color: #27ae60;
}

.status-pay_failed,
.status-cancelled {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

/* Mobile responsive for withdrawal form */
@media (max-width: 480px) {
    .radio-group {
        display: flex;
        flex-direction: row;
        gap: 8px;
        justify-content: space-between;
    }
    
    .radio-option {
        flex: 1;
        min-width: 0;
        padding: 12px 8px;
        text-align: center;
        font-size: 14px;
    }
    
    .radio-label {
        font-size: 13px;
        white-space: nowrap;
    }
    
    .saques-content {
        padding: 20px 15px;
    }
    
    .amount-info {
        flex-direction: column;
        gap: 2px;
    }
    
    .withdrawal-details {
        flex-direction: column;
        gap: 2px;
    }
}

/* Desktop responsive */
@media (min-width: 768px) {
    .mobile-container {
        max-width: 480px;
        box-shadow: 0 0 20px rgba(0,0,0,0.3);
        margin: 20px auto;
        border-radius: 12px;
        overflow: hidden;
    }
}

/* === Team Tabs Styles === */
.team-tabs {
    display: flex;
    margin-top: 20px;
    margin-bottom: 20px;
    background: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    background: #2a2a2a;
    color: #888;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn.active {
    background: var(--accent-gold);
    color: #000;
}

.tab-btn:hover:not(.active) {
    background: #333;
    color: var(--text-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* === Registered Users Styles === */
.registered-users-list {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 20px;
    min-height: 200px;
}

.registered-user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #333;
}

.registered-user-item:last-child {
    border-bottom: none;
}

.registered-user-info {
    display: flex;
    flex-direction: column;
}

.registered-username {
    color: var(--text-color);
    font-weight: 500;
    font-size: 16px;
}

.registered-date {
    color: #888;
    font-size: 12px;
    margin-top: 2px;
}

.empty-team {
    text-align: center;
    color: #888;
    padding: 40px 20px;
}

.empty-team p {
    margin: 0;
    font-size: 14px;
}

/* === Level System Styles === */
.level-system {
    margin-top: 20px;
}

.level-item {
    background: #2a2a2a;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.level-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    background: #333;
    transition: background 0.3s ease;
}

.level-header:hover {
    background: #3a3a3a;
}

.level-name {
    font-weight: bold;
    color: var(--accent-gold);
    font-size: 16px;
}

.level-count {
    color: var(--text-color);
    font-size: 14px;
    background: #444;
    padding: 4px 8px;
    border-radius: 12px;
}

.level-arrow {
    color: var(--accent-gold);
    font-size: 12px;
    transition: transform 0.3s ease;
}

.level-item.expanded .level-arrow {
    transform: rotate(180deg);
}

.level-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.level-item.expanded .level-content {
    max-height: 500px;
}

.empty-level {
    padding: 20px;
    text-align: center;
    color: #888;
}

.member-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #444;
    background: #2a2a2a;
}

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

.member-info {
    flex: 1;
}

.member-name {
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 4px;
}

.member-invite {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.invite-link {
    background: #444;
    color: #ccc;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-family: monospace;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-invite-btn {
    background: #ffd700;
    color: #000;
    border: none;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-invite-btn:hover {
    background: #e6c200;
    transform: translateY(-1px);
}

.copy-invite-btn svg {
    width: 18px;
    height: 18px;
}

.member-status {
    color: var(--accent-green);
    font-size: 12px;
    background: rgba(46, 204, 113, 0.1);
    padding: 4px 8px;
    border-radius: 12px;
}

/* New styles for referral system */
.invite-link-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
}

.invite-link-input {
    flex: 1;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #fff;
    font-size: 12px;
    font-family: monospace;
}

.invite-link-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Duplicate styles removed - using the main definition above */

.member-progress {
    color: var(--primary-color);
    font-size: 12px;
    font-weight: bold;
    margin-top: 4px;
}

.team-stats {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}
