/* ============================================
   SLARRA — Premium Design System
   ============================================ */

/* ---- CSS Variables (Design Tokens) ---- */
:root {
    /* Colors */
    --color-bg: #000000;
    --color-surface: #0a0a0a;
    --color-surface-elevated: #111111;
    --color-border: #1a1a1a;
    --color-border-focus: #2563EB;
    --color-text-primary: #FFFFFF;
    --color-text-secondary: rgba(255, 255, 255, 0.55);
    --color-text-muted: rgba(255, 255, 255, 0.35);
    --color-accent-red: #E50914;
    --color-accent-red-hover: #FF1A26;
    --color-accent-red-active: #C70812;
    --color-accent-blue: #2563EB;
    --color-accent-blue-hover: #3B7BFF;
    --color-glow: rgba(255, 255, 255, 0.06);

    /* Typography */
    --font-primary: 'Inter', sans-serif; /* Helvetica Now alternative */
    --font-subtitle: 'Hanken Grotesk', sans-serif; /* Aktiv Grotesk alternative */
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;

    /* Borders */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 350ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Safe areas for mobile */
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-body);
    background: #020202; /* Extremely dark desktop background */
    color: var(--color-text-primary);
    min-height: 100dvh;
    overflow-x: hidden;
    line-height: 1.5;
    display: flex;
    justify-content: center; /* Center the App Container horizontally */
}

body.no-scroll {
    overflow: hidden !important;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

button {
    border: none;
    outline: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

input {
    border: none;
    outline: none;
    background: none;
    font-family: inherit;
}

/* ---- App Container (Mobile Wrapper) ---- */
.app-container {
    width: 100%;
    max-width: 480px; /* Force premium mobile aspect ratio on desktop */
    min-height: 100dvh;
    position: relative;
    background: var(--color-bg);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.85); /* Separates wrapper from desktop bg */
    margin: 0 auto;
}

/* ---- Screen Management ---- */
.screen {
    display: none;
    width: 100%;
    min-height: 100dvh;
}

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

/* ============================================
   TOP BAR / HEADER
   ============================================ */
/* ============================================
   TOP AREA (UNIFIED FIX)
   ============================================ */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(var(--safe-top) + 16px) 20px 8px 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    background: transparent;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease, border-color 0.4s ease;
    border-bottom: 1px solid transparent;
}

.top-bar.scrolled {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding-bottom: 12px;
    border-color: rgba(255, 255, 255, 0.05);
}

/* Logo */
.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: opacity var(--transition-fast);
}

.logo-container:active {
    opacity: 0.7;
}

.logo-icon svg {
    width: 36px;
    height: 36px;
    display: block;
}

.logo-text {
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -1px;
    color: var(--color-text-primary);
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6); /* Subtle black glow for visibility over photo */
}

/* Hamburger Menu Button */
.menu-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
    position: relative;
}

.menu-btn:hover {
    background: rgba(255, 255, 255, 0.06);
}

.menu-btn:active {
    background: rgba(255, 255, 255, 0.1);
}

.hamburger-lines {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    width: 24px;
}

.h-line {
    display: block;
    height: 2px;
    background: var(--color-text-primary);
    border-radius: 2px;
    transition: transform 0.4s cubic-bezier(0.7, 0, 0.3, 1), opacity 0.4s ease, width 0.4s ease;
    transform-origin: center;
}

.h-line-1 {
    width: 24px;
}

.h-line-2 {
    width: 18px;
}

.h-line-3 {
    width: 12px;
}

/* Hamburger hover — lines equalize */
.menu-btn:hover .h-line {
    width: 24px;
}

/* Hamburger Open State (X) - Matemático e Luxuoso */
.hamburger-lines.open .h-line-1 {
    transform: translateY(6px) rotate(45deg);
    width: 24px;
}

.hamburger-lines.open .h-line-2 {
    opacity: 0;
    width: 0;
    transform: translateX(10px);
}

.hamburger-lines.open .h-line-3 {
    transform: translateY(-6px) rotate(-45deg);
    width: 24px;
}

/* ============================================
   LOGIN SCREEN
   ============================================ */
.login-screen {
    background: var(--color-bg);
    position: relative;
    min-height: 100dvh;
}

.login-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0 32px 0;
    padding-bottom: calc(var(--safe-bottom) + 32px);
    position: relative;
}

/* ---- Hero Section (Carousel Container) ---- */
.hero-section {
    width: 100%;
    aspect-ratio: 2.22 / 1;
    position: relative;
    padding: 0;
    overflow: hidden;
    margin-bottom: 20px;
    background: #000;
}

/* Individual Slide — Pure stacking, JS controls visibility */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    z-index: 1;
}

/* Gradient Overlay — Always on top of all slides */
.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,1) 100%);
    z-index: 10;
    pointer-events: none;
}

/* Hero Title - Absolute Cornered at Bottom-Left of the Photo */
.hero-title {
    position: absolute;
    bottom: 12px;
    left: 16px;
    z-index: 20;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: auto;
    max-width: 90%;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 1);
}

.hero-line-1 {
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 1.45rem;
    letter-spacing: -0.8px;
    color: var(--color-text-primary);
    line-height: 1.2;
    display: block;
}

.hero-line-2 {
    font-family: var(--font-subtitle);
    font-weight: 400;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0;
    line-height: 1.4;
    display: block;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.85) 0%,
        rgba(255, 255, 255, 0.6) 40%,
        rgba(255, 255, 255, 0.6) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Login Form ---- */
.login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    padding: 0 24px;
}

/* Signup Group - flex column, normal document flow */
#signupGroup.signup-stepper {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 8px;
}

/* Signup Steps - show one at a time using display */
.signup-step {
    display: none;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.signup-step.active {
    display: flex;
    animation: premiumFadeIn 0.25s cubic-bezier(0, 0, 0.2, 1) both;
}

/* Signup Header Title */
.signup-header-title {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0 0 8px 0;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--color-border);
}

.signup-title-text {
    font-family: var(--font-subtitle);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text-primary);
letter-spacing: -0.5px;
}

/* Signup Step (remove duplicate old styles) */

.form-header {
    display: flex;
    align-items: center;
    justify-content: center; /* Center the title */
    position: relative;
    width: 100%;
    margin-bottom: 24px;
    min-height: 44px;
}

/* Back Button styling - Pinned to left */
.back-btn {
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-primary);
    background: transparent;
    border-radius: 50%;
    transition: background var(--transition-fast), transform var(--transition-fast);
    cursor: pointer;
    border: none;
    outline: none;
    z-index: 10;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.back-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.view-title {
    font-family: var(--font-primary);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-text-primary);
    letter-spacing: -0.5px;
    text-align: center;
}

.back-btn svg {
    stroke-width: 2.5px;
}

/* Input Group — Netflix Style */
.input-group {
    position: relative;
    width: 100%;
}

.premium-input {
    width: 100%;
    height: 56px;
    padding: 20px 48px 6px 48px;
    font-family: var(--font-body);
    font-size: 0.935rem;
    font-weight: 400;
    color: var(--color-text-primary);
    background: var(--color-surface);
    border: 1.2px solid var(--color-border);
    border-radius: 0;
    caret-color: var(--color-accent-blue);
    transition: all var(--transition-normal);
    letter-spacing: 0.2px;
    outline: none;
}

.premium-input:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.premium-input:focus {
    border-color: var(--color-accent-blue);
    background: rgba(37, 99, 235, 0.03) !important;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.1);
}

