* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: #f8f8fc;
    color: #1a1a2e;
    min-height: 100vh;
}

#app {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
}

.loading-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    gap: 16px;
    color: #888;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e0e0e0;
    border-top-color: #6D3AFA;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.master-header {
    text-align: center;
    padding: 40px 20px 24px;
    background: linear-gradient(135deg, #6D3AFA 0%, #9B6DFF 100%);
    color: #fff;
    border-radius: 0 0 32px 32px;
}

.master-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 16px;
    border: 3px solid rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.2);
}

.master-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.master-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.master-specialty {
    font-size: 15px;
    opacity: 0.85;
    margin-bottom: 4px;
}

.master-address {
    font-size: 13px;
    opacity: 0.7;
}

/* Services */

.services-section {
    padding: 24px 16px;
}

.services-section h2,
.slots-section h2,
.booking-form h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
    border: 2px solid transparent;
}

.service-card:hover {
    box-shadow: 0 4px 16px rgba(109, 58, 250, 0.12);
    transform: translateY(-1px);
}

.service-card.selected {
    border-color: #6D3AFA;
    background: #f5f0ff;
}

.service-info h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.service-meta {
    font-size: 13px;
    color: #888;
}

.service-price {
    font-size: 16px;
    font-weight: 700;
    color: #6D3AFA;
    white-space: nowrap;
}

/* Date/time picker */

.slots-section {
    padding: 0 16px 24px;
}

.date-picker {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.date-nav {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #fff;
    font-size: 16px;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.date-days {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    flex: 1;
}

.date-days::-webkit-scrollbar { display: none; }

.date-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 12px;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    min-width: 52px;
    transition: background 0.2s;
    border: 2px solid transparent;
}

.date-day.selected {
    background: #6D3AFA;
    color: #fff;
}

.date-day.today {
    border-color: #6D3AFA;
}

.date-day-name {
    font-size: 11px;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 4px;
}

.date-day-num {
    font-size: 16px;
    font-weight: 600;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.time-slot {
    padding: 10px;
    text-align: center;
    background: #fff;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
    border: 2px solid transparent;
}

.time-slot:hover {
    background: #f0ebff;
}

.time-slot.selected {
    background: #6D3AFA;
    color: #fff;
}

.time-slot.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.no-slots {
    text-align: center;
    color: #888;
    padding: 24px;
    font-size: 14px;
}

/* Booking form */

.booking-form {
    padding: 0 16px 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e8e8ee;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: #6D3AFA;
}

.booking-summary {
    background: #f5f0ff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.6;
}

.btn-primary {
    width: 100%;
    padding: 16px;
    background: #6D3AFA;
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    background: #fff;
    color: #6D3AFA;
    border: 2px solid #6D3AFA;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: #f5f0ff;
}

/* Success */

.success-screen {
    text-align: center;
    padding: 60px 20px;
}

.success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #10b981;
    color: #fff;
    font-size: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.success-screen h2 {
    font-size: 24px;
    margin-bottom: 12px;
}

.success-screen p {
    color: #666;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* Error */

.error-page {
    text-align: center;
    padding: 80px 20px;
}

.error-page h1 {
    font-size: 24px;
    margin-bottom: 12px;
}

.error-page p {
    color: #888;
    margin-bottom: 24px;
}

/* Footer */

.booking-footer {
    text-align: center;
    padding: 24px;
    color: #aaa;
    font-size: 13px;
}

.booking-footer a {
    color: #6D3AFA;
    text-decoration: none;
    font-weight: 600;
}
