@charset "UTF-8";

/* ========================================
   Justica para Orelha - CSS Profissional
   Mobile-First | Clean | Animado
   ======================================== */

/* Variables */
:root {
    --primary: #1a5f7a;
    --primary-dark: #134a5f;
    --secondary: #2d8f6f;
    --accent: #2ecc71;
    --accent-light: #a8e6cf;
    --dark: #0d1b2a;
    --text: #2c3e50;
    --text-light: #6c757d;
    --white: #ffffff;
    --bg: #f8fffe;
    --bg-alt: #f0f7f5;
    --shadow-xs: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 100px;
    --transition-fast: 0.15s ease;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
}

/* Prevent iOS zoom */
input, select, textarea, button {
    font-size: 16px !important;
    font-family: inherit;
}

/* ========================================
   Navbar
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-xs);
    padding: 12px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.navbar-brand:hover {
    opacity: 0.8;
}

.navbar-brand i {
    color: var(--accent);
    font-size: 1.3rem;
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-md);
    padding: 16px;
}

.nav-menu.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.nav-menu a {
    display: block;
    padding: 12px 16px;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.nav-menu a:hover {
    background: var(--bg-alt);
    color: var(--primary);
}

.btn-nav-donate {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white) !important;
    border-radius: var(--radius-full);
    font-weight: 600;
}

/* Desktop Nav */
@media (min-width: 768px) {
    .nav-toggle { display: none; }
    
    .nav-menu {
        display: flex !important;
        position: static;
        background: none;
        box-shadow: none;
        padding: 0;
        align-items: center;
        gap: 8px;
    }
    
    .nav-menu a {
        padding: 8px 16px;
    }
    
    .btn-nav-donate {
        margin-top: 0;
        margin-left: 8px;
        padding: 10px 20px;
    }
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 16px 60px;
    background: linear-gradient(135deg, rgba(26, 95, 122, 0.92), rgba(45, 143, 111, 0.88)), url('../images/orelha1.jpeg');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(46, 204, 113, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 600px;
    width: 100%;
    animation: fadeInUp 0.8s ease;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: var(--radius-full);
    color: #ffd700;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    animation: pulse 2s ease infinite;
}

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

.hero h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.hero p {
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 28px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    min-height: 50px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #27ae60);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.5);
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
}

@media (min-width: 480px) {
    .hero h1 { font-size: 2.5rem; }
    .hero-buttons { flex-direction: row; justify-content: center; }
}

@media (min-width: 768px) {
    .hero h1 { font-size: 3rem; }
    .hero p { font-size: 1.15rem; }
}

/* ========================================
   Stats Section
   ======================================== */
.stats-section {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 0;
    position: relative;
    overflow: hidden;
}

.stats-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 32px 16px;
}

.stats-main {
    text-align: center;
    margin-bottom: 24px;
}

.stats-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 4px;
    transition: var(--transition);
}

.stats-goal {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.8);
}

.stats-goal strong {
    color: var(--white);
}

/* Progress Bar */
.progress-wrapper {
    margin-bottom: 20px;
}

.progress-bar {
    height: 10px;
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f1c40f, var(--accent));
    border-radius: var(--radius-full);
    position: relative;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

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

.progress-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.9);
}

