@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@300;400;600;700&display=swap');

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

:root {
    --primary-green: #00D959;
    --primary-yellow: #FFE600;
    --dark: #1A1A1A;
    --gray-dark: #2A2A2A;
    --gray: #666;
    --gray-light: #E5E5E5;
    --white: #FFFFFF;
    --red: #FF4444;
    --gradient-green: linear-gradient(135deg, #00D959 0%, #00B347 100%);
    --gradient-yellow: linear-gradient(135deg, #FFE600 0%, #FFD000 100%);
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Noto Sans', sans-serif;
    background: var(--white);
    color: var(--dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.app {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--white);
    position: relative;
    padding-bottom: 80px;
}

/* Header */
.header {
    background: var(--gradient-green);
    padding: 20px;
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.btn-menu {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-menu svg {
    width: 24px;
    height: 24px;
    stroke: var(--white);
}

.logo {
    width: 120px;
    height: auto;
}

.header-balance {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.balance-label {
    font-size: 12px;
    opacity: 0.9;
}

.balance-value {
    font-size: 28px;
    font-weight: 700;
}

.header-simple {
    background: var(--white);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--gray-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-simple h1 {
    font-size: 20px;
    font-weight: 600;
    flex: 1;
}

.btn-menu-simple {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-menu-simple svg {
    width: 24px;
    height: 24px;
    stroke: var(--dark);
}

/* Main Content */
.main-content {
    padding: 20px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 12px;
}

.stat-icon {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: var(--primary-green);
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 11px;
    color: var(--gray);
    font-weight: 500;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
}

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

.section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

/* Rescue Cards */
.rescue-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rescue-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: none;
    border-radius: 20px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 
        0 10px 30px rgba(0, 217, 89, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.08),
        inset 0 -2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
}

.rescue-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.rescue-card:hover::before {
    left: 100%;
}

.rescue-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-green);
    border-radius: 20px 20px 0 0;
}

.rescue-card:active {
    transform: translateY(2px);
    box-shadow: 
        0 5px 20px rgba(0, 217, 89, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 -2px 4px rgba(0, 0, 0, 0.05);
}

.rescue-info {
    flex: 1;
}

.rescue-pack-name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rescue-amount {
    font-size: 36px;
    font-weight: 700;
    background: var(--gradient-green);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
    text-shadow: 0 2px 4px rgba(0, 217, 89, 0.1);
}

.rescue-days {
    font-size: 12px;
    color: var(--gray);
    font-weight: 500;
}

.btn-rescue {
    background: var(--gradient-green);
    color: var(--white);
    border: none;
    border-radius: 12px;
    padding: 16px 28px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 6px 20px rgba(0, 217, 89, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-rescue::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-rescue:active::before {
    width: 300px;
    height: 300px;
}

.btn-rescue:active {
    transform: scale(0.95);
    box-shadow: 
        0 3px 12px rgba(0, 217, 89, 0.4),
        0 1px 4px rgba(0, 0, 0, 0.15);
}

/* Active Packs */
.active-packs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.active-pack-card {
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: 12px;
    padding: 16px;
}

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

.pack-name-badge {
    font-size: 14px;
    font-weight: 600;
}

.pack-status {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    background: var(--primary-green);
    color: var(--white);
}

.pack-progress {
    margin-top: 12px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--gray-light);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 8px;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-green);
    transition: width 0.3s;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray);
}

.empty-state p {
    margin-bottom: 16px;
}

/* Buttons */
.btn-primary {
    background: var(--gradient-green);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 14px 24px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-primary:active {
    opacity: 0.8;
}

.btn-secondary {
    background: var(--white);
    color: var(--dark);
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    padding: 14px 24px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-secondary:active {
    background: var(--gray-light);
}

.btn-full {
    width: 100%;
}

/* Packs List */
.packs-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pack-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.pack-card:active {
    transform: scale(0.98);
}

.pack-banner {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.pack-content {
    padding: 20px;
}

.pack-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.pack-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 16px;
}

.pack-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.pack-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    background: #F8F8F8;
    border-radius: 8px;
}

.detail-label {
    font-size: 13px;
    color: var(--gray);
}

.detail-value {
    font-size: 14px;
    font-weight: 600;
}

.btn-pack {
    width: 100%;
    background: var(--gradient-green);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
}

/* Info Banner */
.info-banner {
    background: #F0F9FF;
    border: 1px solid #B3E0FF;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.info-icon {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #0088CC;
    flex-shrink: 0;
}

.info-text strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
}

.info-text p {
    font-size: 12px;
    color: var(--gray);
}

/* Deposit/Withdraw */
.deposit-container,
.withdraw-container,
.affiliate-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.amount-input-section,
.form-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

.currency-input {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    padding: 0 16px;
}

.currency-symbol {
    font-size: 20px;
    font-weight: 600;
    color: var(--gray);
}

.amount-input,
.form-input {
    flex: 1;
    border: none;
    padding: 16px 0;
    font-size: 24px;
    font-weight: 600;
    outline: none;
}

.form-input {
    padding: 16px;
    font-size: 16px;
    border: 2px solid var(--gray-light);
    border-radius: 8px;
}

.form-select {
    padding: 16px;
    font-size: 16px;
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    background: var(--white);
    cursor: pointer;
}

.input-hint {
    font-size: 12px;
    color: var(--gray);
}

.quick-amounts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.quick-amount-btn {
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    padding: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-amount-btn:active {
    background: var(--primary-green);
    color: var(--white);
    border-color: var(--primary-green);
}

/* PIX Section */
.pix-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    background: #F8F8F8;
    border-radius: 12px;
}

.pix-qrcode {
    display: flex;
    justify-content: center;
}

.qrcode-placeholder {
    width: 200px;
    height: 200px;
    background: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--gray-light);
}

.qr-box {
    width: 180px;
    height: 180px;
    background: repeating-linear-gradient(
        0deg,
        var(--dark),
        var(--dark) 10px,
        var(--white) 10px,
        var(--white) 20px
    );
}

.pix-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pix-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray);
}

.pix-code-container {
    display: flex;
    gap: 8px;
}

.pix-code {
    flex: 1;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    font-size: 12px;
    font-family: monospace;
}

.btn-copy {
    background: var(--primary-green);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}

/* Alert */
.alert-info {
    background: #FFF9E6;
    border: 1px solid var(--primary-yellow);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 12px;
}

.alert-icon {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #FF9900;
    flex-shrink: 0;
}

.alert-text strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
}

.alert-text p {
    font-size: 12px;
    color: var(--gray);
}

/* Balance Display */
.balance-display {
    background: var(--gradient-green);
    color: var(--white);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
}

.balance-display .balance-label {
    font-size: 13px;
    opacity: 0.9;
    display: block;
    margin-bottom: 8px;
}

.balance-display .balance-value {
    font-size: 32px;
    font-weight: 700;
}

/* History List */
.history-list,
.list-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-item {
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.history-date {
    font-size: 11px;
    color: var(--gray);
}

.history-amount {
    font-size: 18px;
    font-weight: 700;
}

.history-status {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    margin-top: 4px;
}

.status-completed {
    background: #E6F9F0;
    color: var(--primary-green);
}

.status-pending {
    background: #FFF9E6;
    color: #FF9900;
}

/* Affiliate */
.affiliate-hero {
    background: var(--gradient-green);
    color: var(--white);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
}

.hero-icon {
    font-size: 48px;
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
}

.affiliate-hero h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.affiliate-hero p {
    font-size: 14px;
    opacity: 0.9;
}

.affiliate-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stat-box {
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

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

.stat-box .stat-label {
    font-size: 12px;
    color: var(--gray);
}

.referral-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.referral-link-container {
    display: flex;
    gap: 8px;
}

.referral-link {
    flex: 1;
    padding: 14px;
    background: #F8F8F8;
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    font-size: 13px;
}

.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-share {
    width: 100%;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-share.whatsapp {
    background: #25D366;
    color: var(--white);
}

.btn-share.telegram {
    background: #0088CC;
    color: var(--white);
}

.share-icon {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.commission-info {
    background: #F8F8F8;
    border-radius: 12px;
    padding: 20px;
}

.info-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.step-item {
    display: flex;
    gap: 16px;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-green);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.step-content p {
    font-size: 12px;
    color: var(--gray);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--white);
    border-radius: 16px;
    padding: 24px;
    max-width: 400px;
    width: 100%;
    animation: slideUp 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.modal-rescue {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.modal-rescue > * {
    position: relative;
    z-index: 1;
}

.modal-rescue::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 217, 89, 0.1) 0%, transparent 70%);
    animation: rotate 3s linear infinite;
    pointer-events: none;
    z-index: 0;
}

.modal-icon-success {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    background: var(--gradient-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55), successPulse 1.5s infinite 0.6s;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 217, 89, 0.3);
}

.modal-icon-success::before,
.modal-icon-success::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: particles 2s ease-out infinite;
}

.modal-icon-success::before {
    background: var(--primary-yellow);
    top: -20px;
    left: 50%;
    animation-delay: 0.2s;
}

.modal-icon-success::after {
    background: var(--primary-green);
    bottom: -20px;
    right: 20%;
    animation-delay: 0.5s;
}

.modal-icon-success svg {
    width: 40px;
    height: 40px;
    stroke: var(--white);
    stroke-width: 3;
    animation: checkDraw 0.8s ease 0.4s both;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.modal-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal-content p {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 12px;
}

.modal-amount {
    font-size: 40px;
    font-weight: 700;
    background: var(--gradient-green);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 16px 0;
    animation: amountReveal 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.3s both;
    position: relative;
    display: inline-block;
}

.modal-amount::after {
    content: '';
    position: absolute;
    top: 0;
    left: -10%;
    width: 120%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: shimmer 2s ease-in-out infinite 0.8s;
}

.modal-subtitle {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 24px;
}

.modal-actions {
    display: flex;
    gap: 12px;
}

.modal-actions button {
    flex: 1;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 480px;
    width: 100%;
    background: var(--white);
    border-top: 1px solid var(--gray-light);
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    text-decoration: none;
    color: var(--gray);
    transition: color 0.2s;
}

.nav-item.active {
    color: var(--primary-green);
}

.nav-icon {
    font-size: 20px;
    width: 24px;
    height: 24px;
}

.nav-item img.nav-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.nav-item svg.nav-icon {
    stroke: currentColor;
}

.nav-item.active img.nav-icon {
    filter: brightness(0) saturate(100%) invert(61%) sepia(93%) saturate(424%) hue-rotate(85deg) brightness(98%) contrast(101%);
}

.nav-label {
    font-size: 11px;
    font-weight: 500;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    pointer-events: none;
}

.sidebar.active {
    pointer-events: auto;
}

.sidebar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar.active .sidebar-overlay {
    opacity: 1;
}

.sidebar-content {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    max-width: 85%;
    background: var(--white);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.1);
}

.sidebar.active .sidebar-content {
    transform: translateX(0);
}

.sidebar-header {
    padding: 20px;
    display: flex;
    justify-content: flex-end;
}

.btn-close-sidebar {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close-sidebar svg {
    width: 24px;
    height: 24px;
    stroke: var(--dark);
}

.sidebar-profile {
    padding: 0 20px 24px;
    display: flex;
    gap: 16px;
    align-items: center;
    border-bottom: 1px solid var(--gray-light);
}

.profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-green);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-avatar svg {
    width: 32px;
    height: 32px;
    stroke: var(--white);
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.profile-id {
    font-size: 12px;
    color: var(--gray);
}

.sidebar-nav {
    flex: 1;
    padding: 16px 0;
    overflow-y: auto;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    text-decoration: none;
    color: var(--dark);
    transition: background 0.2s;
}

.sidebar-link:hover {
    background: #F8F8F8;
}

.sidebar-link.active {
    background: #E6F9F0;
    color: var(--primary-green);
    border-left: 3px solid var(--primary-green);
}

.sidebar-link svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    flex-shrink: 0;
}

.sidebar-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.sidebar-link.active .sidebar-icon-img {
    filter: brightness(0) saturate(100%) invert(61%) sepia(93%) saturate(424%) hue-rotate(85deg) brightness(98%) contrast(101%);
}

.sidebar-link span {
    font-size: 14px;
    font-weight: 500;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--gray-light);
}