/* --- Prefixed Phone Input (+258) --- */
.input-group.has-prefix {
    position: relative;
}

.input-prefix {
    position: absolute;
    left: 48px;
    top: 62%; /* Ajustado de 50% para alinhar com o texto abaixo da label */
    transform: translateY(-50%);
    font-family: var(--font-body);
    font-size: 0.935rem;
    font-weight: 600;
    color: var(--color-accent-blue);
    pointer-events: none;
    z-index: 3; /* Aumentado para garantir visibilidade */
    opacity: 0;
    transition: opacity var(--transition-normal), transform var(--transition-normal);
    letter-spacing: 0.5px;
}

/* Show prefix when input is focused or has value */
.input-group.has-prefix .premium-input:focus ~ .input-prefix,
.input-group.has-prefix .premium-input:not(:placeholder-shown) ~ .input-prefix {
    opacity: 1;
    transform: translateY(-50%);
}

/* Shift the input text to the right to accommodate prefix */
.prefixed-input {
    padding-left: 100px !important;
}

/* Prefixed label adjustment */
.prefixed-label {
    left: 48px;
}

.premium-input.prefixed-input:focus ~ .prefixed-label,
.premium-input.prefixed-input:not(:placeholder-shown) ~ .prefixed-label {
    left: 48px;
}

/* Fix for Browser Autofill background (White/Yellow issue) */
.premium-input:-webkit-autofill,
.premium-input:-webkit-autofill:hover,
.premium-input:-webkit-autofill:focus,
.premium-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 40px #1a1a1a inset !important; /* Match surface color */
    -webkit-text-fill-color: var(--color-text-primary) !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Select Specifics */
.premium-select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: none !important;
    padding-top: 26px !important; /* Extra space for label */
}

.premium-select:focus {
    outline: none !important;
    box-shadow: none !important;
}

.premium-select option {
    background: var(--color-surface-elevated);
    color: var(--color-text-primary);
    padding: 10px;
}

.select-arrow {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.premium-select:focus ~ .select-arrow {
    color: var(--color-accent-blue);
}

/* Force label up for select since it always has a value */
.premium-select ~ .select-label {
    top: 8px;
    transform: translateY(0);
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45);
}

/* Floating Label */
.floating-label {
    position: absolute;
    left: 48px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-subtitle);
    font-size: 0.935rem;
    font-weight: 400;
    color: var(--color-text-muted);
    pointer-events: none;
    transition: all var(--transition-normal);
    transform-origin: left center;
}

.premium-input:focus ~ .floating-label,
.premium-input:not(:placeholder-shown) ~ .floating-label {
    top: 8px;
    transform: translateY(0);
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.3px;
}

/* Input Icons */
.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-normal);
    pointer-events: none;
}

.premium-input:focus ~ .input-icon {
    color: var(--color-accent-blue);
}

/* ============================================
   STANDARD PREMIUM FORM ELEMENTS
   (Used in Edit Profile, etc.)
   ============================================ */
.premium-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 22px;
    width: 100%;
}

.premium-form-label {
    font-family: var(--font-subtitle);
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-left: 2px;
    display: block;
}

.premium-input-wrap {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1.2px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.premium-input-wrap:focus-within {
    background: rgba(37, 99, 235, 0.05);
    border-color: var(--color-accent-blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.premium-input-wrap svg {
    position: absolute;
    left: 16px;
    width: 18px;
    height: 18px;
    color: rgba(255, 255, 255, 0.3);
    transition: color 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.premium-input-wrap:focus-within svg {
    color: var(--color-accent-blue);
}

/* Adjust general premium-input when inside a wrap (removes specific floating label padding) */
.premium-input-wrap .premium-input {
    height: 56px;
    padding: 0 16px 0 52px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-size: 0.95rem;
}

/* Password Toggle */
.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast), background var(--transition-fast);
}

.toggle-password:hover {
    color: var(--color-text-secondary);
    background: rgba(255, 255, 255, 0.05);
}

/* Forgot Password */
.forgot-password-row {
    display: flex;
    justify-content: flex-end;
    margin-top: -4px;
    margin-bottom: 4px;
}

.forgot-link {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--color-accent-blue);
    letter-spacing: 0.1px;
    transition: color var(--transition-fast), opacity var(--transition-fast);
    padding: 4px 0;
}

.forgot-link:hover {
    color: var(--color-accent-blue-hover);
}

.forgot-link:active {
    opacity: 0.7;
}

/* OTP Recovery Layout */
.otp-group {
    width: 100%;
    margin-bottom: 24px;
}
.otp-instruction {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    text-align: center;
    margin-bottom: 20px;
}
.otp-container {
    display: flex;
    gap: 8px;
    justify-content: space-between;
}
.otp-input {
    width:calc((100% - 56px) / 8); /* 8 inputs, 7 gaps of 8px */
    aspect-ratio: 1/1;
    text-align: center;
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-primary);
    background: var(--color-surface);
    border: 1.2px solid var(--color-border);
    border-radius: 0;
    transition: border-color var(--transition-fast), transform var(--transition-fast);
    caret-color: transparent;
}
.otp-input:focus {
    border-color: var(--color-accent-blue);
    background: rgba(10, 10, 10, 0.95);
    transform: scale(1.05);
}

/* Base OTP Validation animations */
.otp-input.success-border {
    border-color: #22C55E !important; /* Premium Green */
    background: rgba(34, 197, 94, 0.05);
}
.otp-input.error-border {
    border-color: #EF4444 !important; /* Premium Red */
    background: rgba(239, 68, 68, 0.05);
}

/* Primary CTA Button */
.btn-primary {
    width: 100%;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent-red);
    border: none;
    border-radius: 0;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background var(--transition-normal), transform var(--transition-fast), box-shadow var(--transition-normal);
    margin-top: 6px;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.btn-primary:hover {
    background: var(--color-accent-red-hover);
    box-shadow: 0 4px 24px rgba(229, 9, 20, 0.35);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:active {
    background: var(--color-accent-red-active);
    transform: scale(0.985);
    box-shadow: 0 2px 12px rgba(229, 9, 20, 0.25);
}

.btn-text {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.3px;
}

/* Ultra-Premium Loading State (Bouncing Dots) */
.btn-loader {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px; /* Spacing between dots */
    inset: 0;
    pointer-events: none;
}

.dot {
    width: 6px;
    height: 6px;
    background-color: #F8F8F8;
    border-radius: 50%;
    transform: scale(0);
    display: block;
    opacity: 0.8;
}

/* Base keyframe configuration for the bouncing loader */
@keyframes bounceDots {
    0%, 100% { transform: scale(0); opacity: 0.3; }
    50%      { transform: scale(1.4); opacity: 1; }
}

/* Button Loading State Overrides */
.btn-primary.is-loading {
    background: #A20606 !important;
    box-shadow: inset 0 3px 6px rgba(0,0,0, 0.3) !important;
    color: transparent !important;
    pointer-events: none;
}

.btn-primary.is-loading .btn-text {
    opacity: 0;
}

.btn-primary.is-loading .dot {
    animation: bounceDots 1.4s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite both;
}

.btn-primary.is-loading .btn-loader .dot:nth-child(1) { animation-delay: 0s; }
.btn-primary.is-loading .btn-loader .dot:nth-child(2) { animation-delay: 0.15s; }
.btn-primary.is-loading .btn-loader .dot:nth-child(3) { animation-delay: 0.3s; }


/* Strict Form Validation State */
.input-error {
    border-color: #E50914 !important; /* Premium error red */
    animation: shakeInput 0.4s cubic-bezier(.36,.07,.19,.97) both;
    box-shadow: 0 0 0 1px rgba(229, 9, 20, 0.3), 0 0 20px rgba(229, 9, 20, 0.1) !important;
}

.input-error ~ .floating-label,
.input-error ~ .input-icon {
    color: #E50914 !important;
}

.input-error ~ .input-prefix {
    color: #E50914 !important;
}

@keyframes shakeInput {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-3px, 0, 0); }
    40%, 60% { transform: translate3d(3px, 0, 0); }
}

