@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,300;14..32,400;14..32,500;14..32,600;14..32,700&display=swap');

:root {
    --bg-primary: #0a0c10;
    --bg-surface: #111317;
    --bg-elevated: #1a1d24;
    --border-subtle: #2a2f38;
    --text-primary: #edf2f7;
    --text-secondary: #9ca3af;
    --accent-success: #10b981;
    --accent-success-hover: #059669;
    --accent-warning: #f59e0b;
    --accent-danger: #ef4444;
    --accent-manha: #fbbf24;
    --accent-noite: #3b82f6;
    --glass-effect: rgba(26, 29, 36, 0.7);
    --border-radius-sm: 12px;
    --border-radius-md: 16px;
    --border-radius-lg: 20px;
    --shadow-lg: 0 20px 35px -12px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: radial-gradient(circle at 10% 20%, #111317, #080b0e);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    padding-bottom: 40px;
    min-height: 100vh;
}

.app-container {
    max-width: 560px;
    margin: 0 auto;
    min-height: 100vh;
    padding: 20px 16px 32px;
}

/* ==========================================
   HEADER
   ========================================== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-subtle);
}

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

.header-logo i {
    font-size: 28px;
    color: var(--accent-success);
    filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.3));
}

.header-logo-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.header-logo-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #FFFFFF 0%, #A0AEC0 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
    line-height: 1;
}

.header-sub {
    font-size: 0.65rem;
    color: var(--accent-success);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.8;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.badge-status {
    background: rgba(16, 185, 129, 0.1);
    padding: 5px 12px;
    border-radius: 40px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

.badge-role {
    padding: 4px 10px;
    border-radius: 40px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge-role-owner {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.badge-role-motoboy {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* ==========================================
   BARRA DE PAINEL (owner/motoboy)
   ========================================== */
.painel-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius-md);
    padding: 14px 18px;
    margin-bottom: 24px;
    gap: 12px;
}

.painel-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    flex: 1;
    min-width: 0;
}

.painel-header-info i {
    color: var(--accent-success);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.painel-header-info span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-logout {
    background: rgba(239, 68, 68, 0.08);
    color: var(--accent-danger);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: var(--border-radius-sm);
    padding: 8px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    width: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: var(--accent-danger);
}

/* ==========================================
   AUTH LINKS
   ========================================== */
.auth-link-text {
    text-align: center;
    margin-top: 15px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.link-success {
    color: var(--accent-success);
    text-decoration: none;
}

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

.link-warning {
    color: var(--accent-warning);
    text-decoration: none;
}

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

/* ==========================================
   CARDS
   ========================================== */
.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius-lg);
    padding: 22px 20px;
    margin-bottom: 28px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    border-left: 4px solid var(--accent-success);
    padding-left: 12px;
}

.section-title i {
    font-size: 1.2rem;
    color: var(--accent-success);
}

.section-title h2 {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.3px;
    color: var(--text-primary);
}

/* ==========================================
   DASHBOARD CARDS
   ========================================== */
.dashboard-section {
    margin-bottom: 28px;
}

.dash-cards {
    display: flex;
    gap: 16px;
}

.dash-card {
    flex: 1;
    background: var(--glass-effect);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-md);
    padding: 18px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.2s ease, border-color 0.2s;
}

.dash-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.1);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.dash-card.manha .card-icon i {
    color: var(--accent-manha);
}

.dash-card.noite .card-icon i {
    color: var(--accent-noite);
}

.card-info {
    flex: 1;
}

.dash-title {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 4px;
}

.dash-val {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    display: block;
}

.dash-card.manha .dash-val {
    color: var(--accent-manha);
}

.dash-card.noite .dash-val {
    color: var(--accent-noite);
}

/* ==========================================
   FORMULÁRIOS
   ========================================== */
.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 4px;
}

.input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    flex: 1;
}

.input-group label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

select,
input {
    background-color: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius-sm);
    padding: 14px 16px;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s;
    width: 100%;
    font-family: inherit;
}

select:focus,
input:focus {
    border-color: var(--accent-success);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

/* ==========================================
   AUTOCOMPLETE
   ========================================== */
.autocomplete-container {
    position: relative;
    width: 100%;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius-sm);
    max-height: 240px;
    overflow-y: auto;
    z-index: 1000;
    list-style: none;
    margin-top: 6px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.autocomplete-dropdown.hidden {
    display: none;
}

.autocomplete-item {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.15s;
}

.autocomplete-item:hover {
    background: rgba(16, 185, 129, 0.1);
}

.autocomplete-item-price {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-success);
    background: rgba(16, 185, 129, 0.12);
    padding: 4px 8px;
    border-radius: 40px;
}

/* ==========================================
   BOTÕES
   ========================================== */
button {
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 18px;
    width: 100%;
    font-family: inherit;
}

button:active {
    transform: scale(0.97);
}