.btn-logout {
    width: 100%;
    background: none;
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    color: var(--red);
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}

.btn-logout:hover {
    background: #FFF5F5;
}

.btn-logout svg {
    width: 20px;
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 20px;
    max-width: 400px;
    margin: 0 auto;
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-logo {
    width: 140px;
    height: auto;
    margin-bottom: 32px;
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
}

.auth-subtitle {
    font-size: 14px;
    color: var(--gray);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.forgot-password {
    text-align: right;
    font-size: 13px;
    color: var(--primary-green);
    text-decoration: none;
    margin-top: -8px;
}

.auth-btn {
    margin-top: 8px;
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 32px 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gray-light);
}

.auth-divider span {
    position: relative;
    background: var(--white);
    padding: 0 16px;
    font-size: 13px;
    color: var(--gray);
}

.auth-footer {
    text-align: center;
}

.auth-footer p {
    font-size: 14px;
    color: var(--gray);
}

.auth-link {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
}

.auth-link:hover {
    text-decoration: underline;
}

.terms-checkbox {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: 13px;
}

.terms-checkbox input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
}

.terms-checkbox label {
    color: var(--gray);
    line-height: 1.5;
}

/* Checkout Styles */
.checkout-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.checkout-section {
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: 16px;
    padding: 24px;
}

