* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0f0f0f url('d60b953d2256c8ef9a7968ccacb8e2ed.gif') center center / cover no-repeat fixed;
    color: #ffffff;
    overflow-x: hidden;
}

html, body {
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
}

/* Evita zoom ao focar/editar inputs no mobile (iOS) */
input, select, textarea, button {
    font-size: 16px;
}

.app-container {
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
    background: linear-gradient(180deg, rgba(15, 15, 15, 0.5) 0%, rgba(15, 15, 15, 0.85) 100%);
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Mobile Header */
.mobile-header {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.app-name {
    font-weight: 600;
    font-size: 18px;
    background: linear-gradient(135deg, #00ff88, #00ccff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.notification-btn, .profile-btn {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    position: relative;
}

.notification-btn {
    font-size: 20px;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    border-radius: 10px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
}

.profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #00ff88;
}

/* Main Content */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 80px;
}

.page {
    display: none;
    padding: 20px;
    animation: fadeInUp 0.3s ease-out;
}

.page.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Page Header */
.page-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.back-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* Balance Section */
.balance-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

/* Card horizontal único - Saldo + Investimento */
.balance-section-horizontal {
    display: block;
    grid-template-columns: none;
}

.balance-card-horizontal {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 204, 255, 0.08));
    border: 1px solid rgba(0, 255, 136, 0.25);
    border-radius: 16px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.balance-card-horizontal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.5), transparent);
}

.balance-card-horizontal:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 255, 136, 0.15);
}

.balance-row {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 16px;
}

.balance-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.balance-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 6px;
}

.balance-label i {
    color: #00ff88;
    font-size: 14px;
}

.balance-value {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}

.balance-divider {
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(0, 255, 136, 0.4), transparent);
    min-height: 40px;
}

@media (max-width: 360px) {
    .balance-value { font-size: 17px; }
    .balance-row { gap: 12px; }
}

.balance-card {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 204, 255, 0.05));
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 16px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.balance-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.5), transparent);
}

.balance-card.secondary {
    background: linear-gradient(135deg, rgba(0, 204, 255, 0.1), rgba(0, 255, 136, 0.05));
    border-color: rgba(0, 204, 255, 0.2);
}

.balance-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.15);
}

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

.card-header h3 {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

.card-header i {
    color: #00ff88;
    font-size: 20px;
}

.card-amount {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ffffff, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-change {
    font-size: 12px;
    font-weight: 500;
}

.card-change.positive {
    color: #00ff88;
}

/* Packs Section */
.packs-section {
    margin-bottom: 32px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
}

.packs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.packs-loading,
.packs-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 32px 16px;
    color: rgba(255, 255, 255, 0.6);
}

.pack-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pack-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border-color: #00ff88;
}

.pack-card.premium {
    border-color: rgba(255, 193, 7, 0.3);
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 193, 7, 0.02));
}

.pack-card.vip {
    border-color: rgba(156, 39, 176, 0.3);
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.1), rgba(156, 39, 176, 0.02));
}

.pack-card.elite {
    border-color: rgba(255, 87, 34, 0.3);
    background: linear-gradient(135deg, rgba(255, 87, 34, 0.1), rgba(255, 87, 34, 0.02));
}

.pack-badge {
    position: absolute;
    top: -8px;
    right: 12px;
    background: #00ff88;
    color: #000000;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.pack-badge.premium {
    background: #ffc107;
}

.pack-badge.vip {
    background: #9c27b0;
    color: #ffffff;
}

.pack-badge.elite {
    background: #ff5722;
    color: #ffffff;
}

.pack-value {
    font-size: 28px;
    font-weight: 700;
    margin: 16px 0 8px 0;
    color: #ffffff;
}

.pack-return {
    font-size: 14px;
    color: #00ff88;
    font-weight: 500;
    margin-bottom: 20px;
}