/* Register Link */
.register-row {
    display: flex;
    justify-content: center;
    margin-top: 6px;
}

.register-link {
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-accent-blue);
    letter-spacing: 0.1px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast), background var(--transition-fast), opacity var(--transition-fast);
}

.register-link:hover {
    color: var(--color-accent-blue-hover);
    background: rgba(37, 99, 235, 0.06);
}

.register-link:active {
    opacity: 0.7;
}

/* ---- Social Login Divider ---- */
.social-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 12px;
    margin-bottom: 4px;
    width: 100%;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%
    );
}

.divider-text {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.4px;
    text-transform: lowercase;
    white-space: nowrap;
}

/* ---- Social Login Buttons ---- */
.social-login-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 4px;
}

.social-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-smooth);
    padding: 0;
}

.social-btn:hover {
    transform: translateY(-4px) scale(1.08);
}

.payment-btn {
    width: 34px !important;
    height: 34px !important;
}

.payment-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
    display: block;
}

/* ============================================
   ULTRA-PREMIUM FLOATING CHATBOT
   ============================================ */
.floating-chat {
    position: fixed;
    bottom: 100px; /* Positioned above the glass-navbar */
    right: 24px;
    width: 80px;
    height: 80px;
    background: transparent;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999; /* Ensure it is on top of everything */
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), 
                filter 0.4s ease;
    animation: chatbotEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; /* Removed 0.8s delay */
    padding: 0;
    filter: drop-shadow(0 0 20px rgba(229, 9, 20, 0.4));
}

/* Entrance Animation */
@keyframes chatbotEntrance {
    0% { 
        opacity: 0; 
        transform: scale(0) rotate(-180deg); 
    }
    60% { 
        opacity: 1; 
        transform: scale(1.15) rotate(10deg); 
    }
    80% { 
        transform: scale(0.95) rotate(-5deg); 
    }
    100% { 
        opacity: 1; 
        transform: scale(1) rotate(0deg); 
    }
}

/* Hover State */
.floating-chat:hover {
    transform: scale(1.12);
    filter: drop-shadow(0 0 12px rgba(0, 210, 255, 0.3));
}

/* Active (Click) */
.floating-chat:active {
    transform: scale(0.96);
}

/* --- Icon Container --- */
.chat-icon-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    position: relative;
    z-index: 2;
}

.chatbot-svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}

.social-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.06) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity var(--transition-normal);
    border-radius: 13px;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.social-btn:hover::before {
    opacity: 1;
}

.social-btn:active {
    transform: translateY(0) scale(0.96);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.social-btn svg {
    position: relative;
    z-index: 1;
    transition: transform var(--transition-fast);
}

.social-btn:hover svg {
    transform: scale(1.08);
}

/* ============================================
   INPUT MICROINTERACTIONS — PREMIUM FOCUS TRAVELING
   ============================================ */

/* Base underline for all input groups */
.input-group::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent-blue), transparent);
    transition: width 0.5s cubic-bezier(0.23, 1, 0.32, 1), left 0.5s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s ease;
    opacity: 0;
    border-radius: 1px;
}

/* Active focus state — line expands from center */
.input-group.focus-active::after {
    width: 100%;
    left: 0;
    opacity: 1;
}

/* Focus exit — line contracts back to center with fade */
.input-group.focus-exit::after {
    width: 0;
    left: 50%;
    opacity: 0;
    transition: width 0.4s cubic-bezier(0.55, 0, 1, 0.45), left 0.4s cubic-bezier(0.55, 0, 1, 0.45), opacity 0.4s ease;
}

/* Subtle glow on focus */
.input-group.focus-active .premium-input {
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15), 0 4px 20px rgba(37, 99, 235, 0.06);
}

/* Keep general focus-within for direct CSS focus */
.input-group:focus-within::after {
    width: 100%;
    left: 0;
    opacity: 1;
}

/* ============================================
   PREMIUM VIEW TRANSITIONS (LOGIN ↔ SIGNUP)
   ============================================ */

/* Fade exit animation */
.fade-exit {
    animation: premiumFadeOut 0.25s cubic-bezier(0.4, 0, 1, 1) forwards;
}

/* Fade enter animation */
.fade-enter {
    animation: premiumFadeIn 0.45s cubic-bezier(0, 0, 0.2, 1) both;
}

@keyframes premiumFadeOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }
}

@keyframes premiumFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Form transitioning state — prevent layout jumps */
.form-transitioning {
    min-height: 200px;
}

/* ============================================
   SCROLLBAR (Desktop)
   ============================================ */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.18);
}

/* ============================================
   SELECTION
   ============================================ */
::selection {
    background: rgba(37, 99, 235, 0.3);
    color: white;
}

/* ============================================
   RESPONSIVE — TABLET & DESKTOP
   ============================================ */

/* Tablet (768px+) */
@media (min-width: 768px) {
    .top-bar {
        padding: 20px 40px 16px 40px;
    }

    .login-content {
        padding: 100px 40px 48px 40px;
        justify-content: center;
    }

    .hero-section {
        padding-top: 0;
        padding-bottom: 48px;
    }

    .hero-line-1 {
        font-size: 2.1rem;
    }

    .hero-line-2 {
        font-size: 1.05rem;
    }

    .login-form {
        max-width: 420px;
    }

    .logo-icon svg {
        width: 40px;
        height: 40px;
    }

    .logo-text {
        font-size: 1.5rem;
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .login-screen {
        position: relative;
        overflow: hidden;
    }

    .top-bar {
        padding: 24px 48px 20px 48px;
    }

    .login-content {
        padding: 100px 48px 56px 48px;
    }

    .hero-section {
        padding-bottom: 56px;
    }

    .hero-line-1 {
        font-size: 2.5rem;
    }

    .hero-line-2 {
        font-size: 1.15rem;
    }

    .login-form {
        max-width: 440px;
        gap: 16px;
    }

    .premium-input {
        height: 60px;
        font-size: 0.97rem;
        padding: 22px 48px 6px 48px;
    }

    .floating-label {
        font-size: 0.97rem;
    }

    .btn-primary {
        height: 56px;
    }

    .btn-text {
        font-size: 1rem;
    }

    /* Subtle ambient light on desktop */
    .login-screen::before {
        content: '';
        position: absolute;
        width: 800px;
        height: 800px;
        border-radius: 50%;
        background: radial-gradient(
            circle,
            rgba(229, 9, 20, 0.03) 0%,
            transparent 60%
        );
        top: -300px;
        right: -200px;
        pointer-events: none;
        z-index: 0;
    }

    .login-screen::after {
        content: '';
        position: absolute;
        width: 600px;
        height: 600px;
        border-radius: 50%;
        background: radial-gradient(
            circle,
            rgba(37, 99, 235, 0.025) 0%,
            transparent 60%
        );
        bottom: -200px;
        left: -100px;
        pointer-events: none;
        z-index: 0;
    }

    .login-content {
        position: relative;
        z-index: 1;
    }
}

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
    .top-bar {
        padding: 28px 80px 24px 80px;
    }

    .login-content {
        padding: 100px 80px;
    }

    .hero-line-1 {
        font-size: 2.8rem;
    }

    .hero-line-2 {
        font-size: 1.2rem;
    }
}

