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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #000;
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

.container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100vw;
    padding: 0;
    margin: 0;
}

/* Phone Container */
.phone-container {
    position: relative;
    z-index: 10;
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

.iphone-frame {
    width: 100vw;
    height: 100vh;
    background: #000;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    position: relative;
    max-width: 100vw;
    max-height: 100vh;
}

.dynamic-island {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 126px;
    height: 37px;
    background: #000;
    border-radius: 20px;
    z-index: 1000;
}

.screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 0;
    overflow: hidden;
    position: relative;
}

/* Status Bar */
.status-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 44px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    z-index: 100;
}

.status-icons {
    display: flex;
    gap: 4px;
}

/* Lock Screen */
.lock-screen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    z-index: 200;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.lock-screen.unlocked {
    transform: translateY(-100%);
}

/* Background Animation */
.lock-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: float 8s infinite ease-in-out;
    animation-delay: var(--delay);
    left: var(--x);
    top: var(--y);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-20px) scale(1.2);
        opacity: 1;
    }
}

/* Creator Badge */
.creator-badge {
    position: absolute;
    top: 80px;
    right: 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideInRight 1s ease-out 0.5s both;
    z-index: 10;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.creator-icon {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    animation: rotate 3s linear infinite;
}

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

.creator-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.creator-label {
    font-size: 10px;
    opacity: 0.8;
    font-weight: 400;
}

.creator-name {
    font-size: 12px;
    font-weight: 600;
    background: linear-gradient(135deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.creator-sparkle {
    font-size: 16px;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(180deg); }
}

/* Main Content */
.lock-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
    animation: fadeInUp 1s ease-out 0.3s both;
}

@keyframes fadeInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.lock-time {
    font-size: 90px;
    font-weight: 200;
    margin-bottom: 8px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); }
    to { text-shadow: 0 4px 30px rgba(255, 255, 255, 0.3); }
}

.lock-date {
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 40px;
    opacity: 0.9;
}

.lock-message {
    position: relative;
    margin-bottom: 60px;
}

.message-text {
    font-size: 20px;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.message-underline {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb);
    border-radius: 2px;
    animation: expandWidth 2s ease-out 1s forwards;
}

@keyframes expandWidth {
    to { width: 100%; }
}

/* Unlock Area */
.unlock-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.unlock-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.8;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.unlock-hint i {
    font-size: 20px;
    margin-bottom: 5px;
}

.unlock-hint span {
    font-size: 14px;
    font-weight: 400;
}

.unlock-indicator {
    display: flex;
    gap: 8px;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: indicatorPulse 1.5s infinite;
}

.indicator-dot:nth-child(2) {
    animation-delay: 0.5s;
}

.indicator-dot:nth-child(3) {
    animation-delay: 1s;
}

@keyframes indicatorPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Quick Actions */
.quick-actions {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    animation: fadeInUp 1s ease-out 1.2s both;
}

.lock-camera, .lock-flashlight {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.lock-camera:hover, .lock-flashlight:hover {
    transform: scale(1.1);
}

.camera-icon, .flashlight-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.camera-icon:hover, .flashlight-icon:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.camera-label, .flashlight-label {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.9;
}

/* Dynamic Island Glow */
.dynamic-glow {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 126px;
    height: 37px;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 20px;
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Home Screen */
.home-screen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    padding: 60px 20px 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

/* Background Animation */
.home-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.home-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: homeFloat 10s infinite ease-in-out;
    animation-delay: var(--delay);
    left: var(--x);
    top: var(--y);
}

@keyframes homeFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-30px) scale(1.3);
        opacity: 0.8;
    }
}

/* Creator Badge */
.home-creator-badge {
    position: absolute;
    top: 80px;
    right: 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideInRight 1s ease-out 0.3s both;
    z-index: 10;
}

.home-creator-icon {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    animation: rotate 3s linear infinite;
}

.home-creator-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.home-creator-label {
    font-size: 12px;
    font-weight: 600;
    background: linear-gradient(135deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-creator-subtitle {
    font-size: 10px;
    opacity: 0.8;
    font-weight: 400;
}

.home-creator-sparkle {
    font-size: 16px;
    animation: homeSparkle 2s ease-in-out infinite;
}

@keyframes homeSparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.3) rotate(180deg); }
}

