/* ═══════════════════════════════════════════════════
   GRUPO BANDEIRANTES — PORTAL DO CLIENTE (PWA)
   Design System: Dark Premium + Glassmorphism
   ═══════════════════════════════════════════════════ */

:root {
    --bg-primary: #020617;
    --bg-secondary: #0f172a;
    --bg-card: #1e293b;
    --bg-card-hover: #334155;
    --bg-glass: rgba(30, 41, 59, 0.75);
    --accent: #0ea5e9;
    --accent-glow: rgba(14, 165, 233, 0.25);
    --accent-light: #38bdf8;
    --success: #22c55e;
    --success-bg: rgba(34, 197, 94, 0.12);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.12);
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.12);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px var(--accent-glow);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100dvh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

#app {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100dvh;
    position: relative;
}

/* ─── SCREENS ────────────────────────────────────── */
.screen {
    display: none;
    min-height: 100dvh;
    animation: fadeIn 0.3s ease-out;
}

.screen.active {
    display: flex;
    flex-direction: column;
}

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

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

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

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ─── LOGIN ──────────────────────────────────────── */
.login-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100dvh;
    padding: 32px 24px;
    background: 
        radial-gradient(ellipse at 50% 0%, rgba(59, 130, 246, 0.08) 0%, transparent 60%),
        var(--bg-primary);
}

.login-logo {
    text-align: center;
    margin-bottom: 40px;
    animation: slideUp 0.5s ease-out;
}

.logo-icon {
    margin-bottom: 24px;
    filter: drop-shadow(0 0 15px rgba(0,0,0,0.5));
}

.login-logo h1 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 4px;
    font-weight: 400;
}

.login-form {
    width: 100%;
    max-width: 340px;
    animation: slideUp 0.6s ease-out 0.1s both;
}

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

.input-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font);
    transition: all 0.2s ease;
    outline: none;
}

.input-group input::placeholder {
    color: var(--text-muted);
}

.input-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    width: 100%;
    padding-right: 40px;
}

.btn-toggle-pass {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.btn-toggle-pass:hover {
    color: var(--text-primary);
}

.btn-primary {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--accent), #2563eb);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font);
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

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

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s;
}

.btn-primary:hover::after {
    transform: translateX(100%);
}

.error-msg {
    text-align: center;
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: 12px;
    padding: 10px;
    background: var(--danger-bg);
    border-radius: var(--radius-sm);
}

.login-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 32px;
    animation: slideUp 0.7s ease-out 0.2s both;
}

.login-footer p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.shield-icon {
    font-size: 0.8rem;
}

/* ─── SPINNER ────────────────────────────────────── */
.spinner {
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(255,255,255,0.2);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}

.spinner.large {
    width: 36px;
    height: 36px;
    border-width: 3px;
    border-top-color: var(--accent);
}

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

/* ─── HEADER ─────────────────────────────────────── */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.app-header h2 {
    font-size: 1.15rem;
    font-weight: 700;
}

.header-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.btn-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon:active {
    transform: scale(0.95);
    background: var(--bg-card-hover);
}

/* ─── SUMMARY CARDS ──────────────────────────────── */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 16px 20px;
    animation: slideUp 0.4s ease-out;
}

.summary-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 12px;
    text-align: center;
    transition: transform 0.2s;
}

.summary-card:active {
    transform: scale(0.97);
}

.card-icon {
    font-size: 1.3rem;
    margin-bottom: 6px;
}

.card-value {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
}

.card-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 4px;
}

.card-paid .card-value { color: var(--success); }
.card-pending .card-value { color: var(--warning); }
.card-overdue .card-value { color: var(--danger); }