/* ============================================
   ACCESSIBILITY — REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   ENTRANCE ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.login-screen.active .hero-section {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.login-screen.active .login-form {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}

/* Signup mode — shorter hero so inputs land at same Y as login inputs */
.login-screen.signup-active .hero-section {
    aspect-ratio: unset !important;
    height: 128px !important;
    margin-bottom: 20px !important;
    transition: height 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hero title/subtitle stay the same size as in login mode */
.login-screen.signup-active .hero-section .hero-title {
    bottom: 10px;
}

/* Compact the "Registar-se" title so it takes minimal vertical space */
.login-screen.signup-active .signup-header-title {
    padding: 0 0 4px 0;
    margin-bottom: 2px;
}

.login-screen.active .top-bar {
    animation: fadeIn 0.5s ease 0.05s both;
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */
.how-it-works {
    margin-top: 40px;
    padding: 36px 22px 32px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    animation: fadeInUp var(--transition-slow) both;
}

/* ---- How It Works — Header ---- */
.hiw-header {
    text-align: center;
    margin-bottom: 32px;
}

.hiw-eyebrow {
    display: inline-block;
    font-family: var(--font-subtitle);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #E50914;
    margin-bottom: 14px;
}

.hiw-title {
    font-family: var(--font-primary);
    font-size: 1.55rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: -0.6px;
    margin: 0 0 14px;
}

.hiw-lead {
    font-family: var(--font-subtitle);
    font-size: 0.82rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.48);
    line-height: 1.65;
    margin: 0;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

/* ---- How It Works — Pillars ---- */
.hiw-pillars {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}

.hiw-pillar {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 18px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 14px;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.hiw-pillar:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(229, 9, 20, 0.18);
}

.hiw-pillar-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(229, 9, 20, 0.1);
    border: 1px solid rgba(229, 9, 20, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #E50914;
    flex-shrink: 0;
}

.hiw-pillar-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 2px;
}

.hiw-pillar-title {
    font-family: var(--font-primary);
    font-size: 0.88rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: -0.2px;
}

.hiw-pillar-desc {
    font-family: var(--font-subtitle);
    font-size: 0.74rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.55;
}

/* ---- How It Works — Social Proof ---- */
.hiw-proof {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 18px;
    background: rgba(229, 9, 20, 0.05);
    border: 1px solid rgba(229, 9, 20, 0.12);
    border-radius: 14px;
    margin-bottom: 28px;
}

.hiw-proof-num {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    font-weight: 900;
    color: #E50914;
    letter-spacing: -1px;
    white-space: nowrap;
    flex-shrink: 0;
}

.hiw-proof-text {
    font-family: var(--font-subtitle);
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.5;
}

/* Legacy — keep these in case other elements use them */
.section-title {
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 800;
    color: white;
    margin-bottom: 15px;
    text-align: center;
    letter-spacing: -1px;
}

.section-desc {
    font-family: var(--font-subtitle);
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    max-width: 500px;
    margin: 0 auto 30px;
    font-weight: 400;
}

/* ============================================
   PREMIUM PLANS GRID
   ============================================ */
.plans-wrap {
    margin-top: 36px;
}

/* Header block */
.plans-header-block {
    text-align: center;
    margin-bottom: 28px;
}

.plans-eyebrow {
    display: inline-block;
    font-family: var(--font-subtitle);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #E50914;
    margin-bottom: 10px;
}

.plans-title {
    font-family: var(--font-primary);
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.4px;
    line-height: 1.2;
    margin: 0 0 8px;
}

.plans-subtitle {
    font-family: var(--font-subtitle);
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.3px;
    margin: 0;
}

/* Column labels */
.plans-col-labels {
    display: grid;
    grid-template-columns: 1fr 100px 72px;
    padding: 0 18px 10px 18px;
    font-family: var(--font-subtitle);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.22);
}

.plans-col-labels span:not(:first-child) {
    text-align: center;
}

/* Grid */
.plans-grid {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

/* Base plan card */
.plan-card {
    display: grid;
    grid-template-columns: 1fr 100px 72px;
    align-items: center;
    padding: 16px 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.026);
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-left: 3px solid transparent;
    position: relative;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: default;
}

.plan-card:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateX(3px);
}

/* Tier left borders — all deep red scale */
.plan-card.tier-bronze   { border-left-color: rgba(180, 10, 20, 0.45); }
.plan-card.tier-silver   { border-left-color: rgba(180, 10, 20, 0.6); }
.plan-card.tier-gold     { border-left-color: rgba(180, 10, 20, 0.72); }
.plan-card.tier-platinum { border-left-color: rgba(200, 10, 20, 0.82); }
.plan-card.tier-sapphire { border-left-color: rgba(220, 10, 20, 0.9); }
.plan-card.tier-elite    { border-left-color: #E50914; border-color: rgba(229, 9, 20, 0.2); background: rgba(229, 9, 20, 0.04); }

/* Featured card */
.plan-featured {
    box-shadow: 0 0 0 1px rgba(229, 9, 20, 0.2), 0 8px 32px rgba(229, 9, 20, 0.08);
}

.plan-featured-tag {
    position: absolute;
    top: -1px;
    right: 18px;
    font-family: var(--font-subtitle);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #E50914;
    background: rgba(229, 9, 20, 0.1);
    border: 1px solid rgba(229, 9, 20, 0.25);
    border-top: none;
    border-radius: 0 0 7px 7px;
    padding: 3px 9px;
}

/* Left side */
.plan-card-left {
    display: flex;
    align-items: center;
    gap: 11px;
}

.plan-tier-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.tier-bronze   .plan-tier-dot { background: rgba(180, 10, 20, 0.45); box-shadow: 0 0 5px rgba(180, 10, 20, 0.3); }
.tier-silver   .plan-tier-dot { background: rgba(190, 10, 20, 0.6); box-shadow: 0 0 5px rgba(190, 10, 20, 0.35); }
.tier-gold     .plan-tier-dot { background: rgba(200, 10, 20, 0.72); box-shadow: 0 0 6px rgba(200, 10, 20, 0.4); }
.tier-platinum .plan-tier-dot { background: rgba(210, 10, 20, 0.82); box-shadow: 0 0 6px rgba(210, 10, 20, 0.5); }
.tier-sapphire .plan-tier-dot { background: rgba(220, 10, 20, 0.9);  box-shadow: 0 0 7px rgba(220, 10, 20, 0.55); }
.tier-elite    .plan-tier-dot { background: #E50914; box-shadow: 0 0 8px rgba(229, 9, 20, 0.65); }

.plan-numeral {
    font-family: var(--font-subtitle);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.2);
    min-width: 14px;
}

.plan-card-name {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.88);
    letter-spacing: -0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 110px;
    transition: color 0.2s ease;
}

.plan-card:hover .plan-card-name {
    color: #ffffff;
}

.plan-card-invest {
    display: block;
    font-size: 0.62rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.2px;
    margin-top: 1px;
    white-space: nowrap;
}