/* Welcome Message */
.welcome-message {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.welcome-text {
    position: relative;
    text-align: center;
}

.welcome-greeting {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.welcome-underline {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb);
    border-radius: 2px;
    animation: expandWidth 2s ease-out 1s forwards;
}

/* App Grid */
.app-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px 0;
    animation: fadeInUp 1s ease-out 0.7s both;
}

.app-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.app-icon:hover {
    transform: scale(1.1) translateY(-5px);
}

.app-icon-bg {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.app-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.app-icon:hover .app-glow {
    opacity: 1;
}

.app-icon:hover .app-icon-bg {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
    transform: scale(1.05);
}

.app-name {
    font-size: 10px;
    color: #fff;
    font-weight: 500;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.app-icon:hover .app-name {
    transform: scale(1.1);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

/* App Icon Backgrounds */
.phone-bg { background: linear-gradient(135deg, #4CAF50, #45a049); }
.messages-bg { background: linear-gradient(135deg, #2196F3, #1976D2); }
.safari-bg { background: linear-gradient(135deg, #FF9800, #F57C00); }
.camera-bg { background: linear-gradient(135deg, #9C27B0, #7B1FA2); }
.photos-bg { background: linear-gradient(135deg, #E91E63, #C2185B); }
.settings-bg { background: linear-gradient(135deg, #607D8B, #455A64); }
.music-bg { background: linear-gradient(135deg, #FF5722, #D84315); }
.calculator-bg { background: linear-gradient(135deg, #795548, #5D4037); }

/* Dock */
.dock {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(25px);
    border-radius: 25px;
    padding: 15px;
    display: flex;
    justify-content: space-around;
    margin: 0 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    animation: fadeInUp 1s ease-out 1s both;
}

.dock-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 25px;
    pointer-events: none;
}

.dock-app {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.dock-app:hover {
    transform: scale(1.15) translateY(-3px);
}

.dock-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.dock-glow-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dock-app:hover .dock-glow-effect {
    opacity: 1;
}

.dock-app:hover .dock-icon {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transform: scale(1.1);
}

/* Home Indicator Glow */
.home-indicator-glow {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 134px;
    height: 5px;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    border-radius: 3px;
    animation: homeGlowPulse 3s ease-in-out infinite;
}

@keyframes homeGlowPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

/* App Screens */
.app-screen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 300;
    overflow: hidden;
}

.app-header {
    height: 60px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid #e9ecef;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #007AFF;
    font-size: 16px;
    cursor: pointer;
}

.app-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1f;
}

.header-action {
    color: #007AFF;
    font-size: 18px;
    cursor: pointer;
}

/* Phone App */
.phone-content {
    height: calc(100% - 60px);
    display: flex;
    flex-direction: column;
}

.phone-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.tab {
    flex: 1;
    padding: 15px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #8e8e93;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}

.tab.active {
    color: #007AFF;
    border-bottom-color: #007AFF;
}

.tab-content {
    display: none;
    flex: 1;
    overflow-y: auto;
}

.tab-content.active {
    display: flex;
    flex-direction: column;
}

/* Keypad Tab */
.keypad {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 20px;
    gap: 20px;
}

.phone-number {
    text-align: center;
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 20px;
    color: #1d1d1f;
    min-height: 40px;
}

.keypad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    width: 280px;
}

.key {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 400;
    color: #1d1d1f;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.key:hover {
    background: #e9ecef;
    transform: scale(1.05);
}

.key-sub {
    font-size: 10px;
    color: #8e8e93;
    margin-top: 2px;
}

.call-btn, .delete-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.call-btn {
    background: #4CAF50;
}

.call-btn:hover {
    background: #45a049;
    transform: scale(1.05);
}

.delete-btn {
    background: #ff4444;
}

.delete-btn:hover {
    background: #cc0000;
    transform: scale(1.05);
}

/* Contacts Tab */
.contacts-search {
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
}

.contacts-search input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
}

.contacts-list {
    flex: 1;
    overflow-y: auto;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.contact-item:hover {
    background: #f8f9fa;
}

.contact-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #007AFF;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
}

.contact-info {
    flex: 1;
}

.contact-name {
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 4px;
}

.contact-number {
    font-size: 14px;
    color: #8e8e93;
}

.contact-actions {
    display: flex;
    gap: 15px;
}

.contact-actions i {
    color: #007AFF;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.contact-actions i:hover {
    color: #0056b3;
}

/* Recent Calls Tab */
.recent-calls {
    flex: 1;
    overflow-y: auto;
}

.call-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.call-item:hover {
    background: #f8f9fa;
}

.call-item.incoming .call-type i {
    color: #4CAF50;
}

.call-item.outgoing .call-type i {
    color: #007AFF;
}

.call-item.missed .call-type i {
    color: #ff4444;
}

.call-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #007AFF;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
}

.call-info {
    flex: 1;
}

.call-name {
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 4px;
}

.call-time {
    font-size: 14px;
    color: #8e8e93;
}

.call-type i {
    font-size: 18px;
}

/* Messages App */
.messages-content {
    height: calc(100% - 60px);
    display: flex;
    flex-direction: column;
}

.messages-search {
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
}

.messages-search input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
}

.message-thread {
    flex: 1;
    overflow-y: auto;
}

.message-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.message-item:hover {
    background: #f8f9fa;
}

.message-item.unread {
    background: #f0f8ff;
}

.message-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #007AFF;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.message-info {
    flex: 1;
}

.message-name {
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 4px;
}

.message-preview {
    color: #8e8e93;
    font-size: 14px;
    line-height: 1.4;
}

.message-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.message-time {
    color: #8e8e93;
    font-size: 12px;
}

.message-badge {
    background: #ff4444;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Chat Screen */
.chat-screen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 400;
    display: flex;
    flex-direction: column;
}

.chat-header {
    height: 60px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid #e9ecef;
}

.chat-contact {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #007AFF;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.chat-info {
    text-align: center;
}

.chat-name {
    font-weight: 600;
    color: #1d1d1f;
    font-size: 16px;
}

.chat-status {
    font-size: 12px;
    color: #4CAF50;
}

.chat-actions {
    display: flex;
    gap: 15px;
}

.chat-actions i {
    color: #007AFF;
    font-size: 18px;
    cursor: pointer;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
}

.message-bubble {
    max-width: 70%;
    margin-bottom: 15px;
    padding: 12px 16px;
    border-radius: 18px;
    position: relative;
}

.message-bubble.received {
    background: #fff;
    align-self: flex-start;
    margin-right: auto;
}

.message-bubble.sent {
    background: #007AFF;
    color: #fff;
    align-self: flex-end;
    margin-left: auto;
}

.message-text {
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 4px;
}

.message-bubble .message-time {
    font-size: 11px;
    opacity: 0.7;
}

.chat-input {
    height: 60px;
    background: #fff;
    border-top: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 15px;
}

.input-actions {
    display: flex;
    gap: 15px;
}

.input-actions i {
    color: #007AFF;
    font-size: 20px;
    cursor: pointer;
}

.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 10px 0;
}

.send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #007AFF;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.send-btn:hover {
    background: #0056b3;
}

/* Safari App */
.safari-header {
    height: 60px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid #e9ecef;
}

.safari-controls {
    display: flex;
    gap: 15px;
}

.safari-controls i {
    color: #007AFF;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.safari-controls i:hover {
    color: #0056b3;
}

.safari-controls i:disabled {
    color: #c7c7cc;
    cursor: not-allowed;
}

.safari-content {
    height: calc(100% - 60px);
    display: flex;
    flex-direction: column;
}

.address-bar {
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.address-bar-content {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.address-bar-content i {
    color: #8e8e93;
    font-size: 14px;
}

.address-bar-content input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    background: transparent;
}

.browser-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.browser-tabs {
    height: 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.tab-indicator {
    width: 20px;
    height: 4px;
    background: #007AFF;
    border-radius: 2px;
}

.browser-viewport {
    flex: 1;
    position: relative;
}

.browser-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #8e8e93;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007AFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.browser-page {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    overflow-y: auto;
}

.page-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.page-header h1 {
    font-size: 24px;
    color: #1d1d1f;
    margin-bottom: 20px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 24px;
    border: 1px solid #e9ecef;
    max-width: 500px;
    margin: 0 auto;
}

.search-box i {
    color: #8e8e93;
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
}

.search-results {
    padding: 20px;
}

.result-item {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.result-item:hover {
    background: #f8f9fa;
}

.result-item h3 {
    color: #1a0dab;
    font-size: 18px;
    margin-bottom: 8px;
}

.result-item p {
    color: #4d5156;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 8px;
}

.result-url {
    color: #006621;
    font-size: 14px;
}

.safari-toolbar {
    height: 60px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.toolbar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.toolbar-item:hover {
    color: #007AFF;
}

.toolbar-item i {
    font-size: 20px;
}

.toolbar-item span {
    font-size: 10px;
    color: #8e8e93;
}

/* Camera App */
.camera-viewfinder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    position: relative;
    overflow: hidden;
}

/* Camera Header */
.camera-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, transparent 100%);
    z-index: 10;
}

.camera-back-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.camera-back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.camera-modes {
    display: flex;
    gap: 20px;
}

.mode-item {
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.mode-item.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.mode-item:hover {
    background: rgba(255, 255, 255, 0.15);
}

.camera-settings {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.camera-settings:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Camera View */
.camera-view {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.camera-lens {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, #333 0%, #1a1a1a 70%, #000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        inset 0 0 50px rgba(0, 0, 0, 0.8),
        0 0 30px rgba(255, 255, 255, 0.1);
}

.lens-ring {
    position: absolute;
    width: 180px;
    height: 180px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: lensGlow 3s ease-in-out infinite;
}

@keyframes lensGlow {
    0%, 100% { border-color: rgba(255, 255, 255, 0.3); }
    50% { border-color: rgba(255, 255, 255, 0.6); }
}

.lens-center {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, #000 0%, #1a1a1a 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Camera Grid */
.camera-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.grid-line {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
}

.grid-line.horizontal {
    width: 100%;
    height: 1px;
}

.grid-line.horizontal:nth-child(1) { top: 33.33%; }
.grid-line.horizontal:nth-child(2) { top: 66.66%; }

.grid-line.vertical {
    width: 1px;
    height: 100%;
}

.grid-line.vertical:nth-child(3) { left: 33.33%; }
.grid-line.vertical:nth-child(4) { left: 66.66%; }

/* Focus Indicator */
.focus-indicator {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #fff;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.focus-indicator.active {
    opacity: 1;
    animation: focusPulse 1s ease-out;
}

@keyframes focusPulse {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 0; }
}

.focus-ring {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    border: 2px solid #fff;
    animation: focusRotate 2s linear infinite;
}

@keyframes focusRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Camera Info */
.camera-info {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 10px 15px;
}

.camera-stats {
    display: flex;
    gap: 15px;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
}

.camera-stats span {
    opacity: 0.8;
}

/* Camera Controls */
.camera-controls {
    position: absolute;
    bottom: 120px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.control-left, .control-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.flash-control, .timer-control, .camera-switch {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.flash-control:hover, .timer-control:hover, .camera-switch:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.flash-control.active {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
}

.control-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.camera-shutter {
    position: relative;
}

.shutter-ring {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.shutter-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.shutter-inner {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #000;
}

.shutter-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.shutter-btn:active {
    transform: scale(0.95);
    background: #f0f0f0;
}

.gallery-preview {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.gallery-preview:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.preview-image {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background: linear-gradient(45deg, #667eea, #764ba2);
}

/* Camera Bottom Panel */
.camera-bottom {
    position: absolute;
    bottom: 60px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

.zoom-controls {
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.zoom-btn {
    padding: 8px 12px;
    border-radius: 15px;
    background: transparent;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.zoom-btn.active {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.zoom-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Camera Effects Panel */
.camera-effects {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    padding: 0 20px;
}

.effects-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
}

.effect-item {
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: 1px solid transparent;
}

.effect-item.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.effect-item:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Camera Notifications */
.camera-notification {
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 12px 20px;
    color: #fff;
    font-size: 14px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 100;
}

.camera-notification.show {
    opacity: 1;
    animation: notificationSlide 0.5s ease-out;
}

@keyframes notificationSlide {
    from { transform: translateX(-50%) translateY(-20px); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-content i {
    color: #4CAF50;
    font-size: 16px;
}

/* Photos App */
.photos-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.photos-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.photos-actions {
    display: flex;
    gap: 15px;
}

.photos-actions i {
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.photos-actions i:hover {
    transform: scale(1.1);
}

.photos-content {
    padding: 0;
    background: #000;
    height: calc(100vh - 80px);
    overflow-y: auto;
}

.photos-tabs {
    display: flex;
    background: #1a1a1a;
    padding: 0 20px;
    border-bottom: 1px solid #333;
}

.photo-tab {
    padding: 15px 20px;
    color: #888;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
}

.photo-tab.active {
    color: #007AFF;
    border-bottom-color: #007AFF;
}

.photo-tab:hover {
    color: #fff;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    padding: 10px;
}

.photo-item {
    aspect-ratio: 1;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.photo-item:hover {
    transform: scale(1.02);
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
}

.photo-item:hover .photo-overlay {
    opacity: 1;
}

.photo-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.photo-actions i {
    color: white;
    font-size: 14px;
    padding: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    cursor: pointer;
    transition: all 0.2s ease;
}

.photo-actions i:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.photo-actions i.favorite {
    color: #ff4757;
}

.photo-date {
    color: white;
    font-size: 12px;
    font-weight: 500;
}

/* Photo Viewer */
.photo-viewer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.viewer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(20px);
}

.viewer-actions {
    display: flex;
    gap: 15px;
}

.viewer-actions i {
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.viewer-actions i:hover {
    transform: scale(1.1);
}

.viewer-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.viewer-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.viewer-info {
    padding: 20px;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(20px);
}

.photo-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.photo-title {
    color: white;
    font-weight: 600;
}

.photo-size {
    color: #888;
    font-size: 14px;
}

.photo-date-full {
    color: #888;
    font-size: 14px;
}

/* Settings App */
.settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.settings-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.settings-actions {
    display: flex;
    gap: 15px;
}

.settings-actions i {
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.settings-actions i:hover {
    transform: scale(1.1);
}

.settings-content {
    height: calc(100vh - 80px);
    overflow-y: auto;
    background: #f2f2f7;
}

.settings-section {
    margin: 20px 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    backdrop-filter: blur(10px);
}

.profile-info {
    flex: 1;
    position: relative;
    z-index: 1;
}

.profile-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
}

.profile-subtitle {
    font-size: 14px;
    opacity: 0.8;
    display: block;
}

.setting-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
    position: relative;
}

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

.setting-item:hover {
    background-color: #f8f8f8;
}

.setting-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
}

.setting-icon.wifi { background: linear-gradient(135deg, #4CAF50, #45a049); }
.setting-icon.bluetooth { background: linear-gradient(135deg, #2196F3, #1976D2); }
.setting-icon.cellular { background: linear-gradient(135deg, #FF9800, #F57C00); }
.setting-icon.notifications { background: linear-gradient(135deg, #E91E63, #C2185B); }
.setting-icon.sounds { background: linear-gradient(135deg, #9C27B0, #7B1FA2); }
.setting-icon.focus { background: linear-gradient(135deg, #607D8B, #455A64); }
.setting-icon.screen { background: linear-gradient(135deg, #FF5722, #D84315); }
.setting-icon.privacy { background: linear-gradient(135deg, #795548, #5D4037); }
.setting-icon.icloud { background: linear-gradient(135deg, #00BCD4, #0097A7); }
.setting-icon.general { background: linear-gradient(135deg, #FFC107, #FFA000); }
.setting-icon.control { background: linear-gradient(135deg, #8BC34A, #689F38); }

.setting-info {
    flex: 1;
}

.setting-title {
    font-size: 16px;
    color: #1d1d1f;
    font-weight: 500;
    display: block;
}

.setting-subtitle {
    font-size: 14px;
    color: #8e8e93;
    margin-top: 2px;
    display: block;
}

.setting-toggle {
    position: relative;
}

.toggle-switch {
    width: 51px;
    height: 31px;
    background: #e5e5ea;
    border-radius: 16px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.toggle-switch.active {
    background: #34c759;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 27px;
    height: 27px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-switch.active::after {
    transform: translateX(20px);
}

.setting-item i:last-child {
    color: #8e8e93;
    font-size: 14px;
}

/* Music App */
.music-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.music-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.music-actions {
    display: flex;
    gap: 15px;
}

.music-actions i {
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.music-actions i:hover {
    transform: scale(1.1);
}

.music-content {
    height: calc(100vh - 80px);
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    overflow-y: auto;
    padding: 0;
}

.now-playing-section {
    padding: 30px 20px;
    text-align: center;
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    position: relative;
    overflow: hidden;
}

.now-playing-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.now-playing-card {
    position: relative;
    z-index: 1;
}

.album-art {
    width: 250px;
    height: 250px;
    margin: 0 auto 30px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.album-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c);
    border-radius: 20px;
    filter: blur(20px);
    opacity: 0.6;
    animation: albumGlow 3s ease-in-out infinite alternate;
}

@keyframes albumGlow {
    0% { transform: scale(1) rotate(0deg); }
    100% { transform: scale(1.1) rotate(180deg); }
}

.album-cover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: white;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.vinyl-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: #000;
    border-radius: 50%;
    border: 3px solid #333;
    animation: vinylSpin 4s linear infinite;
}

@keyframes vinylSpin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.song-info {
    margin-bottom: 30px;
}

.song-title {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.song-artist {
    font-size: 18px;
    color: #888;
    margin-bottom: 4px;
    font-weight: 500;
}

.song-album {
    font-size: 14px;
    color: #666;
    font-weight: 400;
}

.progress-container {
    margin-bottom: 30px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
    width: 42%;
    transition: width 0.3s ease;
}

.time-info {
    display: flex;
    justify-content: space-between;
    color: #888;
    font-size: 14px;
    font-weight: 500;
}

.music-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.control-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.control-btn i {
    font-size: 20px;
    color: white;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: rgba(255,255,255,0.1);
    transform: scale(1.1);
}

.control-btn.play-pause {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.control-btn.play-pause:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.6);
}

.control-btn.play-pause i {
    font-size: 24px;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.volume-control i {
    color: #888;
    font-size: 16px;
}

.volume-bar {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.volume-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
    width: 70%;
    transition: width 0.3s ease;
}

.playlist-section {
    background: #1a1a1a;
    border-radius: 20px 20px 0 0;
    padding: 30px 20px;
    position: relative;
}

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

.section-header h4 {
    color: white;
    font-size: 20px;
    font-weight: 600;
}

.song-count {
    color: #888;
    font-size: 14px;
    font-weight: 500;
}

.playlist {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.playlist-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.05);
}

.playlist-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(5px);
}

.playlist-item.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.item-number {
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 14px;
    font-weight: 600;
}

.playlist-item.active .item-number {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.item-info {
    flex: 1;
}

.item-title {
    color: white;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
}

.item-artist {
    color: #888;
    font-size: 14px;
}

.item-duration {
    color: #888;
    font-size: 14px;
    font-weight: 500;
}

/* Calculator App */
.calculator-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.calculator-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.calculator-actions {
    display: flex;
    gap: 15px;
}

.calculator-actions i {
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.calculator-actions i:hover {
    transform: scale(1.1);
}

.calculator-content {
    height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    position: relative;
    overflow: hidden;
}

.calculator-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.calculator-display {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px 20px;
    position: relative;
    z-index: 1;
}

.display-history {
    font-size: 18px;
    color: #888;
    text-align: right;
    margin-bottom: 10px;
    min-height: 20px;
    font-weight: 400;
}

.display-current {
    font-size: 64px;
    font-weight: 300;
    color: #fff;
    text-align: right;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    line-height: 1;
}

.calculator-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: #000;
    position: relative;
    z-index: 1;
}

.calc-btn {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.calc-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.calc-btn:hover::before {
    opacity: 1;
}

.calc-btn:active {
    transform: scale(0.95);
}

.calc-btn.number {
    background: #333;
    color: #fff;
}

.calc-btn.function {
    background: #666;
    color: #fff;
}

.calc-btn.operator {
    background: linear-gradient(135deg, #ff9500, #ff8000);
    color: #fff;
    font-weight: 500;
}

.calc-btn.operator:hover {
    background: linear-gradient(135deg, #ffa726, #ff9500);
}

.calc-btn.zero {
    grid-column: span 2;
}

.scientific-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    color: #888;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.scientific-toggle:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.scientific-toggle i {
    font-size: 16px;
}

/* Home Indicator */
.home-indicator {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 134px;
    height: 5px;
    background: #fff;
    border-radius: 3px;
    z-index: 1000;
}

/* Full screen optimizations */
@media (display-mode: fullscreen) {
    .iphone-frame {
        border-radius: 0;
    }
    
    .screen {
        border-radius: 0;
    }
}

/* Prevent zoom on mobile */
@media (max-width: 768px) {
    body {
        touch-action: manipulation;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
}

/* Instructions - Hidden on mobile */
.instructions {
    display: none;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 768px) {
    .iphone-frame {
        width: 100vw;
        height: 100vh;
    }
}

/* Mobile specific optimizations */
@media (max-width: 480px) {
    .app-grid {
        gap: 15px;
    }
    
    .app-icon-bg {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .app-name {
        font-size: 9px;
    }
    
    .dock {
        margin: 0 15px;
        padding: 10px;
    }
    
    .dock-icon {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }
}

/* Animations */
@keyframes slideIn {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.app-screen {
    animation: slideIn 0.3s ease-out;
}

/* Touch Feedback */
.app-icon:active,
.dock-app:active,
.key:active,
.calc-btn:active {
    transform: scale(0.95);
}

/* Smooth Transitions */
* {
    transition: all 0.2s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
} 