/* ─── FILTER TABS ────────────────────────────────── */
.filter-tabs {
    display: flex;
    gap: 6px;
    padding: 4px 20px 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.filter-tabs::-webkit-scrollbar { display: none; }

.filter-tab {
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 100px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.filter-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* ─── PARCELAS LIST ──────────────────────────────── */
.parcelas-list {
    flex: 1;
    padding: 0 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 60px 0;
    color: var(--text-muted);
}

.parcela-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    animation: slideUp 0.3s ease-out both;
}

.parcela-card:active {
    transform: scale(0.98);
    background: var(--bg-card-hover);
}

.parcela-card.status-PAGO {
    border-left: 3px solid var(--success);
}

.parcela-card.status-MES_ATUAL {
    border-left: 3px solid var(--warning);
}

.parcela-card.status-ATRASADO {
    border-left: 3px solid var(--danger);
}

.parcela-num {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    flex-shrink: 0;
}

.status-PAGO .parcela-num {
    background: var(--success-bg);
    color: var(--success);
}
.status-MES_ATUAL .parcela-num {
    background: var(--warning-bg);
    color: var(--warning);
}
.status-ATRASADO .parcela-num {
    background: var(--danger-bg);
    color: var(--danger);
}

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

.parcela-valor {
    font-size: 1.05rem;
    font-weight: 700;
}

.parcela-vencimento {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.parcela-badge {
    padding: 5px 10px;
    border-radius: 100px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.status-PAGO .parcela-badge {
    background: var(--success-bg);
    color: var(--success);
}
.status-MES_ATUAL .parcela-badge {
    background: var(--warning-bg);
    color: var(--warning);
}
.status-ATRASADO .parcela-badge {
    background: var(--danger-bg);
    color: var(--danger);
}

.empty-state {
    text-align: center;
    padding: 40px 0;
    color: var(--text-muted);
}

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

/* ─── PIX SCREEN ─────────────────────────────────── */
.pix-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    gap: 20px;
}

.pix-info-card {
    width: 100%;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    animation: slideUp 0.3s ease-out;
}

.pix-parcela-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.pix-valor {
    font-size: 2rem;
    font-weight: 900;
    margin: 8px 0 4px;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pix-vencimento {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.pix-qrcode-area {
    width: 220px;
    height: 220px;
    background: white;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    box-shadow: var(--shadow-glow);
    animation: slideUp 0.4s ease-out 0.1s both;
}

.pix-qrcode-area canvas,
.pix-qrcode-area img {
    width: 188px !important;
    height: 188px !important;
}

.pix-copia-cola {
    width: 100%;
    animation: slideUp 0.5s ease-out 0.2s both;
}

.pix-copia-cola label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: block;
    margin-bottom: 6px;
}

.copy-field {
    display: flex;
    gap: 8px;
}

.copy-field input {
    flex: 1;
    padding: 12px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.78rem;
    font-family: monospace;
    outline: none;
    min-width: 0;
}

.btn-copy {
    padding: 12px 18px;
    background: var(--accent);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: var(--font);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

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

.pix-status {
    width: 100%;
    text-align: center;
    padding: 16px;
    animation: slideUp 0.5s ease-out 0.3s both;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
}

.status-badge.waiting {
    background: var(--warning-bg);
    color: var(--warning);
}

.status-badge.paid {
    background: var(--success-bg);
    color: var(--success);
}

/* ─── PAYMENT SUCCESS ANIMATION ──────────────────── */
.payment-success-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeInOverlay 0.3s ease-out;
    backdrop-filter: blur(8px);
}

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

.success-check-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 24px;
}

.success-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
}

.success-circle.pulse-glow {
    animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
               pulseGlow 2s ease-in-out infinite 0.5s;
}

@keyframes scaleIn {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { box-shadow: 0 0 30px 15px rgba(34, 197, 94, 0.15); }
}

.success-checkmark {
    width: 50px;
    height: 50px;
    stroke: white;
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.success-checkmark path {
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: drawCheck 0.4s ease-out 0.4s forwards;
}

@keyframes drawCheck {
    to { stroke-dashoffset: 0; }
}

.success-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: #22c55e;
    margin-bottom: 8px;
    opacity: 0;
    transform: translateY(15px);
    animation: slideUpFade 0.4s ease-out 0.7s forwards;
}

.success-subtext {
    font-size: 0.9rem;
    color: #94a3b8;
    opacity: 0;
    transform: translateY(10px);
    animation: slideUpFade 0.4s ease-out 0.9s forwards;
}

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

.confetti-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    animation: confettiFall 1.5s ease-out forwards;
    pointer-events: none;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(200px) rotate(720deg) scale(0);
        opacity: 0;
    }
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 1.5s ease-in-out infinite;
}

/* ─── HEADER LEFT GROUP ──────────────────────────── */
.header-left-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ─── CONTRATOS SCREEN ───────────────────────────── */
.contratos-section {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contratos-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.contratos-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contrato-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    animation: slideUp 0.35s ease-out both;
    position: relative;
    overflow: hidden;
}

.contrato-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--accent), var(--accent-light));
    border-radius: 4px 0 0 4px;
}

.contrato-card:active {
    transform: scale(0.98);
    background: var(--bg-card-hover);
}

.contrato-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.contrato-numero {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.contrato-numero .icon {
    font-size: 1.2rem;
}

.contrato-status {
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--success-bg);
    color: var(--success);
}

.contrato-lote-info {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.contrato-valor {
    margin-top: 10px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.contrato-arrow {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: transform 0.2s;
}

.contrato-card:active .contrato-arrow {
    transform: translateY(-50%) translateX(3px);
}

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 360px) {
    .login-logo h1 { font-size: 1.3rem; }
    .summary-cards { gap: 6px; }
    .card-value { font-size: 1.3rem; }
    .pix-valor { font-size: 1.6rem; }
}

@media (min-width: 481px) {
    #app {
        border-left: 1px solid var(--border);
        border-right: 1px solid var(--border);
    }
}

@media (min-width: 768px) {
    :root { font-size: 17px; }
    .summary-cards { gap: 14px; }
}

/* Safe area for notched phones */
@supports (padding-top: env(safe-area-inset-top)) {
    .app-header {
        padding-top: calc(16px + env(safe-area-inset-top));
    }
    .login-container {
        padding-top: calc(32px + env(safe-area-inset-top));
        padding-bottom: calc(32px + env(safe-area-inset-bottom));
    }
}