.progress-meta strong {
    color: var(--white);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.stat-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

.stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    display: block;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

@media (min-width: 480px) {
    .stats-amount { font-size: 3rem; }
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 768px) {
    .stats-container { padding: 40px 24px; }
    .stats-amount { font-size: 3.5rem; }
    .stat-value { font-size: 1.5rem; }
}

/* ========================================
   Live Donations Toast
   ======================================== */
.toast-container {
    position: fixed;
    bottom: 20px;
    left: 16px;
    right: 16px;
    z-index: 9000;
    pointer-events: none;
}

.donation-toast {
    max-width: 340px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: auto;
    border-left: 4px solid var(--accent);
}

.donation-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-avatar {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.toast-text .amount {
    color: var(--accent);
}

.toast-time {
    font-size: 0.75rem;
    color: var(--text-light);
    margin: 2px 0 0;
}

@media (min-width: 480px) {
    .toast-container {
        left: 20px;
        right: auto;
    }
}

/* ========================================
   Sections
   ======================================== */
.section {
    padding: 60px 16px;
    position: relative;
    overflow: hidden;
}

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

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    margin-top: 16px;
}

@media (min-width: 768px) {
    .section { padding: 80px 24px; }
    .section-title { font-size: 2rem; }
}

/* ========================================
   Donors Section
   ======================================== */
.donors-section {
    background: var(--bg-alt);
}

.donors-list {
    max-width: 600px;
    margin: 0 auto;
}

.donor-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
    animation: fadeInUp 0.5s ease backwards;
}

.donor-card:hover {
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

.donor-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.donor-info {
    flex: 1;
    min-width: 0;
}

.donor-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.donor-time {
    font-size: 0.8rem;
    color: var(--text-light);
    margin: 2px 0 0;
}

.donor-amount {
    font-weight: 700;
    font-size: 1rem;
    color: var(--accent);
    flex-shrink: 0;
}

/* ========================================
   Story Section
   ======================================== */
.story-section {
    background: var(--white);
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
}

.story-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 24px;
    border-left: 4px solid var(--accent);
    margin-bottom: 24px;
}

.story-card p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 16px;
}

.story-card p:last-child {
    margin-bottom: 0;
}

.story-image {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* ========================================
   Allocation Section
   ======================================== */
.allocation-section {
    background: var(--dark);
    color: var(--white);
}

.allocation-section .section-title {
    color: var(--white);
}

.allocation-section .section-title::after {
    background: linear-gradient(90deg, #f1c40f, var(--accent));
}

.allocation-section .section-subtitle {
    color: rgba(255,255,255,0.7);
}

.allocation-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.allocation-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    transition: var(--transition);
}

.allocation-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-4px);
}

.allocation-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
}

.allocation-percent {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-light);
    display: block;
    margin-bottom: 8px;
}

.allocation-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.allocation-desc {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
}

@media (min-width: 600px) {
    .allocation-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    text-align: center;
    padding: 60px 16px;
}

.cta-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.cta-section p {
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 24px;
}

.btn-cta {
    background: var(--white);
    color: var(--primary);
    padding: 16px 32px;
    font-size: 1.1rem;
    box-shadow: var(--shadow-md);
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
    .cta-section h2 { font-size: 2rem; }
}

/* ========================================
   Trust Badges
   ======================================== */
.trust-section {
    background: var(--white);
    padding: 32px 16px;
    border-top: 1px solid var(--bg-alt);
}

.trust-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.trust-item i {
    color: var(--accent);
    font-size: 1.1rem;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 48px 16px 24px;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-brand i {
    color: var(--accent);
}

.footer-desc {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    margin-bottom: 24px;
}

.footer-links h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 32px;
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

/* ========================================
   Donation Page
   ======================================== */
.donation-page {
    background: linear-gradient(180deg, var(--bg), var(--bg-alt));
    min-height: 100vh;
    min-height: 100dvh;
    padding: 80px 16px 40px;
}

.form-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-md);
    max-width: 500px;
    margin: 0 auto;
}

.form-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.form-subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 24px;
}

/* Amount Grid */
.amount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.amount-btn {
    background: var(--bg);
    border: 2px solid transparent;
    padding: 14px 8px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    -webkit-appearance: none;
}

.amount-btn:active,
.amount-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border-color: var(--primary);
}

.amount-btn.popular::after {
    content: 'Popular';
    position: absolute;
    top: -8px;
    right: -4px;
    background: #e74c3c;
    color: var(--white);
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

/* Form Inputs */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--bg-alt);
    border-radius: var(--radius-md);
    font-size: 16px;
    transition: var(--transition);
    -webkit-appearance: none;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 95, 122, 0.1);
}