/* Data columns */
.plan-daily,
.plan-retorno {
    font-family: var(--font-subtitle);
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    text-align: center;
}

.plan-daily em,
.plan-retorno em {
    font-style: normal;
    font-size: 0.68rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.3);
    margin-left: 1px;
}

.plan-daily {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
}

.plan-featured .plan-daily {
    color: #FF4E5B;
}

.plans-disclaimer {
    margin-top: 20px;
    font-family: var(--font-subtitle);
    font-size: 10.5px;
    color: rgba(255, 255, 255, 0.2);
    text-align: center;
    letter-spacing: 0.3px;
}

/* Responsive */
@media (max-width: 480px) {
    .plans-col-labels {
        grid-template-columns: 1fr 88px 64px;
        padding: 0 14px 8px;
        font-size: 7.5px;
        letter-spacing: 1.5px;
    }
    .plan-card {
        grid-template-columns: 1fr 88px 64px;
        padding: 13px 14px;
    }
    .plan-card-name { font-size: 0.78rem; max-width: 90px; }
    .plan-daily, .plan-retorno { font-size: 0.75rem; }
    .plans-title { font-size: 1.2rem; }
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
    margin-top: 48px;
    padding: 44px 22px 36px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ---- Header ---- */
.faq-header {
    text-align: center;
    margin-bottom: 36px;
}

.faq-eyebrow {
    display: inline-block;
    font-family: var(--font-subtitle);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #E50914;
    margin-bottom: 12px;
}

.faq-title {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin: 0 0 12px;
}

.faq-lead {
    font-family: var(--font-subtitle);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.42);
    line-height: 1.65;
    margin: 0 auto;
    max-width: 280px;
}

/* ---- Items ---- */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.faq-item[open] {
    border-color: rgba(229, 9, 20, 0.2);
    background: rgba(229, 9, 20, 0.03);
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 18px;
    cursor: pointer;
    list-style: none;
    outline: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-q-index {
    font-family: var(--font-subtitle);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: rgba(229, 9, 20, 0.5);
    min-width: 20px;
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.faq-item[open] .faq-q-index {
    color: #E50914;
}

.faq-q-text {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    flex: 1;
    line-height: 1.35;
    letter-spacing: -0.2px;
    transition: color 0.3s ease;
}

.faq-item[open] .faq-q-text {
    color: #ffffff;
}

.faq-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.35);
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.faq-item[open] .faq-icon {
    background: rgba(229, 9, 20, 0.12);
    border-color: rgba(229, 9, 20, 0.25);
    color: #E50914;
}

.faq-plus  { display: block; }
.faq-minus { display: none; }
.faq-item[open] .faq-plus  { display: none; }
.faq-item[open] .faq-minus { display: block; }

.faq-answer {
    padding: 0 18px 20px 52px;
    animation: faqSlideIn 0.3s cubic-bezier(0.2, 1, 0.3, 1);
}

.faq-answer p {
    font-family: var(--font-subtitle);
    font-size: 0.8rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

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

@media (max-width: 480px) {
    .faq-title { font-size: 1.3rem; }
    .faq-q-text { font-size: 0.85rem; }
    .faq-answer { padding-left: 18px; }
}

/* ============================================
   ULTRA-PREMIUM SIDE MENU (70% WIDTH)
   ============================================ */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.7, 0, 0.3, 1);
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* ============================================
   PREMIUM SIDE NAVIGATION
   ============================================ */
.side-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 78vw;
    max-width: 340px;
    height: 100vh;
    background: rgba(8, 8, 10, 0.96);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 3000;
    transform: translateX(100%);
    transition: transform 0.55s cubic-bezier(0.76, 0, 0.24, 1), box-shadow 0.55s ease;
    display: flex;
    flex-direction: column;
    padding: calc(var(--safe-top) + 52px) 28px calc(var(--safe-bottom) + 36px) 28px;
    overflow: hidden;
}

.side-menu.active {
    transform: translateX(0);
    box-shadow: -30px 0 80px rgba(0, 0, 0, 0.7);
}

.menu-glow {
    position: absolute;
    top: -10%;
    right: -30%;
    width: 80%;
    height: 50%;
    background: radial-gradient(ellipse, rgba(229, 9, 20, 0.07) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ---- Header ---- */
.side-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 56px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.45s ease 0.05s, transform 0.45s ease 0.05s;
    position: relative;
    z-index: 1;
}

.side-menu.active .side-menu-header {
    opacity: 1;
    transform: translateY(0);
}

.menu-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-logo-icon {
    flex-shrink: 0;
    border-radius: 7px;
    display: block;
}

.menu-title {
    font-family: var(--font-subtitle);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 5px;
    color: rgba(255, 255, 255, 0.6);
}

.close-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    transition: color 0.3s ease, transform 0.4s cubic-bezier(0.7, 0, 0.3, 1);
}

.close-menu-btn svg {
    transition: transform 0.4s cubic-bezier(0.7, 0, 0.3, 1);
}

.close-menu-btn:hover {
    color: #FF4E5B;
}

.close-menu-btn:hover svg {
    transform: rotate(90deg);
}

/* ---- Menu Items (Card Style) ---- */
.side-menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
}

.menu-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    text-decoration: none;
    opacity: 0;
    transform: translateX(24px);
    transition:
        opacity 0.55s cubic-bezier(0.2, 1, 0.3, 1),
        transform 0.55s cubic-bezier(0.2, 1, 0.3, 1),
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.menu-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.menu-card:hover {
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(229, 9, 20, 0.22);
    box-shadow: 0 4px 28px rgba(229, 9, 20, 0.1), inset 0 1px 0 rgba(255,255,255,0.06);
}

.menu-card:hover::before {
    opacity: 1;
}

.menu-card:active {
    transform: scale(0.985) !important;
}

.menu-card-index {
    font-family: var(--font-subtitle);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    color: rgba(229, 9, 20, 0.7);
    min-width: 20px;
    transition: color 0.3s ease;
}

.menu-card:hover .menu-card-index {
    color: #FF4E5B;
}

.menu-card-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.menu-card-title {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: -0.3px;
    transition: color 0.3s ease;
}

.menu-card-desc {
    font-family: var(--font-body);
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.1px;
    transition: color 0.3s ease;
}

.menu-card:hover .menu-card-title {
    color: #ffffff;
}

.menu-card:hover .menu-card-desc {
    color: rgba(255, 255, 255, 0.5);
}

.menu-card-arrow {
    color: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    transition: color 0.3s ease, transform 0.35s cubic-bezier(0.7, 0, 0.3, 1);
}

.menu-card:hover .menu-card-arrow {
    color: rgba(229, 9, 20, 0.8);
    transform: translateX(4px);
}

/* Staggered entrance */
.side-menu.active .menu-item:nth-child(1) .menu-card { opacity: 1; transform: translateX(0); transition-delay: 0.08s; }
.side-menu.active .menu-item:nth-child(2) .menu-card { opacity: 1; transform: translateX(0); transition-delay: 0.16s; }
.side-menu.active .menu-item:nth-child(3) .menu-card { opacity: 1; transform: translateX(0); transition-delay: 0.24s; }
.side-menu.active .menu-item:nth-child(4) .menu-card { opacity: 1; transform: translateX(0); transition-delay: 0.32s; }

/* ---- WhatsApp Card ---- */
.menu-item-wa {
    margin-top: 6px;
}

