/* Reset e configurações gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #E5DDD5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-opacity='0.03'%3E%3Cpolygon fill='%23000' points='50 0 60 40 100 50 60 60 50 100 40 60 0 50 40 40'/%3E%3C/g%3E%3C/svg%3E");
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

/* Header */
.header {
    background: #075E54;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.menu-btn, .download-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.menu-btn:hover, .download-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

/* Language Selector */
.lang-select {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-select select {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.95);
    color: #075E54;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-select select:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: white;
}

.lang-select select:focus {
    outline: none;
    border-color: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* Main Content */
.main-content {
    padding: 2rem;
    background-image: url('https://i.pinimg.com/736x/8c/98/99/8c98994518b575bfd8c949e91d20548b.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(1px);
    z-index: 1;
}

.main-content > * {
    position: relative;
    z-index: 2;
}

.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.hero-text h2 {
    font-size: 2.5rem;
    color: #075E54;
    margin-bottom: 1rem;
    font-weight: bold;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 80px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: #25D366;
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Phone Mockup */
.phone-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone {
    width: 280px;
    height: 580px;
    background: #000;
    border-radius: 25px;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

.phone::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #333;
    border-radius: 2px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #ECE5DD;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill-opacity='0.02'%3E%3Cpolygon fill='%23000' points='30 0 36 24 60 30 36 36 30 60 24 36 0 30 24 24'/%3E%3C/g%3E%3C/svg%3E");
    border-radius: 18px;
    overflow: hidden;
    position: relative;
}

.status-bar {
    background: #075E54;
    color: white;
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.signal-icons {
    display: flex;
    gap: 5px;
}

.whatsapp-header {
    background: #075E54;
}

.app-header {
    background: #075E54;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-header h3 {
    font-size: 1.2rem;
    font-weight: bold;
}

.header-icons {
    display: flex;
    gap: 15px;
}

.header-icons i {
    cursor: pointer;
    font-size: 1.1rem;
}

/* Chat List */
.chat-list {
    background: #ECE5DD;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill-opacity='0.02'%3E%3Cpolygon fill='%23000' points='30 0 36 24 60 30 36 36 30 60 24 36 0 30 24 24'/%3E%3C/g%3E%3C/svg%3E");
    height: calc(100% - 80px);
    overflow-y: auto;
}

.chat-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    background: rgba(255, 255, 255, 0.8);
    margin: 0 8px;
    border-radius: 8px;
    margin-bottom: 2px;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366, #128C7E);
    margin-right: 15px;
    flex-shrink: 0;
}

.chat-info {
    flex: 1;
    min-width: 0;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.contact-name {
    font-weight: 600;
    color: #000;
    font-size: 0.9rem;
}

.time {
    font-size: 0.75rem;
    color: #999;
}

.last-message {
    color: #666;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
    filter: blur(1.5px);
    transition: filter 0.3s ease;
}

.last-message:hover {
    filter: blur(0px);
}

.last-message i {
    color: #34B7F1;
}

.last-message i.read {
    color: #25D366;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 3rem 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Phone Input Section */
.phone-input-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    max-width: 600px;
    border: 2px solid #25D366;
}

.phone-input-section h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #075E54;
    font-size: 1.3rem;
    font-weight: 600;
}

.input-container {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #ddd;
    border-radius: 12px;
    overflow: visible;
    transition: all 0.3s ease;
    position: relative;
    height: 56px;
    gap: 0;
}

.input-container:focus-within {
    border-color: #25D366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.2);
}

/* Country Prefix - Now direct child of input-container */

.country-prefix {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: white;
    border: none;
    padding: 0 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-right: 1px solid rgba(255,255,255,0.2);
    min-width: 130px;
    justify-content: space-between;
    font-weight: 600;
    height: 56px;
    font-size: 0.9rem;
    border-radius: 0;
    flex-shrink: 0;
}

.country-prefix:hover {
    background: #128C7E;
}

.country-prefix .flag {
    font-size: 1.2rem;
}

.country-prefix .code {
    font-size: 0.9rem;
    font-weight: 600;
}

.country-prefix i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    margin-left: auto;
}

.country-prefix.active i {
    transform: rotate(180deg);
}

.country-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 300px;
    background: white;
    border: 2px solid #25D366;
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.country-dropdown.show {
    display: block;
    animation: dropdownShow 0.3s ease;
}

@keyframes dropdownShow {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.country-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.country-option:hover {
    background: rgba(37, 211, 102, 0.1);
}

.country-option:last-child {
    border-bottom: none;
}

.country-option .flag {
    font-size: 1.3rem;
    width: 28px;
    text-align: center;
}

.country-option .name {
    flex: 1;
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}

.country-option .code {
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
    min-width: 45px;
    text-align: right;
}

/* Phone Input */
.phone-input {
    flex: 1;
    border: none;
    padding: 0 16px;
    font-size: 1rem;
    outline: none;
    background: white;
    height: 56px;
    line-height: 1;
    border-radius: 0;
    color: #333;
}

.phone-input::placeholder {
    color: #aaa;
}

/* Search Button */
.search-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: white;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    border-left: 1px solid rgba(255,255,255,0.2);
    height: 56px;
    font-size: 0.9rem;
    border-radius: 0;
    min-width: 100px;
    justify-content: center;
    flex-shrink: 0;
}

.search-btn:hover {
    background: #128C7E;
    transform: translateY(-1px);
}

.search-btn i {
    font-size: 1rem;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.2rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

.action-btn:focus {
    outline: 2px solid #25D366;
    outline-offset: 2px;
}

.action-btn i {
    font-size: 1.3rem;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.action-btn.primary {
    background: linear-gradient(135deg, #25D366, #128C7E);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.action-btn.secondary {
    background: linear-gradient(135deg, #075E54, #128C7E);
    box-shadow: 0 5px 15px rgba(7, 94, 84, 0.3);
}

.action-btn.secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(7, 94, 84, 0.4);
}

/* Features Section */
.features-section {
    margin: 4rem 0;
    text-align: center;
}

.features-section h3 {
    font-size: 2rem;
    color: #075E54;
    margin-bottom: 2rem;
    font-weight: bold;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Efeito especial para o card de rastreamento ao vivo */
.feature-card.live-tracking {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #25D366;
    position: relative;
    overflow: hidden;
}

.feature-card.live-tracking::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(37, 211, 102, 0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
    pointer-events: none;
    z-index: 1;
}

.feature-card.live-tracking > * {
    position: relative;
    z-index: 2;
}

.feature-card.live-tracking .fas {
    animation: pulse 2s infinite;
    color: #25D366;
}

.feature-card.live-tracking:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.3);
}

/* Badge NOVO */
.new-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ff4757, #ff3742);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
    z-index: 3;
    animation: bounce 2s infinite;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

@keyframes shimmer {
    0% { transform: rotate(0deg) translateX(-100%); }
    100% { transform: rotate(0deg) translateX(100%); }
}

/* Media Queries - Mobile Responsiveness */
@media (max-width: 768px) {
    .phone-input-section {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .phone-input-section h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .input-container {
        flex-direction: column;
        border-radius: 12px;
        height: auto;
        align-items: stretch;
        gap: 0;
        overflow: visible;
    }
    
    .country-prefix {
        width: 100%;
        justify-content: space-between;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.2);
        border-radius: 12px 12px 0 0;
        height: 52px;
        padding: 0 16px;
        min-width: unset;
        flex-shrink: unset;
    }
    
    .phone-input {
        padding: 0 16px;
        border-radius: 0;
        height: 52px;
        min-height: 52px;
    }
    
    .search-btn {
        width: 100%;
        justify-content: center;
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.2);
        border-radius: 0 0 12px 12px;
        padding: 0 15px;
        height: 52px;
        flex-shrink: unset;
    }
    
    .country-dropdown {
        position: fixed;
        top: 50%;
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 350px;
        border-radius: 12px;
        max-height: 400px;
        border: 2px solid #25D366;
    }
    
    .country-option {
        padding: 15px;
    }
    
    .country-option .flag {
        font-size: 1.4rem;
        width: 30px;
    }
    
    .country-option .name {
        font-size: 1rem;
    }
    
    .country-option .code {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .phone-input-section {
        margin: 0.5rem;
        padding: 1rem;
    }
    
    .phone-input-section h3 {
        font-size: 1rem;
    }
    
    .country-prefix {
        padding: 0 12px;
        font-size: 0.9rem;
        height: 48px;
    }
    
    .country-prefix .flag {
        font-size: 1rem;
    }
    
    .phone-input {
        padding: 0 12px;
        font-size: 0.9rem;
        height: 48px;
    }
    
    .search-btn {
        padding: 0 15px;
        font-size: 0.9rem;
        height: 48px;
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.feature-card i {
    font-size: 2.5rem;
    color: #25D366;
    margin-bottom: 1rem;
}

.feature-card h4 {
    font-size: 1.3rem;
    color: #075E54;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: #075E54;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    padding: 0 2rem;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #25D366;
}

.disclaimer {
    margin: 2rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.disclaimer p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #E0E0E0;
}

.copyright {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.copyright p {
    font-size: 0.9rem;
    color: #B0B0B0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        padding: 0 1rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .hero-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-text h2 {
        font-size: 2rem;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 1rem;
    }
    
    .stat-item {
        min-width: 70px;
        padding: 0.8rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .phone {
        width: 250px;
        height: 520px;
    }
    
    .action-buttons {
        margin: 2rem 0;
    }
    
    .action-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-content {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero-text h2 {
        font-size: 1.5rem;
    }
    
    .phone {
        width: 220px;
        height: 460px;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section,
.action-buttons,
.features-section {
    animation: fadeInUp 0.8s ease-out;
}

/* WhatsApp Colors Reference */
:root {
    --whatsapp-primary: #075E54;
    --whatsapp-secondary: #128C7E;
    --whatsapp-accent: #25D366;
    --whatsapp-light: #DCF8C6;
    --whatsapp-background: #EDEDED;
    --whatsapp-blue: #34B7F1;
}
