/* ===== DISABLE ZOOM & GESTURES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* Desabilitar gestos de zoom */
    touch-action: manipulation;
}

/* Prevenir zoom em duplo toque */
*:not(input):not(textarea):not(select) {
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

/* Prevenir gestos de pinça */
html, body {
    overscroll-behavior: none;
    -webkit-overflow-scrolling: touch;
}

/* Prevent zoom on input focus */
input, textarea, select {
    font-size: 16px !important;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

button {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

html {
    font-size: 16px;
    min-height: 100vh;
    min-height: 100dvh;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    scroll-behavior: smooth;
    touch-action: manipulation;
    /* Desabilitar zoom */
    -webkit-user-scalable: no;
    -moz-user-scalable: no;
    -ms-user-scalable: no;
    user-scalable: no;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f5f5;
    color: #333;
    min-height: 100vh;
    min-height: 100dvh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    /* Desabilitar gestos de zoom */
    touch-action: manipulation;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* ===== HEADER MAIS COMPACTO ===== */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: white;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: 56px;
}

.header-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f5f5f5;
    transform: scale(1.05);
}

.header-center {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-logo {
    height: 28px;
    width: auto;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notifications-btn {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ff4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== LOCATION BAR MAIS COMPACTO ===== */
.location-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    background: white;
    border-bottom: 1px solid #e0e0e0;
}

.location-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.8rem;
    font-weight: 500;
}

.location-actions svg {
    color: #666;
}

/* ===== MAIN CONTENT ULTRA COMPACTO ===== */
.main-content {
    flex: 1;
    padding: 0.5rem;
    background: #f5f5f5;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: calc(100vh - 100px);
    min-height: calc(100dvh - 100px);
    padding-top: 0.25rem;
    padding-bottom: 0.5rem;
}

/* ===== FORM STYLES ===== */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group input,
.form-group select {
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 0.875rem;
    color: #111827;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #FF5555;
    box-shadow: 0 0 0 3px rgba(255, 85, 85, 0.1);
}

.form-group input.error,
.form-group select.error {
    border-color: #ef4444;
}

.error-message {
    font-size: 0.75rem;
    color: #ef4444;
    display: none;
    margin-top: 0.25rem;
}

.error-message.show {
    display: block;
}

/* ===== BUTTON STYLES ===== */
.continue-btn, .back-btn, .confirm-btn {
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.continue-btn {
    background: #FF5555;
    color: white;
    width: 100%;
}

.continue-btn:hover {
    background: #ef4444;
}

.continue-btn:disabled {
    background: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
}

.back-btn {
    background: #f3f4f6;
    color: #6b7280;
    flex: 1;
}

.back-btn:hover {
    background: #e5e7eb;
}

.confirm-btn {
    width: 100%;
    background: #FF5555;
    color: white;
}

.confirm-btn:hover {
    background: #ef4444;
}

.generate-pix {
    background: #10b981;
}

.generate-pix:hover {
    background: #059669;
}

/* ===== STEP NAVIGATION ===== */
.step-navigation {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* ===== ANIMATIONS ===== */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

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

@keyframes waveAnimation {
    0% { height: 20%; }
    50% { height: 80%; }
    100% { height: 20%; }
}

@keyframes waveFlow {
    0%, 100% { height: 12px; opacity: 0.7; }
    50% { height: 32px; opacity: 1; }
}

@keyframes highlightPulse {
    0%, 100% { 
        background: #FF5555;
        transform: scale(1);
        box-shadow: 0 0 20px rgba(255, 85, 85, 0.6);
    }
    50% { 
        background: #ff3333;
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(255, 85, 85, 0.8);
    }
}

/* ===== LOADING ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-overlay .loading-spinner {
    color: white;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.loading-overlay p {
    color: white;
    font-size: 1rem;
}

/* ===== PROFILE CARD ULTRA COMPACTO ===== */
.profile-card {
    background: #28343c;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    margin: 0 auto;
    max-width: 380px;
    position: relative;
    width: 100%;
}

.profile-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: white;
    color: #000;
    padding: 0.2rem 0.4rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ===== PHOTO GALLERY COMPACTO ===== */
.photo-gallery {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.main-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease-out;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.photo-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border-radius: 50%;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
    z-index: 10;
}

.photo-nav:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.photo-nav.prev {
    left: 8px;
}

.photo-nav.next {
    right: 8px;
}

.photo-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.2s ease;
    cursor: pointer;
}

.dot.active {
    background: white;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* ===== PROFILE CONTENT COMPACTO ===== */
.profile-content {
    padding: 10px;
    color: white;
}

.profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.profile-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.online-status {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    color: #4ade80;
    font-weight: 500;
}

.status-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #4ade80;
    animation: pulse 2s infinite;
}

/* ===== AUDIO PLAYER COMPACTO ===== */
.audio-section {
    margin-bottom: 8px;
}

.audio-label {
    font-size: 0.7rem;
    color: #9ca3af;
    margin-bottom: 4px;
    display: block;
    font-weight: 500;
}

.audio-player {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 85, 85, 0.1);
    border: 1px solid rgba(255, 85, 85, 0.2);
    padding: 6px 10px;
    border-radius: 16px;
    margin-bottom: 4px;
    backdrop-filter: blur(10px);
}

.play-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: #FF5555;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.play-btn:hover {
    background: #ef4444;
    transform: scale(1.05);
}

.audio-waves {
    display: flex;
    align-items: center;
    gap: 1px;
    flex: 1;
    height: 16px;
    justify-content: space-between;
    min-width: 0;
    padding: 0 4px;
}

.wave {
    width: 2px;
    background: rgba(255, 85, 85, 0.3);
    border-radius: 1px;
    transition: all 0.2s ease;
    height: 3px;
    flex: 1;
    max-width: 2px;
    min-height: 2px;
}

.audio-time {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.9);
    min-width: 30px;
    font-weight: 600;
    flex-shrink: 0;
}

/* ===== SEÇÕES COMPACTAS ===== */
.profile-tagline {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-bottom: 8px;
    font-style: italic;
    font-weight: 500;
}

.values-section {
    margin-bottom: 8px;
    position: relative;
}

.values-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #9ca3af;
    margin-bottom: 4px;
}

