* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    width: 100vw;
    height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: transparent;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.phone-container {
    width: 390px;
    height: 844px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.phone-frame {
    width: 390px;
    height: 844px;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 40px);
    background: #1c1c1e;
    border-radius: 47px;
    padding: 0;
    box-shadow: 
        0 0 0 4px rgba(255, 255, 255, 0.05),
        0 0 0 8px rgba(0, 0, 0, 0.3),
        0 20px 60px rgba(0, 0, 0, 0.9);
    position: relative;
    overflow: hidden;
    transform-origin: bottom right;
}

.status-bar {
    height: 47px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
    background: transparent;
    color: #000;
    font-size: 15px;
    font-weight: 600;
    position: relative;
    z-index: 10;
    padding-top: 5px;
}

.status-time {
    font-weight: 600;
}

.status-icons {
    display: flex;
    gap: 4px;
    align-items: center;
}

.screen {
    width: 100%;
    height: calc(100% - 47px - 34px);
    background: #ffffff;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    margin: 0;
}

.page {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.page::-webkit-scrollbar {
    display: none;
}

.phone-header {
    background: #ffffff;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.1);
}

.phone-header h1 {
    font-size: 34px;
    font-weight: 700;
    color: #000000;
    margin: 0;
    letter-spacing: 0.37px;
    line-height: 41px;
}

.back-btn, .close-btn {
    background: transparent;
    border: none;
    color: #007aff;
    font-size: 34px;
    font-weight: 300;
    cursor: pointer;
    padding: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    transition: background 0.15s;
    line-height: 1;
}

.back-btn:hover, .close-btn:hover {
    background: rgba(0, 122, 255, 0.1);
}

.back-btn:active, .close-btn:active {
    background: rgba(0, 122, 255, 0.2);
}

.close-btn {
    color: #ff3b30;
    font-size: 24px;
}

.close-btn:hover {
    background: rgba(255, 59, 48, 0.1);
}

.close-btn:active {
    background: rgba(255, 59, 48, 0.2);
}

.menu-list {
    padding: 10px 0;
}

.main-icons {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 25px;
    flex: 1;
    min-height: 450px;
}

.main-icon-item {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.35);
    position: relative;
    overflow: hidden;
}

.main-icon-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.main-icon-item:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 28px rgba(102, 126, 234, 0.5);
}

.main-icon-item:hover::before {
    opacity: 1;
}

.main-icon-item:active {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.main-icon-item[data-action="services"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.main-icon-item[data-action="services"]:hover {
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
}

.main-icon-item[data-action="contacts"] {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 8px 25px rgba(245, 87, 108, 0.4);
}

.main-icon-item[data-action="contacts"]:hover {
    box-shadow: 0 12px 35px rgba(245, 87, 108, 0.6);
}

.main-icon {
    font-size: 70px;
    margin-bottom: 12px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

.main-icon-label {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.41px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.1);
    background: #ffffff;
}

.menu-item:active {
    background: rgba(0, 0, 0, 0.05);
}

.menu-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 15px;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.menu-item[data-service="1"] .menu-icon {
    background: linear-gradient(135deg, #0066ff 0%, #0044cc 100%);
    box-shadow: 0 4px 10px rgba(0, 102, 255, 0.3);
}

.menu-item[data-service="2"] .menu-icon {
    background: linear-gradient(135deg, #ff3333 0%, #cc0000 100%);
    box-shadow: 0 4px 10px rgba(255, 51, 51, 0.3);
}

.menu-item[data-service="3"] .menu-icon {
    background: linear-gradient(135deg, #ffcc00 0%, #ff9900 100%);
    box-shadow: 0 4px 10px rgba(255, 204, 0, 0.3);
}

.menu-text {
    flex: 1;
}

.menu-title {
    font-size: 17px;
    font-weight: 400;
    color: #000000;
    margin-bottom: 2px;
    letter-spacing: -0.41px;
}

.menu-subtitle {
    font-size: 15px;
    color: #8e8e93;
    letter-spacing: -0.24px;
}

.menu-arrow {
    font-size: 24px;
    color: #86868b;
    font-weight: 300;
}

.contacts-list {
    padding: 10px 0;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.1);
    position: relative;
    background: #ffffff;
}

.contact-item:active {
    background: rgba(0, 0, 0, 0.05);
}

.contact-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    margin-right: 15px;
    text-transform: uppercase;
}

.contact-info {
    flex: 1;
}

.contact-name {
    font-size: 17px;
    font-weight: 400;
    color: #000000;
    margin-bottom: 2px;
    letter-spacing: -0.41px;
}

.contact-number {
    font-size: 15px;
    color: #8e8e93;
    letter-spacing: -0.24px;
}

.contact-actions {
    display: flex;
    gap: 10px;
}

.contact-action-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.contact-action-btn.call {
    background: #34c759;
    color: #fff;
}

.contact-action-btn.sms {
    background: #007aff;
    color: #fff;
}

.contact-action-btn.delete {
    background: #ff3b30;
    color: #fff;
}

.contact-action-btn:hover {
    transform: scale(1.05);
}

.contact-action-btn:active {
    transform: scale(0.95);
}

.add-contact-btn {
    margin: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.2s;
}

.add-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.add-contact-btn:active {
    transform: translateY(0);
}

.sms-input-container {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sms-textarea {
    width: 100%;
    min-height: 200px;
    padding: 15px;
    border: 2px solid #e5e5ea;
    border-radius: 12px;
    font-size: 17px;
    font-family: inherit;
    resize: none;
    background: #fff;
    color: #1d1d1f;
}

.sms-textarea:focus {
    outline: none;
    border-color: #007aff;
}

.send-btn {
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.2s;
}

.send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.send-btn:active {
    transform: translateY(0);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #86868b;
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 17px;
}

.home-indicator {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 134px;
    height: 5px;
    background: #000000;
    border-radius: 3px;
    opacity: 0.3;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.page {
    animation: fadeIn 0.3s ease-out;
}

/* Responsive */
@media (max-width: 420px) {
    .phone-container {
        width: 100%;
        height: 100%;
        bottom: 0;
        right: 0;
    }
    
    .phone-frame {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
    }
}