.dev-credits {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.6;
    letter-spacing: 0.5px;
}

.dev-credits p {
    margin: 4px 0;
}

.dev-credits p:first-child {
    font-weight: 500;
}

.dev-credits p:last-child {
    font-size: 0.7rem;
    opacity: 0.8;
}

.app-version-footer {
    text-align: center;
    padding: 24px 0 16px 0;
    font-size: 0.72rem;
    color: var(--text-muted);
    opacity: 0.45;
    letter-spacing: 0.5px;
}
.btn-recibo {
    margin-left: 8px;
    background-color: #ffffff;
    color: #10b981;
    border: 1px solid #10b981;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.btn-recibo:active {
    background-color: #ecfdf5;
    transform: scale(0.95);
}

/* ─── BOTTOM NAVIGATION ─── */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(30, 41, 59, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #64748b;
    gap: 4px;
    padding: 8px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 12px;
}

.nav-item svg {
    transition: all 0.2s ease;
}

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

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

.nav-item.active svg {
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.nav-item:active {
    background: rgba(255, 255, 255, 0.05);
}

body {
    padding-bottom: 70px; /* Space for bottom nav */
}

@keyframes tada {
    0% { transform: scale(1); }
    10%, 20% { transform: scale(0.95) rotate(-2deg); }
    30%, 50%, 70%, 90% { transform: scale(1.05) rotate(2deg); }
    40%, 60%, 80% { transform: scale(1.05) rotate(-2deg); }
    100% { transform: scale(1) rotate(0); }
}
.tada-animation {
    animation: tada 1s ease-in-out;
}

/* ═══════════════════════════════════════════════════
   GREETING & FAREWELL OVERLAYS (ANIMAÇÕES)
   ═══════════════════════════════════════════════════ */
.anim-fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background: radial-gradient(circle at 50% 35%, #0f172a 0%, #020617 100%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    transform: scale(0.96);
    pointer-events: all;
    user-select: none;
}

.anim-fullscreen-overlay.anim-active {
    opacity: 1;
    transform: scale(1);
}

.anim-fullscreen-overlay.anim-closing {
    opacity: 0;
    transform: scale(1.04);
}

.anim-glow-circle {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.22) 0%, rgba(16, 185, 129, 0.12) 50%, transparent 75%);
    filter: blur(44px);
    pointer-events: none;
    animation: auraPulse 3.5s ease-in-out infinite;
    z-index: 0;
}

.anim-glow-circle.anim-glow-farewell {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.22) 0%, rgba(14, 165, 233, 0.1) 50%, transparent 75%);
}

@keyframes auraPulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; }
}

.anim-card-content {
    position: relative;
    z-index: 1;
    max-width: 380px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: slideUpFade 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes slideUpFade {
    0% { opacity: 0; transform: translateY(22px) scale(0.94); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.anim-logo-wrap {
    position: relative;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.anim-brand-logo {
    max-width: 220px;
    height: auto;
    border-radius: 14px;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.6));
    position: relative;
    z-index: 2;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.anim-logo-pulse {
    position: absolute;
    inset: -12px;
    border-radius: 20px;
    background: rgba(14, 165, 233, 0.15);
    filter: blur(14px);
    z-index: 1;
    animation: auraPulse 2.5s ease-in-out infinite;
}

.anim-icon-wrap {
    position: relative;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.9));
    border: 2px solid rgba(16, 185, 129, 0.35);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 24px rgba(16, 185, 129, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.anim-wave-emoji {
    font-size: 40px;
    animation: handWave 1.4s ease-in-out infinite;
    transform-origin: 70% 70%;
    display: inline-block;
}

@keyframes handWave {
    0% { transform: rotate(0deg); }
    15% { transform: rotate(16deg); }
    30% { transform: rotate(-10deg); }
    45% { transform: rotate(14deg); }
    60% { transform: rotate(-6deg); }
    75% { transform: rotate(10deg); }
    100% { transform: rotate(0deg); }
}

.anim-badge-welcome,
.anim-badge-security {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.anim-badge-welcome {
    background: rgba(14, 165, 233, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(14, 165, 233, 0.3);
}

.anim-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 8px #38bdf8;
    animation: blinkDot 1.2s ease-in-out infinite alternate;
}

@keyframes blinkDot {
    0% { opacity: 0.4; }
    100% { opacity: 1; }
}

.anim-badge-security {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.anim-title {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
    line-height: 1.2;
}

.anim-client-name {
    font-size: 20px;
    font-weight: 700;
    color: #38bdf8;
    margin-bottom: 10px;
    line-height: 1.3;
    max-width: 90%;
    word-break: break-word;
}

.anim-subtitle {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 22px;
    max-width: 320px;
}

.anim-loader-bar-wrap {
    width: 180px;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.4);
}

.anim-loader-bar {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #0ea5e9, #10b981, #38bdf8);
    border-radius: 4px;
    animation: progressFill 1.8s ease-in-out infinite;
}

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

.anim-farewell-tag {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 16px;
    border-radius: 10px;
    backdrop-filter: blur(8px);
}