.menu-card-wa {
    border-color: rgba(37, 211, 102, 0.12);
    background: rgba(37, 211, 102, 0.04);
    position: relative;
}

.menu-card-wa::before {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.1) 0%, transparent 60%);
}

.menu-card-wa:hover {
    background: rgba(37, 211, 102, 0.08);
    border-color: rgba(37, 211, 102, 0.3);
    box-shadow: 0 4px 28px rgba(37, 211, 102, 0.12), inset 0 1px 0 rgba(37, 211, 102, 0.08);
}

.menu-card-wa-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(37, 211, 102, 0.12);
    border: 1px solid rgba(37, 211, 102, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #25D366;
    flex-shrink: 0;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.menu-card-wa:hover .menu-card-wa-icon {
    background: rgba(37, 211, 102, 0.2);
    border-color: rgba(37, 211, 102, 0.35);
    transform: scale(1.06);
}

.menu-card-wa .menu-card-title {
    color: rgba(255, 255, 255, 0.95);
}

.menu-card-wa .menu-card-desc {
    color: rgba(37, 211, 102, 0.55);
}

.menu-card-wa:hover .menu-card-desc {
    color: rgba(37, 211, 102, 0.8);
}

.menu-card-wa .menu-card-arrow {
    color: rgba(37, 211, 102, 0.3);
}

.menu-card-wa:hover .menu-card-arrow {
    color: #25D366;
    transform: translateX(4px);
}

/* ---- Social Row ---- */
.menu-social-row {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 0;
    padding: 24px 0 20px;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.45s ease 0.3s, transform 0.45s ease 0.3s;
    position: relative;
    z-index: 1;
}

.side-menu.active .menu-social-row {
    opacity: 1;
    transform: translateY(0);
}

.menu-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    text-decoration: none;
    flex-shrink: 0;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
    opacity: 0.75;
}

.menu-social-btn[aria-label="Facebook"] { color: #1877F2; }
.menu-social-btn[aria-label="X"]        { color: #ffffff; }
.menu-social-btn[aria-label="TikTok"]   { color: #ffffff; }
.menu-social-btn[aria-label="LinkedIn"] { color: #0A66C2; }

.menu-social-btn:hover {
    transform: translateY(-3px) scale(1.15);
    opacity: 1;
}

/* ---- Footer ---- */
.side-menu-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.45s ease 0.35s, transform 0.45s ease 0.35s;
    position: relative;
    z-index: 1;
}

.side-menu.active .side-menu-footer {
    opacity: 1;
    transform: translateY(0);
}

.footer-links-quick {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.25);
}

.footer-links-quick .dot {
    color: rgba(255, 255, 255, 0.2);
}

.footer-links-quick a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-links-quick a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.menu-footer-copy {
    font-family: var(--font-body);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.18);
    margin: 0;
    letter-spacing: 0.2px;
}

/* ============================================
   PREMIUM FOOTER
   ============================================ */
.main-footer {
    background: #070709;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 48px;
    padding: 0 0 0;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 36px;
    padding: 44px 24px 36px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ---- Brand ---- */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo svg {
    border-radius: 8px;
    flex-shrink: 0;
}

.footer-logo-text {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.4px;
}

.footer-tagline {
    font-family: var(--font-subtitle);
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.38);
    line-height: 1.65;
    max-width: 260px;
    margin: 0;
}

.footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.footer-social:hover {
    background: rgba(229, 9, 20, 0.12);
    border-color: rgba(229, 9, 20, 0.25);
    color: #FF4E5B;
    transform: translateY(-2px);
}

/* ---- Nav Group ---- */
.footer-nav-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.footer-col-title {
    font-family: var(--font-subtitle);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 16px;
}

.footer-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin: 0;
    padding: 0;
}

.footer-nav-links li a {
    font-family: var(--font-subtitle);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-nav-links li a:hover {
    color: #ffffff;
}

/* ---- Contact ---- */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-subtitle);
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
}

.footer-contact-list li svg {
    color: rgba(229, 9, 20, 0.6);
    flex-shrink: 0;
}

/* ---- Payment Badges ---- */
.footer-payments {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
}

.footer-payments-label {
    font-family: var(--font-subtitle);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.25);
}

.footer-payment-badges {
    display: flex;
    gap: 8px;
}

.fp-logo-img {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    object-fit: cover;
    opacity: 0.88;
    transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fp-logo-img:hover {
    opacity: 1;
    transform: translateY(-2px) scale(1.08);
}

/* ---- Bottom Bar ---- */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 18px 24px;
}

.footer-copy {
    font-family: var(--font-subtitle);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.22);
}

.footer-legal-links {
    display: flex;
    gap: 18px;
}

.footer-legal-links a {
    font-family: var(--font-subtitle);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.25);
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-legal-links a:hover {
    color: rgba(255, 255, 255, 0.65);
}

/* Legacy selectors kept for safety */
.footer-links, .footer-info { list-style: none; }
.footer-links li, .footer-info li { margin-bottom: 14px; font-size: 14px; color: rgba(255,255,255,0.5); }

/* ============================================
   PREMIUM CHAT MODAL (SAMARA IA)
   ============================================ */
.chat-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    max-width: none;
    max-height: none;
    bottom: auto;
    right: auto;
    background: #0D0D14;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    z-index: 4000;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(30px) scale(0.98);
    transform-origin: bottom center;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-modal.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

/* Header */
.chat-header {
    background: linear-gradient(135deg, #4f46e5 0%, #d946ef 100%);
    padding: 20px 24px 24px 24px;
    flex-shrink: 0;
}

.chat-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.chat-avatar-header {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.chatbot-svg-mini {
    width: 48px;
    height: 48px;
    overflow: visible;
    animation: miniHeadBob 4s ease-in-out infinite;
}

@keyframes miniHeadBob {
    0%, 100% { transform: rotate(0deg) translateY(0); }
    25% { transform: rotate(-6deg) translateX(-1px); }
    50% { transform: rotate(0deg) translateY(-1px); }
    75% { transform: rotate(6deg) translateX(1px); }
}

.chat-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.chat-close-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.05);
}

.chat-title {
    font-family: var(--font-primary);
    color: white;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.chat-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.82rem;
    line-height: 1.4;
    font-weight: 400;
}

/* Body */
.chat-body {
    flex: 1;
    min-height: 200px;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: #0D0D14;
}

/* Scrollbar for chat body */
.chat-body::-webkit-scrollbar {
    width: 4px;
}
.chat-body::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
}

.chat-message {
    display: flex;
    flex-direction: column;
    max-width: 85%;
    animation: chatMsgIn 0.3s cubic-bezier(0.2, 0, 0, 1) both;
}

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

.chat-message.user {
    align-self: flex-end;
    align-items: flex-end;
}

.chat-message.bot {
    align-self: flex-start;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    max-width: 90%;
}

.chat-bot-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    flex-shrink: 0;
    margin-top: 4px;
}

.chat-bubble-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chat-name {
    font-size: 0.75rem;
    color: white;
    font-weight: 600;
    margin-left: 2px;
}

.chat-bubble {
    padding: 12px 16px;
    font-size: 0.9rem;
    line-height: 1.4;
    border-radius: 16px;
    color: white;
}