.checkout-section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--dark);
}

.order-summary {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--gray);
}

.order-amount {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
}

.order-divider {
    height: 1px;
    background: var(--gray-light);
    margin: 8px 0;
}

.order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
}

.total-amount {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-green);
}

.amount-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.payment-method {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 2px solid var(--gray-light);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-option.selected {
    border-color: var(--primary-green);
    background: #F0FDF4;
}

.payment-icon {
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--gray-light);
}

.payment-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary-green);
}

.payment-info {
    flex: 1;
}

.payment-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 2px;
}

.payment-desc {
    font-size: 12px;
    color: var(--gray);
}

.payment-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.payment-check svg {
    width: 16px;
    height: 16px;
    stroke: var(--white);
}

.checkout-btn {
    font-size: 18px;
    padding: 18px;
    box-shadow: 0 4px 16px rgba(0, 217, 89, 0.3);
}

.pix-payment {
    border: 2px solid var(--primary-green);
    background: #F0FDF4;
}

.pix-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pix-qrcode {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.pix-qrcode .qrcode-placeholder {
    width: 240px;
    height: 240px;
    background: var(--white);
    border-radius: 16px;
    border: 3px solid var(--gray-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.pix-qrcode .qr-box {
    width: 220px;
    height: 220px;
}

.pix-scan-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray);
}

.payment-divider {
    position: relative;
    text-align: center;
    margin: 8px 0;
}

.payment-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gray-light);
}

