:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --secondary: #64748b;
    --secondary-dark: #475569;
    --danger: #dc2626;
    --warning: #d97706;
    --success: #059669;
    --info: #0284c7;
    --dark: #0f172a;
    --dark-medium: #1e293b;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    --gradient-light: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 12px;
    --radius-sm: 8px;
}

/* Dark Mode */
.dark-mode {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #1e3a5f;
    --secondary: #94a3b8;
    --secondary-dark: #64748b;
    --danger: #ef4444;
    --warning: #f59e0b;
    --success: #22c55e;
    --info: #0ea5e9;
    --dark: #f1f5f9;
    --dark-medium: #1e293b;
    --gray-50: #1e293b;
    --gray-100: #0f172a;
    --gray-200: #334155;
    --gray-300: #475569;
    --gray-400: #64748b;
    --gray-500: #94a3b8;
    --gray-600: #cbd5e1;
    --white: #0f172a;
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    --gradient-light: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.dark-mode body {
    background: var(--gray-100);
    color: var(--gray-300);
}

.dark-mode .app-container,
.dark-mode .form-container,
.dark-mode .form-header,
.dark-mode .form-body,
.dark-mode .card,
.dark-mode .person-card,
.dark-mode .status-card,
.dark-mode .tabs,
.dark-mode .bottom-nav {
    background: var(--gray-50);
    border-color: var(--gray-200);
}

.dark-mode .form-input,
.dark-mode select.form-input {
    background: var(--gray-100);
    border-color: var(--gray-300);
    color: var(--gray-300);
}

.dark-mode .form-input:focus {
    border-color: var(--primary);
}

.dark-mode .form-input::placeholder {
    color: var(--gray-500);
}

.dark-mode .text-muted,
.dark-mode .text-sm,
.dark-mode .person-details,
.dark-mode .person-details .pix-key-label {
    color: var(--gray-400) !important;
}

.dark-mode .form-label,
.dark-mode .card-title,
.dark-mode h1, .dark-mode h2, .dark-mode h3, .dark-mode h4,
.dark-mode .person-name,
.dark-mode .person-header .person-name,
.dark-mode .status-title {
    color: var(--gray-100) !important;
}

.dark-mode .btn {
    border-color: var(--gray-300);
}

.dark-mode .btn-outline {
    background: transparent;
    border-color: var(--gray-300);
    color: var(--gray-300);
}

.dark-mode .btn-outline:hover {
    background: var(--gray-200);
}

.dark-mode .tab {
    background: var(--gray-100);
    color: var(--gray-400);
}

.dark-mode .tab.active {
    background: var(--primary);
    color: white;
}

.dark-mode .nav-item {
    color: var(--gray-400);
}

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

.dark-mode .alert {
    border-color: var(--gray-300);
}

.dark-mode .alert-success {
    background: #052e16;
    border-color: #22c55e;
    color: #dcfce7;
}

.dark-mode .alert-error {
    background: #450a0a;
    border-color: #ef4444;
    color: #fecaca;
}

.dark-mode .alert-info {
    background: #172554;
    border-color: #3b82f6;
    color: #dbeafe;
}

.dark-mode .empty-state,
.dark-mode .empty-text {
    color: var(--gray-500);
}

.dark-mode .tutorial-content::-webkit-scrollbar-track {
    background: var(--gray-100);
}

.dark-mode .tutorial-content::-webkit-scrollbar-thumb {
    background: var(--gray-400);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gray-100);
    color: var(--dark);
    line-height: 1.5;
    min-height: 100vh;
}

.landing-body {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 50%, #1e293b 100%);
    min-height: 100vh;
}

.dark-mode.landing-body {
    background: linear-gradient(135deg, #0a0a0a 0%, #000000 50%, #1a1a1a 100%);
}

.dark-mode.landing-body .form-header,
.dark-mode.landing-body .form-body {
    background: rgba(30, 30, 30, 0.95);
    color: var(--gray-300);
}

.dark-mode.landing-body .form-header h1,
.dark-mode.landing-body .form-body h1 {
    color: var(--gray-100);
}

.dark-mode.landing-body .form-header p,
.dark-mode.landing-body .form-body p {
    color: var(--gray-400);
}

.app-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--gray-50);
    padding-bottom: 90px;
}

.landing-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 24px;
    min-height: 100vh;
}

.form-container {
    max-width: 420px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
}

.landing-body .form-container {
    padding-top: 60px;
}

.landing-body .form-header,
.landing-body .form-body {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.landing-body .form-header {
    border-radius: 16px 16px 0 0;
    padding: 28px;
}

.landing-body .form-body {
    border-radius: 0 0 16px 16px;
    padding: 24px;
}

.landing-body .form-header h1 {
    color: var(--dark);
}

.landing-body .form-header p {
    color: var(--gray-500);
}

.landing-body .back-link {
    color: var(--primary);
}

.landing-body .form-label {
    color: var(--dark-medium);
}

.landing-body .form-input {
    background: white;
    border: 2px solid var(--gray-200);
}

.landing-body .form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.app-header {
    background: var(--primary);
    color: white;
    padding: 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-lg);
}

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

.header-title {
    font-size: 1.2rem;
    font-weight: 700;
}

.header-subtitle {
    font-size: 0.85rem;
    opacity: 0.9;
}

.header-actions {
    display: flex;
    gap: 8px;
}

.header-btn, button.header-btn {
    background: rgba(255,255,255,0.15);
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}

.header-btn:hover, button.header-btn:hover {
    background: rgba(255,255,255,0.25);
}

.app-content {
    padding: 20px;
}