.btn-primary {
    background: linear-gradient(105deg, var(--accent-success), #0d9668);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.btn-warning {
    background: transparent;
    color: var(--accent-warning);
    border: 1px solid var(--accent-warning);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
    border-color: var(--text-secondary);
}

.btn-success {
    background: linear-gradient(105deg, #10b981, #059669);
    color: white;
}

.btn-delete {
    background: transparent;
    color: var(--accent-danger);
    padding: 8px;
    width: auto;
    font-size: 1.2rem;
    font-weight: 400;
}

.btn-delete-turno {
    background: rgba(239, 68, 68, 0.06);
    color: var(--accent-danger);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.btn-pix {
    background: linear-gradient(105deg, #1e3a8a, #1e40af);
    color: white;
}

.action-group {
    display: flex;
    gap: 12px;
    width: 100%;
}

/* ==========================================
   TURNOS — CARDS
   ========================================== */
.turnos-section {
    margin-bottom: 28px;
}

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

.turnos-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.turno-card {
    background: var(--bg-surface);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    transition: all 0.2s;
    animation: fadeSlide 0.3s ease-out;
}

.turno-card.finalizado {
    background: rgba(16, 185, 129, 0.03);
    border-left: 4px solid var(--accent-success);
}

.turno-header {
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid var(--border-subtle);
}

.turno-title-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.turno-title {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.2px;
}

.turno-date {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.badge {
    font-size: 0.68rem;
    padding: 5px 12px;
    border-radius: 60px;
    font-weight: 600;
}

.badge.ativo {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge.concluido {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.turno-body {
    padding: 20px;
}

.turno-list {
    list-style: none;
    margin-bottom: 20px;
    max-height: 280px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.turno-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-elevated);
    padding: 12px 14px;
    border-radius: var(--border-radius-sm);
}

.item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.item-bairro {
    font-weight: 600;
    font-size: 0.9rem;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 180px;
}

.item-valor {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.turno-summary {
    display: flex;
    gap: 20px;
    background: var(--bg-elevated);
    padding: 14px 20px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 20px;
    border: 1px solid var(--border-subtle);
}

.summary-box {
    flex: 1;
    text-align: center;
}

.summary-label {
    font-size: 0.68rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

.summary-val {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent-success);
}

.turno-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.turno-status-pagamento {
    margin-bottom: 12px;
    padding: 10px;
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
}

/* ==========================================
   CONTROLE CENTRAL (FILTROS)
   ========================================== */
.controle-central {
    background: var(--bg-elevated);
    padding: 16px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.controle-linha {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.controle-select {
    flex: 1;
    min-width: 130px;
    background-color: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    padding: 12px 14px;
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.controle-select:focus {
    border-color: var(--accent-success);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1);
}

.controle-select.highlight {
    color: var(--accent-success);
    font-weight: 600;
    min-width: 100%;
}

.btn-fechar-semana {
    flex: 1;
    min-width: 100%;
    padding: 12px 14px;
    font-size: 0.9rem;
}

@media (min-width: 480px) {
    .controle-select.highlight {
        min-width: 200px;
    }

    .btn-fechar-semana {
        min-width: 180px;
    }
}

/* ==========================================
   EQUIPE / MOTOBOYS / BAIRROS
   ========================================== */
.motoboy-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-elevated);
    padding: 12px 15px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-subtle);
    gap: 10px;
}

.motoboy-item-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.motoboy-nome {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.motoboy-pix {
    font-size: 0.72rem;
    color: var(--accent-success);
    font-family: monospace;
}

/* ==========================================
   PIX CONFIG
   ========================================== */
.pix-config {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-help {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 5px;
    display: block;
}

.status-message {
    font-size: 0.8rem;
    padding: 10px;
    border-radius: var(--border-radius-sm);
    text-align: center;
}

.status-message.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ==========================================
   ARQUIVAR
   ========================================== */
.arquivar-container {
    background: rgba(16, 185, 129, 0.03);
    border: 1px dashed rgba(16, 185, 129, 0.3);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.arquivar-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-success);
    font-size: 0.82rem;
    font-weight: 500;
    opacity: 0.8;
}

.arquivar-actions {
    display: flex;
    gap: 12px;
    width: 100%;
}

.btn-arquivar {
    flex: 1;
    padding: 12px 14px;
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    transition: all 0.2s;
}

.btn-arquivar-soft {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.btn-arquivar-danger {
    background: rgba(239, 68, 68, 0.05);
    color: var(--accent-danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

@media (max-width: 400px) {
    .arquivar-actions {
        flex-direction: column;
    }
}

/* ==========================================
   MODAL PIX
   ========================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--bg-surface);
    border-radius: var(--border-radius-lg);
    max-width: 90%;
    width: 400px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.modal-header h3 {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    width: auto;
    padding: 0;
}

.modal-close:hover {
    color: var(--accent-danger);
}

.modal-body {
    padding: 20px;
    text-align: center;
}

.qrcode-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    padding: 10px;
    background: white;
    border-radius: var(--border-radius-sm);
}

.qrcode-container canvas,
.qrcode-container img {
    width: 200px;
    height: 200px;
}

.pix-info {
    text-align: left;
    margin-top: 15px;
}

.pix-info p {
    margin-bottom: 10px;
}

.pix-code-container {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}

.pix-codigo {
    flex: 1;
    font-size: 0.78rem;
    font-family: monospace;
}

.btn-copy-pix {
    background: var(--accent-success);
    color: white;
    padding: 10px 15px;
    width: auto;
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: flex-end;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.footer-copyright {
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.footer-dev {
    font-size: 0.68rem;
    color: var(--text-secondary);
    opacity: 0.7;
    font-weight: 300;
}

.footer:hover .footer-dev {
    opacity: 1;
    transition: opacity 0.3s;
    color: var(--accent-success);
}

/* ==========================================
   UTILITÁRIOS
   ========================================== */
.hidden {
    display: none !important;
}

/* ==========================================
   SCROLL CUSTOMIZADO
   ========================================== */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: var(--bg-elevated);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-success);
    border-radius: 10px;
}

/* ==========================================
   ANIMAÇÕES
   ========================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out;
}

/* ==========================================
   RESPONSIVIDADE
   ========================================== */
@media (max-width: 500px) {
    .app-container {
        padding: 16px 12px 32px;
    }

    .dash-card {
        padding: 14px 10px;
    }

    .dash-val {
        font-size: 1.25rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .section-title h2 {
        font-size: 1rem;
    }

    .footer {
        margin-top: 36px;
    }

    .painel-header-bar {
        padding: 12px 14px;
    }

    .header-logo-text h1 {
        font-size: 1.3rem;
    }

    .hide-mobile {
        display: none !important;
    }
}

@media (max-width: 360px) {
    .badge-role {
        display: none;
    }
}

/* ==========================================
   MENU DE ABAS (OWNER)
   ========================================== */
.owner-tabs {
    display: flex;
    background: var(--bg-elevated);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-subtle);
    margin-bottom: 20px;
    overflow: hidden;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 14px 5px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 0;
    border-bottom: 2px solid transparent;
}

.tab-btn.active {
    color: var(--accent-success);
    background: rgba(16, 185, 129, 0.05);
    border-bottom: 2px solid var(--accent-success);
}

/* ==========================================
   LANDING PAGE (VITRINE)
   ========================================== */
.landing-section {
    animation: fadeIn 0.5s ease-out;
}

.hero-box {
    text-align: center;
    padding: 30px 10px;
    margin-bottom: 20px;
}

.hero-badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-success);
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-success) 0%, #047857 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 30px;
    padding: 0 10px;
}

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

.btn-pulse {
    animation: pulseShadow 2s infinite;
}

@keyframes pulseShadow {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.features-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    text-align: left;
    transition: transform 0.2s;
}

.feature-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.1);
}

.feature-icon {
    font-size: 1.8rem;
    margin-bottom: 12px;
    background: var(--bg-elevated);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.feature-card h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ==========================================
   PWA TOAST (Layout Robusto)
   ========================================== */
.pwa-toast-container {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius-md);
    padding: 14px 16px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    width: 90%;
    max-width: 380px;
    animation: slideUp 0.5s ease;
}

.pwa-toast-icon {
    background: rgba(16, 185, 129, 0.15);
    padding: 10px;
    border-radius: 12px;
    color: var(--accent-success);
    font-size: 1.2rem;
    flex-shrink: 0;
    display: flex;
}

.pwa-toast-text {
    flex: 1;
    text-align: left;
    min-width: 0;
}

.pwa-toast-text h4 {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.pwa-toast-text p {
    margin: 4px 0 0 0;
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.2;
}

.pwa-install-btn {
    width: auto;
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 8px;
    flex-shrink: 0;
}

.pwa-close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
    width: auto;
}

/* ==========================================
   SWEETALERT RESPONSIVO (MOBILE)
   ========================================== */
.swal2-popup {
    background: var(--bg-surface) !important;
    border-radius: var(--border-radius-lg) !important;
    padding: 1.2em 1em !important;
    width: 90% !important;
    max-width: 400px !important;
    border: 1px solid var(--border-subtle) !important;
}

.swal2-title {
    font-size: 1.25rem !important;
    color: var(--text-primary) !important;
}

.swal2-html-container {
    font-size: 0.9rem !important;
    margin: 1em 0 0.5em !important;
    color: var(--text-secondary) !important;
}

.swal2-input,
.swal2-select {
    height: 44px !important;
    padding: 0 12px !important;
    font-size: 0.95rem !important;
    margin: 10px auto !important;
    border-radius: var(--border-radius-sm) !important;
    border: 1px solid var(--border-subtle) !important;
    background-color: var(--bg-elevated) !important;
    color: var(--text-primary) !important;
}

.swal2-input:focus,
.swal2-select:focus {
    border-color: var(--accent-success) !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2) !important;
}

.swal2-actions {
    gap: 10px !important;
    width: 100% !important;
    margin-top: 15px !important;
}

.swal2-confirm,
.swal2-cancel {
    width: 100% !important;
    margin: 0 !important;
    padding: 12px !important;
    font-size: 0.95rem !important;
    border-radius: var(--border-radius-sm) !important;
}

@media (min-width: 450px) {
    .swal2-actions {
        flex-direction: row !important;
    }

    .swal2-confirm,
    .swal2-cancel {
        width: auto !important;
        flex: 1 !important;
    }
}