/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #c8a45c;
    --primary-dark: #a3833a;
    --primary-light: #e6c97a;
    --accent: #d4a853;
    --bg-dark: #0d0d0d;
    --bg-card: #1a1410;
    --bg-surface: #231c14;
    --border: #2e2418;
    --text-primary: #f5f0e8;
    --text-secondary: #a89a85;
    --text-muted: #6b5d4d;
    --danger: #c0392b;
    --success: #27ae60;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    margin: 0;
}

/* Container */
.profile-container {
    width: 100%;
    max-width: 480px;
    background: #111111;
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
    border: none;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Banner */
.banner {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
}

.banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(transparent, #111111);
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Profile Header */
.profile-header {
    padding: 0 24px 24px;
    margin-top: -40px;
    position: relative;
    z-index: 2;
}

.profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 4px solid #111111;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}

.verified {
    color: var(--primary);
    font-size: 1rem;
}

.profile-tagline {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 400;
    margin-bottom: 12px;
}

.profile-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Stats */
.profile-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Social Buttons */
.social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.social-btn.whatsapp {
    color: #25d366;
}

.social-btn.whatsapp:hover {
    background: rgba(37, 211, 102, 0.15);
    border-color: #25d366;
    transform: translateY(-2px);
}

.social-btn.instagram {
    color: #e1306c;
}

.social-btn.instagram:hover {
    background: rgba(225, 48, 108, 0.15);
    border-color: #e1306c;
    transform: translateY(-2px);
}

/* Tabs */
.tabs {
    display: flex;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.tab {
    flex: 1;
    padding: 14px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
}

.tab i {
    font-size: 1.1rem;
}

.tab.active {
    color: var(--primary);
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 2px;
}

.tab:hover {
    color: var(--primary-light);
}

/* Tab Content */
.tab-content {
    display: none;
    padding: 20px;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Serviços */
.servicos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.servico-card {
    background: var(--bg-surface);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.servico-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(200, 164, 92, 0.1);
}

.servico-icon {
    display: none;
}

.servico-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.servico-card p {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 14px;
}

.servico-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.servico-preco {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.servico-tempo {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Botão Agendar por Serviço */
.btn-agendar-servico {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border: none;
    border-radius: 10px;
    color: #0d0d0d;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-agendar-servico:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 164, 92, 0.3);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.btn-agendar-servico:active {
    transform: translateY(0);
}

/* Portfólio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.portfolio-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Stories Viewer */
.stories-overlay {
    position: fixed;
    inset: 0;
    background: #000000;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    flex-direction: column;
}

.stories-overlay.active {
    display: flex;
}

.stories-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    z-index: 10;
}

.stories-progress {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
}

.progress-bar {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar .fill {
    height: 100%;
    width: 0%;
    background: #ffffff;
    border-radius: 3px;
    transition: width 0.1s linear;
}

.progress-bar.completed .fill {
    width: 100%;
}

.progress-bar.active .fill {
    width: 0%;
}

.stories-close {
    position: absolute;
    top: 40px;
    right: 16px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 11;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stories-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.stories-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background 0.3s ease;
    z-index: 10;
}

.stories-nav:hover {
    background: rgba(255, 255, 255, 0.4);
}

.stories-nav.prev {
    left: 16px;
}

.stories-nav.next {
    right: 16px;
}

/* Detalhes */
.detalhes-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detalhe-card {
    background: var(--bg-surface);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border);
}

.detalhe-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.detalhe-card h3 i {
    color: var(--primary);
}

/* Horários */
.horarios {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.horario-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: var(--bg-card);
    border-radius: 10px;
    transition: background 0.3s ease;
    border: 1px solid var(--border);
}

.horario-item:hover {
    background: var(--bg-surface);
}

.dia {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.hora {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary);
}

.horario-item.fechado .hora {
    color: var(--danger);
}

/* Contato */
.contato-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contato-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-card);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.contato-item:hover {
    transform: translateX(4px);
}

.contato-item.whatsapp:hover {
    background: rgba(37, 211, 102, 0.1);
    border-color: #25d366;
}

.contato-item.instagram:hover {
    background: rgba(225, 48, 108, 0.1);
    border-color: #e1306c;
}

.contato-item.telefone:hover {
    background: rgba(200, 164, 92, 0.1);
    border-color: var(--primary);
}

.contato-item i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.contato-item.whatsapp i {
    color: #25d366;
}

.contato-item.instagram i {
    color: #e1306c;
}

.contato-item.telefone i {
    color: var(--primary);
}

.contato-item span {
    font-size: 0.9rem;
}

/* Localização */
.endereco {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

.mapa {
    border-radius: 12px;
    overflow: hidden;
}

/* ==================== MODAL DE AGENDAMENTO ==================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal {
    background: #151515;
    border-radius: 20px;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
}

.modal-servico {
    background: rgba(200, 164, 92, 0.1);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 20px;
    text-align: center;
}

/* Steps */
.step {
    display: none;
}

.step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.step h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

/* Form */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

/* Botões do Modal */
.btn-next, .btn-back, .btn-fechar {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.btn-next {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #0d0d0d;
}

.btn-next:hover {
    box-shadow: 0 6px 20px rgba(200, 164, 92, 0.3);
    transform: translateY(-1px);
}

.btn-back {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-back:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-fechar {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #0d0d0d;
}

.btn-fechar:hover {
    box-shadow: 0 6px 20px rgba(200, 164, 92, 0.3);
}

/* Calendário */
.calendario {
    margin-bottom: 10px;
}

.calendario-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.calendario-header h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.calendario-nav {
    background: none;
    border: 1px solid var(--border);
    color: var(--primary);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.calendario-nav:hover {
    background: var(--primary);
    color: #0d0d0d;
}

.calendario-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.calendario-weekdays span {
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
    padding: 6px 0;
}

.calendario-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendario-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background: none;
    color: var(--text-primary);
}

.calendario-day:hover:not(.disabled):not(.empty) {
    background: rgba(200, 164, 92, 0.2);
    color: var(--primary);
}

.calendario-day.selected {
    background: var(--primary);
    color: #0d0d0d;
    font-weight: 600;
}

.calendario-day.disabled {
    color: var(--text-muted);
    opacity: 0.3;
    cursor: not-allowed;
}

.calendario-day.empty {
    cursor: default;
}

.calendario-day.today {
    border: 1px solid var(--primary);
}

/* Horários Grid */
.horarios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

.horario-btn {
    padding: 12px 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.horario-btn:hover {
    border-color: var(--primary);
    background: rgba(200, 164, 92, 0.1);
}

.horario-btn.selected {
    background: var(--primary);
    color: #0d0d0d;
    border-color: var(--primary);
    font-weight: 600;
}

.horario-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    text-decoration: line-through;
}

.data-selecionada {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    padding: 10px;
    background: var(--bg-card);
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border);
}

/* Confirmação */
.confirmacao {
    text-align: center;
    padding: 20px 0;
}

.confirmacao-icon {
    font-size: 3rem;
    color: var(--success);
    margin-bottom: 16px;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.confirmacao h3 {
    color: var(--text-primary);
    margin-bottom: 20px;
    text-align: center;
}

.resumo {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 16px;
    text-align: left;
    border: 1px solid var(--border);
    margin-bottom: 10px;
}

.resumo-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}

.resumo-item:last-child {
    border-bottom: none;
}

.resumo-item .label {
    color: var(--text-muted);
}

.resumo-item .valor {
    color: var(--primary);
    font-weight: 500;
}

/* Footer */
.footer {
    text-align: center;
    padding: 24px 16px;
    max-width: 480px;
    width: 100%;
}

.footer p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.footer-dev span {
    color: var(--primary);
    font-weight: 600;
}

.footer-admin {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 2px;
    transition: all 0.3s ease;
}

.footer-admin:hover {
    color: var(--primary);
    border-color: var(--primary);
}

/* Responsividade */
@media (max-width: 520px) {
    body {
        padding: 0;
    }

    .profile-container {
        border-radius: 0;
        max-width: 100%;
    }

    .banner {
        height: 150px;
    }

    .profile-header {
        padding: 0 16px 20px;
    }

    .tab-content {
        padding: 16px;
    }

    .horarios-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer {
        max-width: 100%;
    }
}

/* Scrollbar Custom */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #111111;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
