/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --bg-card: #1a1a1a;
    --bg-card-hover: #222222;
    --accent: #c9a44c;
    --accent-glow: rgba(201, 164, 76, 0.3);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --border: #2a2a2a;
    --success: #4ade80;
    --danger: #ef4444;
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

p, span, h1, h2, h3, h4, h5, h6, .barber-bio, .service-info p, .summary-value, .summary-label {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* ===== APP CONTAINER (Fixed mobile width) ===== */
.app-container {
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--bg-primary);
    position: relative;
    padding-bottom: 24px;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
}

/* ===== HEADER / BANNER ===== */
.profile-header {
    position: relative;
    width: 100%;
}

.banner {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, var(--bg-primary), transparent);
}

.profile-photo-wrapper {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.profile-photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid var(--accent);
    object-fit: cover;
    box-shadow: 0 4px 20px var(--accent-glow);
    transition: var(--transition);
}

.profile-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 30px var(--accent-glow);
}

.status-dot {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 14px;
    height: 14px;
    background: var(--success);
    border-radius: 50%;
    border: 2px solid var(--bg-primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

/* ===== BIO SECTION ===== */
.bio-section {
    text-align: center;
    padding: 50px 20px 20px;
    animation: fadeInUp 0.6s ease;
}

.barber-name {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.barber-tagline {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 4px;
    font-weight: 300;
}

.location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.social-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
}

.social-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.social-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--accent-glow);
}

.rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    width: 18px;
    height: 18px;
}

.star.full {
    fill: var(--accent);
}

.star.half {
    fill: var(--border);
}

.rating-text {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.barber-bio {
    margin-top: 14px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
    padding: 0 12px;
    font-weight: 300;
    text-align: left;
}

/* ===== TABS ===== */
.tabs {
    display: flex;
    padding: 0 16px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    margin-top: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tab {
    flex: 1;
    padding: 12px 8px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    white-space: nowrap;
}

.tab.active {
    color: var(--accent);
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    animation: tabSlide 0.3s ease;
}

@keyframes tabSlide {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* ===== TAB CONTENT ===== */
.tab-content {
    display: none;
    padding: 20px 16px;
    animation: fadeInUp 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== SERVICES ===== */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
    animation: fadeInUp 0.4s ease backwards;
}

.service-card:nth-child(1) { animation-delay: 0.05s; }
.service-card:nth-child(2) { animation-delay: 0.1s; }
.service-card:nth-child(3) { animation-delay: 0.15s; }
.service-card:nth-child(4) { animation-delay: 0.2s; }
.service-card:nth-child(5) { animation-delay: 0.25s; }

.service-card:hover,
.service-card:active {
    background: var(--bg-card-hover);
    border-color: var(--accent);
    transform: translateX(4px);
}

.service-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
}

.service-info p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.service-duration {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 4px;
    display: inline-block;
}

.service-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.service-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
}

.btn-agendar-service {
    padding: 8px 16px;
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    white-space: nowrap;
}

.btn-agendar-service:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-agendar-service:active {
    transform: scale(0.95);
}

/* ===== PORTFOLIO ===== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.portfolio-item {
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    position: relative;
    animation: fadeInUp 0.4s ease backwards;
}

.portfolio-item:nth-child(1) { animation-delay: 0.05s; }
.portfolio-item:nth-child(2) { animation-delay: 0.1s; }
.portfolio-item:nth-child(3) { animation-delay: 0.15s; }
.portfolio-item:nth-child(4) { animation-delay: 0.2s; }
.portfolio-item:nth-child(5) { animation-delay: 0.25s; }
.portfolio-item:nth-child(6) { animation-delay: 0.3s; }

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-item:hover img,
.portfolio-item:active img {
    transform: scale(1.08);
}

.portfolio-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover::after {
    opacity: 1;
}

/* ===== DETAILS ===== */
.details-section {
    margin-bottom: 24px;
}

.section-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title::before {
    content: '';
    width: 3px;
    height: 16px;
    background: var(--accent);
    border-radius: 2px;
}

.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    animation: fadeInUp 0.3s ease backwards;
}

