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

:root {
    --primary: #4F46E5;
    --primary-dark: #4338CA;
    --primary-light: #EEF2FF;
    --secondary: #10B981;
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --bg: #FFFFFF;
    --bg-secondary: #F9FAFB;
    --border: #E5E7EB;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Device Frame */
.device-frame {
    width: 100%;
    max-width: 375px;
    height: 812px;
    background: #000;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.device-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 30px;
    background: #000;
    border-radius: 0 0 20px 20px;
    z-index: 10;
}

/* Screen */
.screen {
    width: 100%;
    height: 100%;
    background: var(--bg);
    border-radius: 30px;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
}

.screen.hidden {
    display: none !important;
}

/* Splash Screen */
#splash {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.splash-content {
    text-align: center;
    color: white;
}

.logo {
    margin-bottom: 24px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.splash-content h1 {
    font-size: 32px;
    margin-bottom: 8px;
}

.splash-content p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 40px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Home Header */
.home-header {
    padding: 60px 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.header-greeting h1 {
    font-size: 28px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.header-greeting p {
    font-size: 14px;
    color: var(--text-secondary);
}

.btn-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: none;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.btn-icon:hover {
    background: var(--border);
}

.badge {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 18px;
    height: 18px;
    background: #EF4444;
    color: white;
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Search Bar */
.search-bar {
    margin: 0 20px 24px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-bar input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    font-size: 15px;
    color: var(--text-primary);
}

.search-bar input::placeholder {
    color: var(--text-secondary);
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 0 20px 24px;
}

.quick-action {
    text-align: center;
    cursor: pointer;
}

.quick-action-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
}

.quick-action span {
    font-size: 12px;
    color: var(--text-primary);
    display: block;
}

/* Section */
.section {
    padding: 0 20px 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-header h3 {
    font-size: 18px;
    color: var(--text-primary);
}

.section-header a {
    color: var(--primary);
    font-size: 14px;
    text-decoration: none;
}

/* Service Cards */
.service-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.service-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s;
}

.service-card:hover {
    transform: translateY(-2px);
}

.service-card-image {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card-content {
    padding: 16px;
}

.service-card-content h4 {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.service-card-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.service-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
}

.duration {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Bottom Navigation */
.bottom-nav {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    padding: 8px 0 20px;
}

.nav-item {
    flex: 1;
    border: none;
    background: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px;
    cursor: pointer;
    color: var(--text-secondary);
}

.nav-item span {
    font-size: 11px;
}

.nav-item.active {
    color: var(--primary);
}

/* Screen Header */
.screen-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 20px 20px;
}

.screen-header h2 {
    font-size: 20px;
    color: var(--text-primary);
}

.btn-back {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: none;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-back:hover {
    background: var(--border);
}

/* Screen Content */
.screen-content {
    padding: 0 20px 100px;
}

/* Service Detail */
.service-detail-header {
    position: absolute;
    top: 50px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    z-index: 5;
}

.service-detail-content {
    padding: 20px;
    padding-bottom: 100px;
}

.service-detail-content h1 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.service-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-secondary);
}

.price-section {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.price-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.price-large {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}

.section h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-list li span {
    font-size: 15px;
    color: var(--text-primary);
}

/* Buttons */
.btn {
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background: var(--bg-secondary);
}

.btn-full {
    width: 100%;
}

.btn-large {
    padding: 16px 24px;
    font-size: 17px;
}

/* Orders */
.order-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-card {
    background: white;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.order-card-header h4 {
    font-size: 16px;
    color: var(--text-primary);
}

.status-badge {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 500;
}

.status-completed {
    background: #D1FAE5;
    color: #065F46;
}

.status-in-progress {
    background: #DBEAFE;
    color: #1E40AF;
}

.order-card-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.order-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.order-id {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Profile */
.profile-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 20px 40px;
    text-align: center;
    color: white;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-header h2 {
    font-size: 24px;
    margin-bottom: 4px;
}

.profile-header p {
    font-size: 14px;
    opacity: 0.9;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 20px;
}

.stat-card {
    background: white;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border);
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.profile-menu {
    padding: 0 20px 100px;
}

.menu-section {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid var(--border);
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    background: var(--bg-secondary);
}

.menu-item-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-item-content {
    flex: 1;
}

.menu-item-content h4 {
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.menu-item-content p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Form Elements */
.form-section {
    margin-bottom: 24px;
}

.form-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.location-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.location-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.location-card.active {
    border-color: var(--primary);
    background: var(--primary-light);
}

.location-card-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.location-card.active .location-card-icon {
    background: white;
    color: var(--primary);
}

.location-card-content {
    flex: 1;
}

.location-card-content h4 {
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.location-card-content p {
    font-size: 13px;
    color: var(--text-secondary);
}

.location-card-radio {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.radio-checked {
    width: 24px;
    height: 24px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    position: relative;
}

.radio-checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
}

.radio-unchecked {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border);
    border-radius: 50%;
}

.input-group {
    margin-bottom: 16px;
}

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    color: var(--text-primary);
    background: white;
    cursor: pointer;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary);
}

.form-textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    color: var(--text-primary);
    font-family: inherit;
    resize: vertical;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Terms */
.terms-content {
    margin-bottom: 24px;
}

.terms-content h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.terms-section {
    margin-bottom: 20px;
}

.terms-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.terms-section p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 8px;
}

.terms-section ul {
    list-style: none;
    padding-left: 0;
}

.terms-section li {
    font-size: 14px;
    color: var(--text-secondary);
    padding-left: 24px;
    margin-bottom: 6px;
    position: relative;
}

.terms-section li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: var(--primary);
    font-weight: bold;
}

.terms-checkbox {
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-text {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
}

/* Checkout */
.checkout-summary {
    margin-bottom: 20px;
}

.checkout-service {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 20px;
}

.checkout-service-image {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.checkout-service-details h3 {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.checkout-service-details p {
    font-size: 13px;
    color: var(--text-secondary);
}

.checkout-info-group {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.checkout-info-group h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.checkout-info-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.checkout-info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.checkout-info-item svg {
    color: var(--text-secondary);
    flex-shrink: 0;
}

.info-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.info-value {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

.checkout-pricing {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.checkout-pricing h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-primary);
}

.pricing-discount {
    color: var(--secondary);
}

.pricing-divider {
    height: 1px;
    background: var(--border);
    margin: 12px 0;
}

.pricing-total {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.payment-method {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.payment-method h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.payment-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.payment-card-info {
    flex: 1;
}

.payment-card-number {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.payment-card-name {
    font-size: 12px;
    color: var(--text-secondary);
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
}

.checkout-notice {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.checkout-notice svg {
    flex-shrink: 0;
    margin-top: 2px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        padding: 0;
        background: white;
    }

    .device-frame {
        max-width: 100%;
        height: 100vh;
        border-radius: 0;
        padding: 0;
        box-shadow: none;
    }

    .device-frame::before {
        display: none;
    }

    .screen {
        border-radius: 0;
    }
}
