        :root {
            --primary-blue: #0284c7;
            --light-blue: #e0f2fe;
            --success-green: #22c55e;
            --bg-color: #f0f9ff;
            --text-dark: #0f172a;
        }

		body {
			font-family: 'Inter', sans-serif;
			background-color: #cbd5e1;
			margin: 0;
			padding: 0;
			display: flex;
			justify-content: center;
			align-items: flex-start; /* Evita centralização vertical do app */
			min-height: 100vh;
		}

		.app-container {
			width: 100%;
			max-width: 450px;

			height: 100vh;   /* Fallback */
			height: 100dvh;  /* Altura dinâmica no Android moderno */

			max-height: none;
			background-color: var(--bg-color);
			position: relative;
			overflow-y: auto;
			overflow-x: hidden;
			-webkit-overflow-scrolling: touch;

			box-shadow: 0 0 20px rgba(0,0,0,0.1);
			display: flex;
			flex-direction: column;
		}

        @media (min-width: 451px) {
            .app-container {
                height: 100vh;
                border-radius: 20px;
            }
        }

        /* View Management */
        .view {
            display: none;
            flex-direction: column;
            height: 100%;
            padding: 2rem 1.5rem;
            animation: fadeIn 0.3s ease-in-out;
        }

        .view.active {
            display: flex;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Typography & Inputs */
        h1, h2 { color: var(--primary-blue); font-weight: 700; text-align: center; }
        
        .custom-input {
            background-color: white !important;
            border: 2px solid var(--primary-blue);
            color: var(--text-dark) !important;
            font-size: 1.5rem;
            font-weight: 600;
            text-align: center;
            border-radius: 15px;
            padding: 1rem;
            letter-spacing: 2px;
            margin-bottom: 2rem;
            box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
        }

        /* Keypad Styles */
        .keypad {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 15px;
            margin-top: auto;
            padding-bottom: 1rem;
        }

        .key-btn {
            background-color: white;
            border: none;
            border-radius: 15px;
            padding: 15px 0;
            font-size: 1.8rem;
            font-weight: 600;
            color: var(--text-dark);
            box-shadow: 0 4px 6px rgba(0,0,0,0.05);
            transition: all 0.1s;
            display: flex;
            justify-content: center;
            align-items: center;
            user-select: none;
        }

        .key-btn:active {
            transform: scale(0.95);
            background-color: var(--light-blue);
        }

        .key-action-back {
            color: #ef4444;
            font-size: 2rem;
        }

        .key-action-confirm {
            background-color: var(--success-green);
            color: white;
            font-weight: 700;
        }
        
        .key-action-confirm:active {
            background-color: #16a34a;
        }

        /* Dashboard & Buttons */
        .balance-card {
            background: linear-gradient(135deg, var(--primary-blue), #0369a1);
            color: white;
            border-radius: 20px;
            padding: 2rem 1.5rem;
            text-align: center;
            margin-bottom: 2rem;
            box-shadow: 0 10px 15px -3px rgba(2, 132, 199, 0.4);
        }

        .action-btn {
            border-radius: 20px;
            padding: 1.5rem;
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 2rem;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
            transition: transform 0.2s;
        }
        
        .action-btn:active { transform: scale(0.98); }

        /* Custom Modal Overlay */
        .custom-modal-overlay {
			position: fixed;
			inset: 0;
			width: 100%;
			height: 100vh;
			height: 100dvh;
            background: rgba(0,0,0,0.6);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            border-radius: inherit;
        }

        .custom-modal {
            background: white;
            width: 85%;
            border-radius: 20px;
            padding: 2rem;
            text-align: center;
            box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
            animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        @keyframes popIn {
            from { transform: scale(0.8); opacity: 0; }
            to { transform: scale(1); opacity: 1; }
        }

		/* Loader: cobre a janela inteira */
		.loader-overlay {
			position: fixed;
			inset: 0;
			width: 100%;
			height: 100vh;
			height: 100dvh;

			background: rgba(255, 255, 255, 0.8);

			display: none;
			flex-direction: column;
			justify-content: center;
			align-items: center;

			z-index: 9999;
		}
		
		#loader-msg {
			background-color: white;
		}
		
		.branco {
            color: #fff;
		}
		.btn-free {
			background-color: #06af18;
			border-color: #06af18;
		}
		.btn-free:hover {
			background-color: #2c9c32;
			border-color: #2c9c32;
		}
		#view-home img {
			display: block;
			width: 350px;
			height: 233px;
			max-width: 100%;
			object-fit: contain;
			margin-left: auto;
			margin-right: auto;
			flex-shrink: 0;
		}

		#view-home {
			width: 100%;
			box-sizing: border-box;
			padding: 20px 12px;
		}
		.balance-card {
			position: relative;
		}

		.profile-menu {
			position: absolute;
			top: 24px;
			right: 24px;
			z-index: 1050;
		}

		.profile-btn {
			display: flex;
			align-items: center;
			justify-content: center;
			width: 46px;
			height: 46px;
			padding: 0;
			color: #fff;
			border: 1px solid rgba(255, 255, 255, 0.35);
			border-radius: 50%;
			background: rgba(255, 255, 255, 0.12);
		}

		.profile-btn:hover,
		.profile-btn:focus {
			color: #fff;
			background: rgba(255, 255, 255, 0.25);
		}

		.profile-menu .dropdown-menu {
			min-width: 190px;
			margin-top: 8px;
			border: none;
			border-radius: 12px;
			padding: 8px;
		}

		.profile-menu .dropdown-item {
			padding: 10px 12px;
			border-radius: 8px;
		}
		
		
		
		/* ===== TOUR GUIADO: CAMADA SOBRE O SITE ===== */

		#tour-overlay {
			position: fixed;
			inset: 0;
			z-index: 99999;
			display: none;
			pointer-events: none;
		}

		#tour-overlay.active {
			display: block;
		}

		/* Quatro áreas escuras em volta do elemento destacado */
		#tour-overlay .tour-shade {
			position: fixed;
			background: rgba(0, 0, 0, 0.60);
			pointer-events: auto;
		}

		#tour-overlay .tour-shade-top {
			top: 0;
			left: 0;
			width: 100%;
			height: var(--tour-top, 0px);
		}

		#tour-overlay .tour-shade-left {
			top: var(--tour-top, 0px);
			left: 0;
			width: var(--tour-left, 0px);
			height: var(--tour-hole-height, 0px);
		}

		#tour-overlay .tour-shade-right {
			top: var(--tour-top, 0px);
			left: var(--tour-right, 100%);
			right: 0;
			height: var(--tour-hole-height, 0px);
		}

		#tour-overlay .tour-shade-bottom {
			top: var(--tour-bottom, 0px);
			left: 0;
			width: 100%;
			bottom: 0;
		}

		/* Contorno luminoso ao redor do elemento */
		#tour-highlight {
			position: fixed;
			z-index: 2;
			box-sizing: border-box;
			border: 3px solid #38bdf8;
			border-radius: 12px;
			box-shadow: 0 0 18px rgba(56, 189, 248, 0.8);
			pointer-events: none;
			transition: all 0.25s ease;
			animation: tourGlow 1.4s infinite alternate;
		}

		@keyframes tourGlow {
			from {
				border-color: #38bdf8;
				box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
			}
			to {
				border-color: #bae6fd;
				box-shadow: 0 0 24px rgba(56, 189, 248, 1);
			}
		}

		/* Caixa de explicação sempre por cima da camada escura */
		#tour-tooltip {
			position: fixed;
			z-index: 5;
			width: min(340px, calc(100vw - 32px));
			padding: 20px;
			box-sizing: border-box;
			color: #0f172a;
			background: #fff;
			border-radius: 16px;
			box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
			pointer-events: auto;
		}

		#tour-tooltip .tour-top {
			display: flex;
			justify-content: space-between;
			align-items: center;
			gap: 8px;
			margin-bottom: 12px;
		}

		#tour-tooltip .tour-top span {
			color: #0284c7;
			font-size: 0.72rem;
			font-weight: 800;
			letter-spacing: 0.06em;
		}

		#tour-tooltip h5 {
			color: #0284c7;
			font-size: 1.15rem;
			font-weight: 700;
			margin: 0 0 10px;
		}

		#tour-tooltip p {
			color: #334155;
			font-size: 0.97rem;
			line-height: 1.6;
			margin: 0 0 18px;
		}

		#tour-close {
			border: 0;
			background: transparent;
			color: #64748b;
			font-size: 1.5rem;
			cursor: pointer;
		}

		#tour-tooltip .tour-footer {
			display: flex;
			align-items: center;
			justify-content: space-between;
			flex-wrap: wrap;
			gap: 8px;
		}

		#tour-step-counter {
			color: #64748b;
			font-size: 0.8rem;
		}

		#tour-tooltip .tour-actions {
			display: flex;
			gap: 8px;
		}

		#tour-tooltip .tour-actions button,
		#tour-skip {
			border: 0;
			border-radius: 8px;
			padding: 9px 12px;
			font-weight: 600;
			cursor: pointer;
		}

		#tour-prev {
			color: #0f172a;
			background: #e2e8f0;
		}

		#tour-next {
			color: #fff;
			background: #0284c7;
		}

		#tour-skip {
			color: #64748b;
			background: transparent;
			padding-left: 0;
		}

		@media (max-width: 380px) {
			#tour-tooltip {
				padding: 16px;
			}
		}