.pack-btn {
    width: 100%;
    background: linear-gradient(135deg, #00ff88, #00ccff);
    border: none;
    color: #000000;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pack-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

/* Chat Section */
.chat-section {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.chat-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.online-count {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.online-dot {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.chat-container {
    height: 300px;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-message {
    display: flex;
    gap: 12px;
    animation: messageSlide 0.3s ease-out;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}

.message-content {
    flex: 1;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.message-username {
    font-weight: 600;
    font-size: 13px;
    color: #00ff88;
}

.message-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.message-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.chat-input-container {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 12px;
}

#chatInput {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

#chatInput:focus {
    border-color: #00ff88;
}

#chatInput::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.send-btn {
    background: linear-gradient(135deg, #00ff88, #00ccff);
    border: none;
    color: #000000;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.send-btn:hover {
    transform: scale(1.05);
}

/* Deposit Page */
.deposit-content, .withdraw-content, .affiliates-content, .extract-content, .profile-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.deposit-card, .withdraw-form, .affiliate-stats {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
}

.deposit-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
}

.amount-input-container {
    margin-bottom: 24px;
}

.amount-input-container label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.amount-input {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0 16px;
    transition: border-color 0.3s ease;
}

.amount-input:focus-within {
    border-color: #00ff88;
}

.currency {
    font-size: 18px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-right: 8px;
}

.amount-input input {
    flex: 1;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    padding: 16px 0;
    outline: none;
}

.amount-input input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.amount-limits {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 8px;
}

.generate-pix-btn, .withdraw-btn {
    width: 100%;
    background: linear-gradient(135deg, #00ff88, #00ccff);
    border: none;
    color: #000000;
    padding: 16px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.generate-pix-btn:hover, .withdraw-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

.pix-code-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
}

.pix-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 40px 24px;
    color: rgba(255, 255, 255, 0.8);
}

.pix-loading .loading {
    width: 48px;
    height: 48px;
    border-width: 4px;
}

.pix-loading span {
    font-size: 16px;
    font-weight: 500;
}

.qr-code {
    margin-bottom: 20px;
}

.qr-code img {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    background: #ffffff;
    padding: 16px;
}

.pix-info p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
}

.pix-copy {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.pix-copy input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    color: #ffffff;
    font-size: 12px;
    font-family: monospace;
}

.pix-copy button {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pix-copy button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.pix-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: #ff6b6b;
    font-weight: 500;
}

/* Withdraw Page */
.balance-info {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.available-balance {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.available-balance .label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.available-balance .amount {
    font-size: 32px;
    font-weight: 700;
    color: #00ff88;
}

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

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.input-group select, .input-group input[type="text"] {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    color: #ffffff;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

.input-group select:focus, .input-group input[type="text"]:focus {
    border-color: #00ff88;
}

.input-group select option {
    background: #1a1a1a;
    color: #ffffff;
}

.withdraw-info {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-row.total {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Affiliates Page */
.affiliate-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    padding: 0;
    background: none;
    border: none;
}

.stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #00ff88;
    margin-bottom: 4px;
}

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

.referral-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
}

.referral-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #ffffff;
}

.referral-link {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.referral-link input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    color: #ffffff;
    font-size: 14px;
}

.referral-link button {
    background: linear-gradient(135deg, #00ff88, #00ccff);
    border: none;
    color: #000000;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.referral-info {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.referrals-list {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
}

.referrals-list h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
}

.referral-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.referral-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.referral-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.referral-info {
    flex: 1;
}

.referral-name {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2px;
}

.referral-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.referral-earning {
    font-size: 14px;
    font-weight: 600;
    color: #00ff88;
}

/* Extract Page */
.extract-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn.active {
    background: linear-gradient(135deg, #00ff88, #00ccff);
    border-color: transparent;
    color: #000000;
}

.transactions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.transaction-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.transaction-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(4px);
}

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.transaction-icon.deposit {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
}

.transaction-icon.withdraw {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}

.transaction-icon.investment {
    background: rgba(0, 204, 255, 0.2);
    color: #00ccff;
}

.transaction-info {
    flex: 1;
}

.transaction-title {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2px;
}

.transaction-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.transaction-amount {
    font-size: 14px;
    font-weight: 600;
}

.transaction-amount.positive {
    color: #00ff88;
}

.transaction-amount.negative {
    color: #ff6b6b;
}

/* Profile Page */
.profile-header {
    text-align: center;
    margin-bottom: 32px;
}

.profile-avatar-large {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid #00ff88;
}

.edit-avatar-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24px;
    height: 24px;
    background: #00ff88;
    border: none;
    border-radius: 50%;
    color: #000000;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.profile-header p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.profile-info {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.info-item {
    margin-bottom: 20px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 14px;
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 12px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.profile-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.profile-btn.danger {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
}

.profile-btn.danger:hover {
    background: rgba(255, 107, 107, 0.2);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 20px 20px;
    display: flex;
    justify-content: space-around;
    z-index: 100;
}

.nav-item {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px 4px;
    border-radius: 8px;
    min-width: 50px;
}

.nav-item.active {
    color: #00ff88;
}

.nav-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-item i {
    font-size: 18px;
}

.nav-item span {
    font-size: 10px;
    font-weight: 500;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 375px) {
    .packs-grid {
        grid-template-columns: 1fr;
    }
    
    .balance-section {
        grid-template-columns: 1fr;
    }
    
    .affiliate-stats {
        grid-template-columns: 1fr;
    }
}

/* Auth Pages */
.auth-card {
    max-width: 420px;
    margin: 40px auto;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.auth-card h2 {
    font-size: 22px;
    margin-bottom: 4px;
    color: #ffffff;
    text-align: center;
}
.auth-card label {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    margin-top: 6px;
}
.auth-card input {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
    color: #ffffff;
    outline: none;
}
.auth-card input:focus {
    border-color: #00ff88;
}
.auth-footer {
    display: flex;
    justify-content: center;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
    color: rgba(255,255,255,0.7);
}
.link-btn {
    background: none;
    border: none;
    color: #00ccff;
    cursor: pointer;
    font-weight: 600;
}
.link-btn:hover { text-decoration: underline; }

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #00ff88;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Pack Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    animation: fadeIn 0.2s ease-out;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.modal-content {
    background: linear-gradient(135deg, #1a1a1a, #0f0f0f);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 20px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease-out;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 0;
}
.modal-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}
.modal-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
.modal-close:hover {
    color: #fff;
}
.modal-body {
    padding: 24px 20px;
}
.modal-pack-name {
    font-size: 22px;
    font-weight: 700;
    color: #00ff88;
    margin-bottom: 20px;
    text-align: center;
}
.modal-pack-profit {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 16px;
}
.modal-profit-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.modal-profit-row:last-child {
    border-bottom: none;
}
.modal-profit-row span:first-child {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}
.modal-profit-row span:last-child {
    color: #00ff88;
    font-weight: 600;
    font-size: 16px;
}
.modal-profit-row.highlight span:last-child {
    font-size: 18px;
}
.modal-footer {
    display: flex;
    gap: 12px;
    padding: 0 20px 20px;
}
.modal-btn {
    flex: 1;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.modal-btn.cancel {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
}
.modal-btn.confirm {
    background: linear-gradient(135deg, #00ff88, #00ccff);
    color: #000;
    border: none;
}