.payment-divider span {
    position: relative;
    background: #F0FDF4;
    padding: 0 16px;
    font-size: 13px;
    color: var(--gray);
    font-weight: 500;
}

.pix-code-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pix-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

.pix-code-container {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.pix-code {
    flex: 1;
    padding: 14px;
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    font-size: 12px;
    font-family: monospace;
    color: var(--dark);
}

.btn-copy-pix {
    background: var(--primary-green);
    color: var(--white);
    border: none;
    border-radius: 10px;
    padding: 14px 20px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 217, 89, 0.3);
    transition: all 0.2s;
}

.btn-copy-pix:active {
    transform: scale(0.95);
}

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

.payment-timer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--gray-light);
}

.timer-icon {
    width: 32px;
    height: 32px;
    stroke: var(--primary-yellow);
    flex-shrink: 0;
}

.timer-info {
    flex: 1;
}

.timer-label {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 2px;
}

.timer-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
}

.payment-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: var(--white);
    border-radius: 12px;
}

.status-indicator {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--gray-light);
    border-top-color: var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.payment-status p {
    font-size: 14px;
    color: var(--gray);
    font-weight: 500;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes scaleIn {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    75% {
        transform: translateX(10px);
    }
}

@keyframes successPulse {
    0% {
        box-shadow: 0 8px 24px rgba(0, 217, 89, 0.3), 0 0 0 0 rgba(0, 217, 89, 0.7);
    }
    70% {
        box-shadow: 0 8px 24px rgba(0, 217, 89, 0.3), 0 0 0 30px rgba(0, 217, 89, 0);
    }
    100% {
        box-shadow: 0 8px 24px rgba(0, 217, 89, 0.3), 0 0 0 0 rgba(0, 217, 89, 0);
    }
}

@keyframes particles {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(0);
        opacity: 0;
    }
}

@keyframes checkDraw {
    0% {
        stroke-dasharray: 100;
        stroke-dashoffset: 100;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        stroke-dasharray: 100;
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

@keyframes amountReveal {
    0% {
        transform: scale(0) rotateY(90deg);
        opacity: 0;
    }
    60% {
        transform: scale(1.15) rotateY(0deg);
    }
    100% {
        transform: scale(1) rotateY(0deg);
        opacity: 1;
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

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

.pack-card,
.rescue-card,
.stat-card {
    animation: slideIn 0.3s ease;
}