.hero-section {
    text-align: center;
    padding: 40px 16px;
    color: white;
}

.hero-icon-circle {
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    border: 2px solid rgba(255,255,255,0.2);
}

.hero-icon {
    font-size: 3rem;
}

.hero-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.2;
}

.highlight {
    color: #60a5fa;
}

.hero-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    max-width: 300px;
    margin: 0 auto;
}

.value-card {
    background: white;
    border-radius: var(--radius);
    padding: 28px;
    text-align: center;
    margin-bottom: 24px;
    box-shadow: var(--shadow-lg);
}

.value-amount {
    margin-bottom: 12px;
}

.currency {
    font-size: 1.4rem;
    color: var(--gray-500);
    vertical-align: top;
    font-weight: 600;
}

.amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
}

.value-text {
    font-size: 1rem;
    color: var(--gray-600);
    margin-bottom: 14px;
}

.pix-badge {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 12px 24px;
    border-radius: 24px;
    font-weight: 600;
    display: inline-block;
    font-size: 0.9rem;
}

.steps-section {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
}

.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--dark);
}

.step-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-200);
}

.step-card:last-child {
    border-bottom: none;
}

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

.step-content h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 3px;
}

.step-content p {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.benefits-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.benefit-item {
    background: rgba(255,255,255,0.1);
    color: white;
    padding: 14px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
}

.benefit-icon {
    font-size: 1.2rem;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: white;
    color: var(--dark);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.5);
    color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--dark);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-warning {
    background: var(--warning);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-info {
    background: var(--info);
    color: white;
}

.btn-lg {
    padding: 16px 24px;
    font-size: 1.05rem;
}

.btn-sm {
    padding: 10px 16px;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
}

.form-header {
    background: white;
    padding: 28px;
    border-radius: var(--radius) var(--radius) 0 0;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.back-link {
    display: inline-block;
    color: var(--gray-500);
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.form-header h1 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.form-header p {
    color: var(--gray-500);
    font-size: 0.85rem;
}

.form-body {
    background: white;
    padding: 24px;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--dark-medium);
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: border-color 0.2s;
    background: var(--gray-50);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
}

.form-help {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 4px;
}

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

.text-sm {
    font-size: 0.85rem;
}

.text-muted {
    color: var(--gray-500);
}

.mt-20 {
    margin-top: 20px;
}

.mb-15 {
    margin-bottom: 15px;
}

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

.alert {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.alert-info {
    background: var(--primary-light);
    color: var(--primary-dark);
    border: 1px solid #bfdbfe;
}

.status-card {
    background: var(--primary);
    color: white;
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    box-shadow: var(--shadow-md);
}

.status-title {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 4px;
}

.status-value {
    font-size: 1.2rem;
    font-weight: 700;
}

.status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.status-mini {
    background: white;
    padding: 16px;
    border-radius: var(--radius-sm);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.status-mini-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.status-mini-label {
    font-size: 0.75rem;
    color: var(--gray-500);
}

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

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    margin-bottom: 6px;
    opacity: 0.9;
}

.progress-bar {
    height: 8px;
    background: rgba(255,255,255,0.25);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: white;
    border-radius: 4px;
    transition: width 0.3s;
}

.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    background: var(--gray-200);
    padding: 4px;
    border-radius: var(--radius-sm);
}

.tab {
    flex: 1;
    padding: 12px 8px;
    border: none;
    background: transparent;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-500);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.tab.active {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.tab-content {
    display: none;
}

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

.person-card {
    background: white;
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary);
}

.person-card.admin-card {
    border-left-color: var(--secondary);
    background: var(--gray-50);
}

.person-card.pending {
    border-left-color: var(--warning);
}

.person-card.confirmed {
    border-left-color: var(--success);
}

.person-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.person-position {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.person-name {
    flex: 1;
    font-weight: 600;
    font-size: 0.95rem;
}

.person-status {
    font-size: 1.2rem;
}

.person-details {
    padding-left: 44px;
}

.pix-key-container {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--gray-100);
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.pix-key-label {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.pix-key-value {
    flex: 1;
    font-family: monospace;
    font-size: 0.85rem;
    word-break: break-all;
}

.copy-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
}

.copy-btn:hover {
    background: var(--primary-dark);
}

.person-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-whatsapp:hover {
    background: #128C7E;
}

.card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.divider {
    height: 1px;
    background: var(--gray-200);
    margin-bottom: 16px;
}

.invite-section {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.invite-link {
    background: var(--gray-100);
    padding: 12px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.75rem;
    word-break: break-all;
    margin-bottom: 12px;
    border: 1px dashed var(--gray-300);
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.empty-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.empty-text {
    color: var(--gray-500);
    font-size: 0.85rem;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 480px;
    margin: 0 auto;
    background: white;
    display: flex;
    border-top: 1px solid var(--gray-200);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    text-decoration: none;
    color: var(--gray-500);
    font-size: 0.7rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

.nav-icon {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.landing-footer {
    text-align: center;
    padding: 30px 20px;
    color: white;
    opacity: 0.8;
}

.footer-small {
    font-size: 0.75rem;
    margin-top: 8px;
}

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.btn-xs {
    padding: 6px 12px;
    font-size: 0.75rem;
}

.text-xs {
    font-size: 0.75rem;
}

.mt-10 {
    margin-top: 10px;
}

.card-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 8px;
}

.badge-primary {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background: #fee2e2;
    color: #dc2626;
}

.badge-info {
    background: #dbeafe;
    color: #1d4ed8;
}

.copied-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.85rem;
    z-index: 1000;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.admin-header {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
}
