* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #00C853;
    --secondary: #00E676;
    --dark: #1a1a1a;
    --light: #ffffff;
    --gray: #f5f5f5;
    --shadow: 0 10px 30px rgba(0, 200, 83, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    min-height: 100vh;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--light);
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
}

.logo img {
    height: 45px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Cards */
.card {
    background: var(--light);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.card-header {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--light);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 200, 83, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    color: var(--dark);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--light);
}

.btn-block {
    width: 100%;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.balance-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--light);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.balance-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.balance-value {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* Action Buttons */
.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.action-btn {
    background: var(--light);
    border: none;
    border-radius: 15px;
    padding: 1.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.action-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 200, 83, 0.2);
}

.action-btn-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.action-btn-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.8rem 1.2rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.1);
}

/* Transactions */
.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s ease;
}

.transaction-item:hover {
    background: #fafafa;
}

.transaction-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.transaction-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.transaction-icon.deposit {
    background: rgba(0, 200, 83, 0.1);
    color: var(--primary);
}

.transaction-icon.withdraw {
    background: rgba(255, 87, 34, 0.1);
    color: #FF5722;
}

.transaction-details h4 {
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 0.2rem;
}

.transaction-details p {
    font-size: 0.85rem;
    color: #666;
}

.transaction-amount {
    text-align: right;
}

.transaction-amount .value {
    font-size: 1.2rem;
    font-weight: bold;
}

.transaction-amount .value.positive {
    color: var(--primary);
}

.transaction-amount .value.negative {
    color: #FF5722;
}

.transaction-amount .status {
    font-size: 0.8rem;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    display: inline-block;
    margin-top: 0.3rem;
}

.status.pending {
    background: #FFF3E0;
    color: #F57C00;
}

.status.completed {
    background: #E8F5E9;
    color: #2E7D32;
}

.status.failed {
    background: #FFEBEE;
    color: #C62828;
}

/* QR Code */
.qrcode-container {
    text-align: center;
    padding: 2rem;
    background: var(--gray);
    border-radius: 15px;
    margin: 1rem 0;
}

.qrcode-container img {
    max-width: 300px;
    margin: 1rem auto;
}

.pix-code {
    background: var(--light);
    padding: 1rem;
    border-radius: 10px;
    font-family: monospace;
    font-size: 0.9rem;
    word-break: break-all;
    margin-top: 1rem;
    border: 2px dashed var(--primary);
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.alert-success {
    background: #E8F5E9;
    color: #2E7D32;
    border-left: 4px solid #4CAF50;
}

.alert-error {
    background: #FFEBEE;
    color: #C62828;
    border-left: 4px solid #F44336;
}

.alert-warning {
    background: #FFF3E0;
    color: #F57C00;
    border-left: 4px solid #FF9800;
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    background: var(--light);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow);
    max-width: 450px;
    width: 100%;
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo img {
    height: 60px;
}

.auth-title {
    font-size: 1.8rem;
    font-weight: bold;
    text-align: center;
    color: var(--dark);
    margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
}