.schedule-item:nth-child(1) { animation-delay: 0.03s; }
.schedule-item:nth-child(2) { animation-delay: 0.06s; }
.schedule-item:nth-child(3) { animation-delay: 0.09s; }
.schedule-item:nth-child(4) { animation-delay: 0.12s; }
.schedule-item:nth-child(5) { animation-delay: 0.15s; }
.schedule-item:nth-child(6) { animation-delay: 0.18s; }
.schedule-item:nth-child(7) { animation-delay: 0.21s; }

.schedule-item .day {
    font-size: 0.85rem;
    font-weight: 500;
}

.schedule-item .hours {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
}

.schedule-item.closed .day {
    color: var(--text-muted);
}

.schedule-item .hours.closed {
    color: var(--danger);
}

.address-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.address-card svg {
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.address-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
}

.contact-item:hover,
.contact-item:active {
    border-color: var(--accent);
    background: var(--bg-card-hover);
}

.contact-item svg {
    color: var(--accent);
}

.contact-item.whatsapp {
    border-color: #25d366;
}

.contact-item.whatsapp svg {
    color: #25d366;
}

.contact-item span {
    font-size: 0.85rem;
    font-weight: 500;
}

/* ===== FOOTER ===== */
.site-footer {
    padding: 32px 16px 24px;
    text-align: center;
    border-top: 1px solid var(--border);
    margin-top: 20px;
}

.footer-developed {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-developed span {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
}

.footer-selo {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.footer-selo:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.footer-selo.colored {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
    animation: seloReveal 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes seloReveal {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1.1); }
}

.footer-rights {
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0.6;
}

/* ===== BOOKING MODAL ===== */
.booking-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 500;
    align-items: flex-end;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.booking-modal.active {
    display: flex;
}

.booking-modal-content {
    width: 100%;
    max-width: 430px;
    max-height: 85vh;
    background: var(--bg-primary);
    border-radius: 20px 20px 0 0;
    padding: 24px 16px 32px;
    overflow-y: auto;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.booking-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.booking-modal-close:hover {
    border-color: var(--accent);
}

.booking-selected-service {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 16px;
    padding: 8px 12px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    display: inline-block;
}

.booking-step {
    display: none;
    animation: fadeInUp 0.4s ease;
}

.booking-step.active {
    display: block;
}

/* Calendar */
.calendar {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 16px;
    margin-bottom: 16px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.cal-month {
    font-size: 0.95rem;
    font-weight: 600;
}

.cal-nav {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.cal-nav:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 8px;
}

.calendar-weekdays span {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    background: none;
    color: var(--text-primary);
}

.cal-day:hover:not(.disabled):not(.empty) {
    background: var(--accent-glow);
    color: var(--accent);
}

.cal-day.selected {
    background: var(--accent);
    color: var(--bg-primary);
    font-weight: 700;
}

.cal-day.disabled {
    color: var(--text-muted);
    opacity: 0.3;
    cursor: not-allowed;
}

.cal-day.today {
    border: 1px solid var(--accent);
}

.cal-day.empty {
    cursor: default;
}

/* Time Slots */
.time-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.time-slot {
    padding: 12px 8px;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-primary);
}

.time-slot:hover:not(.disabled) {
    border-color: var(--accent);
    background: var(--bg-card-hover);
}

.time-slot.selected {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
    font-weight: 700;
}

.time-slot.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Booking Summary */
.booking-summary {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 16px;
    margin-bottom: 16px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.summary-value {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
}

/* Client Form */
.client-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.form-input {
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-input::placeholder {
    color: var(--text-muted);
}

/* Buttons */
.btn-confirm {
    width: 100%;
    padding: 16px;
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-confirm:active {
    transform: translateY(0);
}

.btn-back {
    display: block;
    margin-top: 12px;
    padding: 10px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.82rem;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

.btn-back:hover {
    color: var(--text-primary);
}

/* Success */
.success-message {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--success);
    color: var(--bg-primary);
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 16px;
    animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.success-message h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.success-message p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 24px;
}



/* ===== LIGHTBOX ===== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--radius);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    border-color: var(--accent);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

/* ===== RESPONSIVE - Always mobile-centered ===== */
@media (min-width: 431px) {
    body {
        background: #050505;
    }

    .app-container {
        border-left: 1px solid var(--border);
        border-right: 1px solid var(--border);
    }
}