.chat-message.user .chat-bubble {
    background: #4f46e5;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.chat-message.bot .chat-bubble {
    background: #1C1C26;
    border-bottom-left-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-time {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 6px;
}

.chat-message.user .chat-time {
    margin-right: 2px;
}

/* Typing Indicator */
.chat-bubble.dots {
    display: flex;
    gap: 4px;
    padding: 12px 14px;
    align-items: center;
    height: 38px;
}

.chat-bubble.dots span {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.chat-bubble.dots span:nth-child(1) { animation-delay: -0.32s; }
.chat-bubble.dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Footer Input */
.chat-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #0D0D14;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-icon-btn {
    color: rgba(255, 255, 255, 0.5);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.chat-icon-btn:hover {
    color: white;
}

.chat-icon-btn svg {
    width: 20px;
    height: 20px;
}

.chat-input-field {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-size: 0.95rem;
    font-family: inherit;
}

.chat-input-field::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.chat-send-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #4f46e5;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background 0.3s ease;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.chat-send-btn:hover {
    transform: scale(1.08);
    background: #4338ca;
}

.chat-send-btn svg {
    width: 16px;
    height: 16px;
    transform: translateX(1px); /* optical centering */
}

/* Image Preview Area */
.chat-image-preview {
    padding: 10px 20px;
    background: #0D0D14;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    display: flex;
    align-items: flex-start;
}

.chat-image-preview img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-preview-remove {
    position: absolute;
    top: 4px;
    left: 76px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(229, 9, 20, 0.8);
    color: white;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: background 0.2s ease;
}

.chat-preview-remove:hover {
    background: #E50914;
}

/* Chat Images in Messages */
.chat-bubble img {
    max-width: 100%;
    border-radius: 10px;
    margin-top: 6px;
    display: block;
}

.chat-bubble.has-image {
    padding: 8px;
}

.chat-bubble.has-image p {
    padding: 4px 8px 0;
}

/* ============================================
   RESPONSIVO E DEPLOY SAFE (MEDIA QUERIES)
   ============================================ */

/* 1. Limites Ancorados para Desktop (Modo App) */
@media (min-width: 481px) {
    .top-bar {
        left: 50%;
        transform: translateX(-50%);
        max-width: 480px;
    }

    .menu-overlay {
        left: 50%;
        transform: translateX(-50%);
        max-width: 480px;
    }

    .side-menu {
        max-width: 336px; /* 70% de 480px */
        right: calc(50vw - 240px); /* Ancora de deslize em tela wide */
    }
}

/* 2. Dispositivos ecrã extra pequeno (Ex: iPhone SE, antigas gerações) */
@media (max-width: 480px) {
    .side-menu {
        width: 88vw;
        max-width: 100%;
        padding: calc(var(--safe-top) + 44px) 22px calc(var(--safe-bottom) + 28px) 22px;
    }
    .menu-card {
        padding: 16px 16px;
    }
    .menu-card-title {
        font-size: 0.92rem;
    }
    .hero-line-1 {
        font-size: 1.25rem;
    }
    .hero-line-2 {
        font-size: 0.75rem;
    }
    .premium-input {
        font-size: 0.85rem;
    }
    .login-form {
        padding: 0 16px;
    }
    /* Chat modal fullscreen — already set globally */
    .chat-modal {
        top: 0;
        left: 0;
        width: 100vw;
        height: 100dvh;
        border-radius: 0;
    }
    .chat-body {
        min-height: 150px;
    }
    .chat-header {
        padding: 16px 20px 20px 20px;
    }
    .chat-footer {
        padding: 14px 20px;
        gap: 16px;
        padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
        background: #0D0D14;
    }
    .chat-send-btn {
        width: 42px;
        height: 42px;
        flex-shrink: 0;
    }
    .chat-input-field {
        font-size: 1rem;
        padding: 8px 0;
    }
}

/* ════════════════════════════════════════════
   PROFILE BALANCE CARD (pbc-*)
════════════════════════════════════════════ */
.pbc-card {
    background: linear-gradient(145deg, #1A0A0A 0%, #0D0D14 60%, #140A1A 100%);
    border: 1px solid rgba(229,9,20,0.18);
    border-radius: 20px;
    padding: 22px 20px 18px;
    margin: 16px 16px 0;
    position: relative;
    overflow: hidden;
}
.pbc-card::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 130px; height: 130px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(229,9,20,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.pbc-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.pbc-balance-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.pbc-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: var(--font-mono);
}
.pbc-amount-row {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-top: 4px;
}
.pbc-amount {
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.02em;
    font-family: var(--font-mono);
    line-height: 1;
}
.pbc-currency {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    font-family: var(--font-mono);
}
.pbc-eye-btn {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}
.pbc-eye-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }
.pbc-divider {
    height: 1px;
    background: rgba(255,255,255,0.07);
    margin: 16px 0;
}
.pbc-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.pbc-user {
    display: flex;
    align-items: center;
    gap: 10px;
}
.pbc-avatar-wrap {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(229,9,20,0.35);
    overflow: hidden;
    flex-shrink: 0;
}
.pbc-avatar {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.pbc-user-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.pbc-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}
.pbc-phone {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.45);
    font-family: var(--font-mono);
    letter-spacing: 0.04em;
}
.pbc-payment-icon {
    background: #fff;
    border-radius: 10px;
    padding: 5px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}
.pbc-pay-img {
    width: 52px;
    height: 28px;
    object-fit: contain;
    display: block;
}

/* ── PROFILE ACTION ROW ── */
.profile-actions-row {
    display: flex;
    gap: 10px;
    padding: 14px 16px 0;
}
.profile-action-pill {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 999px;
    padding: 14px 8px;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.profile-action-pill:hover {
    background: rgba(229,9,20,0.1);
    border-color: rgba(229,9,20,0.3);
    transform: translateY(-1px);
}
.profile-action-pill:active { transform: scale(0.97); }
.profile-action-icon {
    width: 22px; height: 22px;
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
}
.profile-action-icon svg { width: 22px; height: 22px; }
.profile-action-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255,255,255,0.75);
    letter-spacing: 0.01em;
}