.main-value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    padding: 2px 0;
    transition: all 0.2s ease;
}

.main-value:hover {
    color: #FF5555;
}

.dropdown-arrow {
    width: 14px;
    height: 14px;
    margin-left: 6px;
    transition: transform 0.2s ease;
}

.profile-stats {
    margin-bottom: 8px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    color: white;
    font-weight: 600;
    margin-bottom: 4px;
}

.stat-item svg {
    color: #fbbf24;
    width: 14px;
    height: 14px;
}

.stat-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.stat-row .stat-item {
    margin-bottom: 0;
}

.profile-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    color: #9ca3af;
    margin-bottom: 8px;
}

.profile-location svg {
    width: 14px;
    height: 14px;
}

.profile-description {
    margin-bottom: 10px;
    position: relative;
}

.profile-description p {
    font-size: 0.8rem;
    line-height: 1.4;
    color: #d1d5db;
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease;
}

.profile-description p.collapsed {
    max-height: 3.6em; /* 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.profile-description p.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 1.2em;
    background: linear-gradient(transparent, #28343c);
    pointer-events: none;
}

.read-more-btn {
    background: none;
    border: none;
    color: #FF5555;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
    padding: 2px 0;
    transition: all 0.2s ease;
    display: none;
}

.read-more-btn.show {
    display: inline-block;
}

.read-more-btn:hover {
    color: #ef4444;
    text-decoration: underline;
}

/* ===== CTA BUTTON COMPACTO ===== */
.cta-button {
    width: 100%;
    background: #FF5555;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    background: #ef4444;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 85, 85, 0.3);
}

.cta-button.highlight {
    animation: highlightPulse 2s ease-in-out 3;
    box-shadow: 0 0 20px rgba(255, 85, 85, 0.6);
}

.cta-button svg {
    width: 20px;
    height: 20px;
}

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