* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segue UI', system-ui, sans-serif;
    background: #f2f2f7;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 20px;
    gap: 20px;
    flex-wrap: wrap;
}

.phone {
    width: 375px;
    height: 812px;
    background: #000;
    border-radius: 40px;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

.screen {
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.status-bar {
    height: 44px;
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid #f0f0f0;
}

.status-left {
    font-size: 15px;
}

.status-right {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 15px;
}

.app-header {
    padding: 20px 24px 16px;
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
}

.app-title {
    font-size: 32px;
    font-weight: 700;
    color: #000;
    margin-bottom: 4px;
}

.app-subtitle {
    font-size: 16px;
    color: #8e8e93;
}

.content {
    flex: 1;
    overflow-y: auto;
    background: #f2f2f7;
}

.section {
    padding: 16px 24px;
}

.card {
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #000;
}

.card-content {
    padding: 20px;
}


.search-input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
    color: #000;
}

.search-bar {
    background: #e5e5ea;
    border-radius: 10px;
    padding: 12px 16px;
    margin: 16px 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.exam-card {
    background: #ffffff;
    border-radius: 12px;
    margin: 8px 24px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.exam-title {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin-bottom: 4px;
}

.exam-description {
    font-size: 14px;
    color: #8e8e93;
    margin-bottom: 12px;
}

.exam-price {
    font-size: 18px;
    font-weight: 700;
    color: #007aff;
}

.tab-bar {
    height: 83px;
    background: #ffffff;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: 34px;
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #8e8e93;
    font-size: 10px;
    font-weight: 500;
}

.tab-item.active {
    color: #007aff;
}

.tab-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.metric-row:last-child {
    border-bottom: none;
}

.metric-label {
    font-size: 16px;
    color: #000;
}

.metric-value {
    font-size: 16px;
    font-weight: 600;
    color: #007aff;
}

.performance-badge {
    background: linear-gradient(45deg, #007aff, #5856d6);
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-top: 8px;
}

.goal-progress {
    background: #f2f2f7;
    height: 8px;
    border-radius: 4px;
    margin: 8px 0;
    overflow: hidden;
}

.goal-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #34c759, #30d158);
    border-radius: 4px;
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: white;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 30px;
    background: linear-gradient(45deg, #007aff, #5856d6);
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin-bottom: 2px;
}

.profile-specialty {
    font-size: 14px;
    color: #8e8e93;
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.setting-row:last-child {
    border-bottom: none;
}

.setting-label {
    font-size: 16px;
    color: #000;
}

.toggle {
    width: 48px;
    height: 28px;
    background: #34c759;
    border-radius: 14px;
    position: relative;
}

.toggle::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 12px;
    background: white;
    top: 2px;
    right: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.hidden {
    display: none;
}

.screen-selector {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: white;
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.screen-btn {
    display: block;
    width: 100%;
    padding: 8px 16px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    border-radius: 4px;
    margin-bottom: 4px;
    font-size: 14px;
}

.screen-btn:hover {
    background: #f0f0f0;
}

.screen-btn.active {
    background: #007aff;
    color: white;
}

.appointment-card {
    background: linear-gradient(135deg, #007aff, #5856d6);
    color: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.appointment-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.appointment-date {
    font-size: 14px;
    opacity: 0.9;
}

.filters {
    display: flex;
    gap: 8px;
    padding: 0 24px 16px;
    overflow-x: auto;
}

.filter-chip {
    padding: 8px 16px;
    background: #ffffff;
    border: 1px solid #e5e5ea;
    border-radius: 20px;
    font-size: 14px;
    white-space: nowrap;
    color: #000;
}

.filter-chip.active {
    background: #007aff;
    color: white;
    border-color: #007aff;
}

.section-title {
    padding: 16px 24px 4px;
    font-weight: 700;
    font-size: 18px;
    color: #000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: #f2f2f7;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 20px;
}

.phone {
    width: 375px;
    height: 812px;
    background: #000;
    border-radius: 40px;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

.screen {
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.status-bar {
    height: 44px;
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid #f0f0f0;
}

.status-left {
    font-size: 15px;
}

.status-right {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 15px;
}

.screen.expert .header {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
}

.screen.expert .back-btn {
    font-size: 18px;
    color: #007aff;
    margin-right: 16px;
    cursor: pointer;
}

.screen.expert .header-title {
    font-size: 17px;
    font-weight: 600;
    color: #000;
}

.screen.expert .content {
    flex: 1;
    overflow-y: auto;
    background: #f2f2f7;
}

.screen.expert .hero-section {
    background: linear-gradient(135deg, #007aff, #5856d6);
    padding: 32px 24px;
    text-align: center;
    color: white;
    position: relative;
}

.screen.expert .doctor-image {
    width: 120px;
    height: 120px;
    border-radius: 60px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.screen.expert .doctor-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.screen.expert .doctor-specialty {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 16px;
}

.screen.expert .rating-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.screen.expert .stars {
    color: #FFD700;
    font-size: 18px;
}

.screen.expert .rating-text {
    font-size: 16px;
    font-weight: 600;
}

.screen.expert .info-section {
    background: white;
    margin: 16px 24px;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.screen.expert .section-title {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin-bottom: 12px;
}

.screen.expert .description-text {
    font-size: 15px;
    line-height: 1.5;
    color: #333;
    margin-bottom: 16px;
}

.screen.expert .specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.screen.expert .specialty-tag {
    background: #f0f8ff;
    color: #007aff;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
}

.screen.expert .stats-row {
    display: flex;
    justify-content: space-around;
    padding: 16px 0;
    border-top: 1px solid #f0f0f0;
}

.screen.expert .stat {
    text-align: center;
}

.screen.expert .stat-number {
    font-size: 20px;
    font-weight: 700;
    color: #007aff;
}

.screen.expert .stat-label {
    font-size: 12px;
    color: #8e8e93;
    margin-top: 4px;
}

.screen.expert .schedule-section {
    background: white;
    margin: 0 24px 16px;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.screen.expert .date-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.screen.expert .date-chip {
    min-width: 60px;
    padding: 12px 8px;
    background: #f8f9fa;
    border: 1px solid #e5e5ea;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.screen.expert .date-chip.active {
    background: #007aff;
    color: white;
    border-color: #007aff;
}

.screen.expert .date-day {
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 4px;
}

.screen.expert .date-number {
    font-size: 16px;
    font-weight: 700;
}

.screen.expert .time-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.screen.expert .time-slot {
    padding: 12px 8px;
    background: #f8f9fa;
    border: 1px solid #e5e5ea;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.screen.expert .time-slot:hover {
    background: #e3f2fd;
    border-color: #007aff;
}

.screen.expert .time-slot.selected {
    background: #007aff;
    color: white;
    border-color: #007aff;
}

.screen.expert .time-slot.unavailable {
    background: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
}

.screen.expert .book-button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #007aff, #5856d6);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.screen.expert .book-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
}

.screen.expert .book-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.screen.expert .price-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.screen.expert .price-label {
    font-size: 14px;
    color: #666;
}

.screen.expert .price-value {
    font-size: 18px;
    font-weight: 700;
    color: #007aff;
}

.screen.expert .tab-bar {
    height: 83px;
    background: #ffffff;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: 34px;
}

.screen.expert .tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #8e8e93;
    font-size: 10px;
    font-weight: 500;
}

.screen.expert .tab-item.active {
    color: #007aff;
}

.screen.expert .tab-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}