.form-input::placeholder {
    color: #adb5bd;
}

.input-group {
    display: flex;
}

.input-prefix {
    background: var(--bg-alt);
    border: 2px solid var(--bg-alt);
    border-right: none;
    padding: 14px 16px;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    font-weight: 600;
    color: var(--text-light);
}

.input-group .form-input {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 20px 0;
}

.checkbox-group input {
    width: 22px;
    height: 22px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--primary);
}

.checkbox-group label {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
}

.checkbox-group a {
    color: var(--primary);
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--accent), #27ae60);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

.btn-submit:active {
    transform: scale(0.98);
}

/* ========================================
   PIX Modal
   ======================================== */
.pix-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    padding: 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.pix-overlay.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 60px;
}

.pix-modal {
    background: var(--white);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 380px;
    position: relative;
    animation: modalSlide 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin-bottom: 40px;
}

@keyframes modalSlide {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.pix-modal-header {
    padding: 20px 20px 0;
    display: flex;
    justify-content: flex-end;
}

.pix-close {
    width: 36px;
    height: 36px;
    background: var(--bg-alt);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-light);
    transition: var(--transition);
}

.pix-close:hover {
    background: #e9ecef;
}

.pix-modal-body {
    padding: 0 24px 24px;
}

/* Loading */
.pix-loading {
    text-align: center;
    padding: 40px 0;
}

.pix-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--bg-alt);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.pix-loading h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.pix-loading p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Content */
.pix-content {
    display: none;
    text-align: center;
}

.pix-content.active {
    display: block;
    animation: fadeInUp 0.3s ease;
}

.pix-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 12px;
}

.pix-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.pix-subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.pix-qr-wrapper {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pix-qr-code {
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: var(--radius-sm);
}

.pix-qr-code img,
.pix-qr-code canvas {
    max-width: 100%;
    height: auto;
}

.pix-amount-box {
    background: #e8f5f2;
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 16px;
}

.pix-amount-box span {
    font-size: 0.9rem;
    color: var(--text-light);
}

.pix-amount-box strong {
    font-size: 1.3rem;
    color: var(--accent);
    margin-left: 8px;
}

.pix-copy-section {
    margin-bottom: 16px;
    text-align: left;
}

.pix-copy-label {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 8px;
    display: block;
}

.pix-copy-row {
    display: flex;
}

.pix-copy-input {
    flex: 1;
    min-width: 0;
    padding: 12px;
    border: 2px solid var(--bg-alt);
    border-right: none;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    font-size: 0.75rem;
    font-family: monospace;
    background: var(--bg);
    color: var(--text);
}

.pix-copy-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    color: var(--white);
    padding: 12px 16px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: var(--transition);
}

.pix-copy-btn.copied {
    background: var(--accent);
}

.pix-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
}

.pix-status.waiting {
    background: #fff3cd;
    color: #856404;
}

.pix-status.success {
    background: #d4edda;
    color: #155724;
}

/* Success/Error States */
.pix-success,
.pix-error {
    display: none;
    text-align: center;
    padding: 20px 0;
}

.pix-success.active,
.pix-error.active {
    display: block;
    animation: fadeInUp 0.3s ease;
}

.pix-success-icon {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 16px;
}

.pix-success h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
}

.pix-success p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.pix-error-icon {
    font-size: 3.5rem;
    color: #e74c3c;
    margin-bottom: 16px;
}

.pix-error h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 8px;
}

.pix-error p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.pix-retry-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    color: var(--white);
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

/* ========================================
   Utility Classes
   ======================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.text-center { text-align: center; }
.text-white { color: var(--white); }

/* Hide on mobile/desktop */
@media (max-width: 767px) {
    .hide-mobile { display: none !important; }
}

@media (min-width: 768px) {
    .hide-desktop { display: none !important; }
}

/* ========================================
   Animations
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