/* ════════════════════════════════════════════
   EXTRATO SCREEN (ext-*)
════════════════════════════════════════════ */
.ext-header {
    margin-bottom: 18px;
}
.ext-title {
    font-size: 1.6rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.02em;
    margin: 0 0 2px;
}
.ext-subtitle {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.ext-filter-row {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.ext-filter-row::-webkit-scrollbar { display: none; }
.ext-filter-chip {
    flex-shrink: 0;
    padding: 7px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.55);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.ext-filter-chip.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.ext-summary {
    display: flex;
    align-items: stretch;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 24px;
    gap: 0;
}
.ext-summary-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}
.ext-summary-sep {
    width: 1px;
    background: rgba(255,255,255,0.07);
    margin: 0 16px;
}
.ext-summary-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.ext-in .ext-summary-icon { background: rgba(0,200,83,0.12); color: var(--green); }
.ext-out .ext-summary-icon { background: rgba(229,9,20,0.1); color: var(--accent); }
.ext-summary-icon svg { width: 18px; height: 18px; }
.ext-summary-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ext-summary-label {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.4);
}
.ext-summary-value {
    font-size: 0.9rem;
    font-weight: 800;
    font-family: var(--font-mono);
}
.ext-in-val { color: var(--green); }
.ext-out-val { color: #FF6B6B; }
.ext-list { display: flex; flex-direction: column; gap: 0; }
.ext-date-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 14px 0 8px;
    font-family: var(--font-mono);
}
.ext-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.ext-item:last-child { border-bottom: none; }
.ext-item-icon {
    width: 40px; height: 40px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.ext-item-icon svg { width: 18px; height: 18px; }
.ext-icon-in  { background: rgba(0,200,83,0.1);  color: var(--green); }
.ext-icon-out { background: rgba(229,9,20,0.1);  color: #FF6B6B; }
.ext-icon-inv { background: rgba(99,102,241,0.1); color: #818CF8; }
.ext-icon-dep { background: rgba(245,158,11,0.1); color: #F59E0B; }
.ext-item-info { flex: 1; }
.ext-item-desc {
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}
.ext-item-sub {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.4);
    margin-top: 2px;
    font-family: var(--font-mono);
}
.ext-item-right { text-align: right; }
.ext-item-amount {
    font-size: 0.9rem;
    font-weight: 800;
    font-family: var(--font-mono);
    line-height: 1.3;
}
.ext-item-amount.positive { color: var(--green); }
.ext-item-amount.negative { color: #FF6B6B; }
.ext-item-time {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.35);
    font-family: var(--font-mono);
    margin-top: 2px;
}
.ext-empty {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255,255,255,0.3);
    font-size: 0.9rem;
}

/* ════════════════════════════════════════════
   REEMBOLSO SCREEN (rmb-*)
════════════════════════════════════════════ */
.rmb-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 24px;
}
.rmb-icon-wrap {
    width: 60px; height: 60px;
    border-radius: 18px;
    background: rgba(229,9,20,0.1);
    border: 1px solid rgba(229,9,20,0.2);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent);
    margin-bottom: 14px;
}
.rmb-icon-wrap svg { width: 28px; height: 28px; }
.rmb-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.02em;
    margin: 0 0 4px;
}
.rmb-subtitle {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--font-mono);
}
.rmb-policy-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 24px;
}
.rmb-policy-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.rmb-policy-icon {
    width: 20px; height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}
.rmb-green { color: var(--green); }
.rmb-orange { color: #F59E0B; }
.rmb-policy-title {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}
.rmb-policy-desc {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.5;
}
.rmb-policy-desc strong { color: rgba(255,255,255,0.75); }
.rmb-policy-divider {
    height: 1px;
    background: rgba(255,255,255,0.07);
    margin: 14px 0;
}
.rmb-form-section { margin-bottom: 20px; }
.rmb-form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
    font-family: var(--font-mono);
}
.rmb-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 0 14px;
    transition: border-color 0.2s;
}
.rmb-input-wrap:focus-within {
    border-color: var(--accent);
    background: rgba(229,9,20,0.05);
}
.rmb-input-icon {
    width: 18px; height: 18px;
    color: rgba(255,255,255,0.35);
    flex-shrink: 0;
}
.rmb-txid-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.95rem;
    font-family: var(--font-mono);
    letter-spacing: 0.04em;
    padding: 14px 0;
}
.rmb-txid-input::placeholder { color: rgba(255,255,255,0.25); }
.rmb-input-hint {
    display: block;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.3);
    margin-top: 8px;
    line-height: 1.4;
}
.rmb-submit-btn {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    background: var(--accent);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: opacity 0.2s, transform 0.15s;
    margin-bottom: 16px;
    letter-spacing: 0.01em;
}
.rmb-submit-btn:hover { opacity: 0.88; }
.rmb-submit-btn:active { transform: scale(0.98); }
.rmb-submit-btn:disabled { opacity: 0.55; pointer-events: none; }
.rmb-btn-spinner { display: flex; gap: 5px; align-items: center; }
.rmb-spinner-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.85);
    animation: rmbPulse 0.9s infinite ease-in-out;
}
.rmb-spinner-dot:nth-child(2) { animation-delay: 0.18s; }
.rmb-spinner-dot:nth-child(3) { animation-delay: 0.36s; }
@keyframes rmbPulse {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}
.rmb-disclaimer {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.3);
    text-align: center;
    line-height: 1.5;
}
.rmb-link { color: rgba(229,9,20,0.75); }

/* ── REEMBOLSO SUCCESS SCREEN ── */
.rmb-ok-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100dvh;
    padding: 50px 24px 40px;
    background: #0D0D14;
    overflow-y: auto;
}
.rmb-ok-anim {
    position: relative;
    width: 80px; height: 80px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 24px;
}
.rmb-ok-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(229,9,20,0.25);
    animation: rmbRingPulse 2s ease-out infinite;
}
.rmb-ok-ring2 { animation-delay: 1s; }
@keyframes rmbRingPulse {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.8); opacity: 0; }
}
.rmb-ok-icon-wrap {
    width: 70px; height: 70px;
    border-radius: 50%;
    background: rgba(229,9,20,0.12);
    border: 1.5px solid rgba(229,9,20,0.3);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent);
    position: relative;
    z-index: 1;
}
.rmb-ok-icon-wrap svg { width: 30px; height: 30px; }
.rmb-ok-badge {
    background: rgba(245,158,11,0.12);
    border: 1px solid rgba(245,158,11,0.3);
    color: #F59E0B;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 999px;
    padding: 4px 14px;
    margin-bottom: 14px;
    font-family: var(--font-mono);
}
.rmb-ok-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    margin: 0 0 10px;
    text-align: center;
    letter-spacing: -0.02em;
}
.rmb-ok-subtitle {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.45);
    text-align: center;
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 280px;
}
.rmb-ok-info-card {
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 4px 16px;
    margin-bottom: 24px;
}
.rmb-ok-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.rmb-ok-row:last-child { border-bottom: none; }
.rmb-ok-row-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    font-family: var(--font-mono);
}
.rmb-ok-row-val {
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-mono);
}
.rmb-ok-processing { color: #F59E0B; }
.rmb-ok-steps {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 24px;
}
.rmb-ok-step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.35);
    padding: 6px 0;
    position: relative;
}
.rmb-ok-step-done { color: var(--green); }
.rmb-ok-step-active { color: #fff; font-weight: 600; }
.rmb-ok-step-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.15);
    flex-shrink: 0;
}
.rmb-ok-step-dot-done { background: var(--green); border-color: var(--green); }
.rmb-ok-step-dot-active {
    background: #fff;
    border-color: #fff;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.1);
}
.rmb-ok-note {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
    text-align: center;
    line-height: 1.5;
    margin-bottom: 28px;
    max-width: 270px;
}
.rmb-ok-home-btn {
    width: 100%;
    padding: 15px;
    border-radius: 14px;
    background: rgba(229,9,20,0.12);
    border: 1px solid rgba(229,9,20,0.25);
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    letter-spacing: 0.01em;
}
.rmb-ok-home-btn:hover { background: rgba(229,9,20,0.2); }

/* ============================================
   NOTIFICATIONS SCREEN DYNAMIC ITEMS
   ============================================ */
.notif-list {
    padding: 0 16px;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notif-item {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: background 0.2s;
}

.notif-item:active {
    background: rgba(255,255,255,0.08);
}

.notif-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notif-icon-wrap svg {
    width: 20px;
    height: 20px;
    color: #FFF;
}

.notif-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.notif-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #FFF;
}

.notif-desc {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.4;
}

.notif-time {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.4);
    font-family: var(--font-mono);
    margin-top: 4px;
}

.notif-empty {
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.9rem;
    padding: 40px 0;
}

/* Tab Content Loader (Visible on Light/White backgrounds) */
.tab-content-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 80px 20px;
    width: 100%;
    min-height: 200px;
}

.tab-content-loader .rmb-spinner-dot {
    background: var(--color-accent-red, #E50914);
    width: 10px;
    height: 10px;
}
