* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #000000;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    padding-bottom: 90px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    max-width: 500px;
}

.header {
    padding: 20px 0;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 0 0 25px 25px;
    margin-bottom: 30px;
    animation: slideDown 0.8s ease-out;
    will-change: transform;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: #333333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    animation: pulse 2s infinite;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.logo-icon:active {
    transform: scale(0.95);
}

.logo-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    background: -webkit-linear-gradient(180deg, #ffffff, #cccccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Melhorias para Plano Mensal - Mobile First */
.monthly-plan-section {
    margin-bottom: 30px;
    animation: slideUp 0.8s ease-out 0.2s both;
}

.monthly-plan-card {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border: 2px solid #ffd700;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transform: translateZ(0);
    will-change: transform, box-shadow;
    touch-action: manipulation;
}

.monthly-plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: left;
}

.monthly-plan-card:hover::before,
.monthly-plan-card:active::before {
    left: 100%;
}

.monthly-plan-card:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.monthly-plan-card.selected {
    border-color: #ffd700;
    background: linear-gradient(135deg, #2d2d2d, #3d3d3d);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.4);
}

.monthly-plan-card.selected::after {
    content: '✓';
    position: absolute;
    top: 15px;
    right: 20px;
    color: #ffd700;
    font-size: 24px;
    font-weight: bold;
    animation: checkmark 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.monthly-plan-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.monthly-plan-logo {
    width: 80px;
    height: 80px;
    background: #333333;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.monthly-plan-card:active .monthly-plan-logo {
    transform: scale(0.95);
}

/* Serviços - Otimizado para Touch */
.service-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    touch-action: manipulation;
    will-change: transform, box-shadow;
    transform: translateZ(0);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
    will-change: left;
}

.service-card:active::before {
    left: 100%;
}

.service-card:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.service-card.selected {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.service-card.selected::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 15px;
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    animation: checkmark 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Calendário Melhorado para Mobile */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: 20px;
}

.calendar-day {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    color: #ffffff;
    touch-action: manipulation;
    will-change: transform, background-color;
    transform: translateZ(0);
    min-height: 48px; /* Melhor área de toque */
}

.calendar-day:active {
    transform: scale(0.95);
}

.calendar-day.selected {
    background: linear-gradient(135deg, #ffffff, #cccccc);
    color: #000000;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.calendar-day.today {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
}

.calendar-day.disabled {
    background: rgba(255, 255, 255, 0.05);
    color: #555;
    border-color: rgba(255, 255, 255, 0.1);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Horários - Grid Responsivo */
.time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
    padding: 5px;
    scrollbar-width: thin;
    scrollbar-color: #ffffff20 transparent;
}

.time-grid::-webkit-scrollbar {
    width: 4px;
}

.time-grid::-webkit-scrollbar-track {
    background: transparent;
}

.time-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.time-slot {
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    text-align: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #ffffff;
    touch-action: manipulation;
    will-change: transform, background-color;
    transform: translateZ(0);
    min-height: 44px;
}

.time-slot:active {
    transform: scale(0.95);
}

.time-slot.selected {
    background: linear-gradient(135deg, #ffffff, #cccccc);
    color: #000000;
    transform: scale(1.02);
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
}

.time-slot.disabled {
    background: rgba(255, 255, 255, 0.05);
    color: #555;
    border-color: rgba(255, 255, 255, 0.1);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Botões Otimizados para Mobile */
.fixed-button {
    width: calc(100% - 40px);
    max-width: 460px;
    padding: 18px;
    background: linear-gradient(45deg, #666666, #999999);
    border: none;
    border-radius: 15px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: not-allowed;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    opacity: 0.6;
    z-index: 100;
    display: none;
    touch-action: manipulation;
    will-change: transform, opacity;
    min-height: 48px;
}

.fixed-button.active {
    background: linear-gradient(180deg, #ffffff, #cccccc);
    color: #000000;
    cursor: pointer;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.fixed-button.active:active {
    transform: translateX(-50%) translateY(2px) scale(0.98);
}

.fixed-bottom-buttons {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 460px;
    display: flex;
    gap: 10px;
    z-index: 100;
    background-color: #000000;
    padding-top: 10px;
}

.btn {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    touch-action: manipulation;
    will-change: transform;
    min-height: 48px;
}

.btn:active {
    transform: translateY(2px) scale(0.98);
}

.btn-primary {
    background: linear-gradient(180deg, #ffffff, #cccccc);
    color: #000000;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Formulários Mobile-First */
.form-input {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px; /* Evita zoom no iOS */
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    touch-action: manipulation;
    will-change: border-color, box-shadow;
}

.form-input:focus {
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

/* Modais Otimizados */
.success-modal,
.error-modal,
.pix-modal,
.closed-day-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
    padding: 20px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.success-content,
.error-content,
.pix-content,
.closed-day-content {
    background: #1a1a1a;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    max-width: 350px;
    width: 100%;
    animation: scaleIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Animações Melhoradas */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes checkmark {
    from {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Melhor UX para Loading */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsividade Melhorada */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .monthly-plan-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .monthly-plan-logo {
        width: 60px;
        height: 60px;
    }
    
    .service-card {
        padding: 12px;
    }
    
    .calendar-day {
        font-size: 11px;
        min-height: 44px;
    }
    
    .time-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }
    
    .time-slot {
        padding: 10px 6px;
        font-size: 13px;
        min-height: 40px;
    }
    
    .fixed-bottom-buttons {
        width: calc(100% - 30px);
        gap: 8px;
    }
    
    .fixed-button {
        width: calc(100% - 30px);
        padding: 16px;
    }
    
    .btn {
        padding: 14px;
        font-size: 15px;
    }
}

/* Modo Landscape para Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .header {
        padding: 10px 0;
        margin-bottom: 20px;
    }
    
    .monthly-plan-card,
    .service-card {
        margin-bottom: 10px;
        padding: 10px;
    }
    
    .fixed-bottom-buttons {
        bottom: 10px;
    }
    
    .fixed-button {
        bottom: 10px;
        padding: 12px;
    }
}

/* Acessibilidade */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .service-card,
    .monthly-plan-card,
    .calendar-day,
    .time-slot {
        border-width: 2px;
    }
}

/* Focus para navegação por teclado */
.service-card:focus,
.monthly-plan-card:focus,
.calendar-day:focus,
.time-slot:focus,
.btn:focus,
.fixed-button:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* Performance: GPU Acceleration */
.service-card,
.monthly-plan-card,
.calendar-day,
.time-slot,
.btn,
.fixed-button {
    will-change: transform;
    transform: translateZ(0);
}

/* Smooth scroll para elementos com overflow */
.time-grid,
.services-section {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}