@import url('https://fonts.googleapis.com/css2?family=Helvetica+Neue:wght@300;400;500&family=Press+Start+2P&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    user-select: none;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* Site-level header + settings */

.site-header {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    font-size: 12px;
    z-index: 10000;
}

.site-title {
    font-weight: 500;
    letter-spacing: 0.03em;
    color: #444;
}

.site-settings-button {
    border: none;
    background: #e5e5ea;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 12px;
    cursor: pointer;
    line-height: 1;
}

.site-settings-button:active {
    filter: brightness(0.95);
}

.site-settings-panel {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 210px;
    padding: 8px 10px;
    background: #f7f7f7;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
    font-size: 11px;
    z-index: 9999;
    display: none;
}

.site-settings-panel.open {
    display: block;
}

.site-settings-section-title {
    font-weight: 600;
    font-size: 11px;
    color: #555;
    margin-bottom: 6px;
}

.site-setting-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    cursor: pointer;
    color: #333;
}

.site-setting-row input[type="checkbox"] {
    flex-shrink: 0;
}

.device.no-frame {
    background: none;
}

.loading-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at top, #ffffff 0%, #d0d3d8 40%, #9ba0aa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.loading-spinner {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid rgba(0,0,0,0.1);
    border-top-color: #4e8ad0;
    animation: loading-spin 0.8s linear infinite;
}

.loading-text {
    font-size: 12px;
    color: #444;
    text-shadow: 0 1px 0 rgba(255,255,255,0.8);
}

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

.device {
    position: relative;
    background: url('iphone.png') no-repeat center center;
    background-size: contain;
    width: 350px;
    height: 621.25px;
}

.device.ipad-mode {
    background: none;
    width: 420px;
    height: 560px; /* 4:3 aspect ratio (height/width ≈ 1.33) */
}

.device.ipad-mode .screen {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 14px;
    overflow: hidden;
}

.device.ipad-mode .lock-btn {
    display: none;
}

.device.ipad-mode .home-btn {
    display: block;
    width: 40px;
    height: 40px;
    border-width: 3.5px;
    bottom: -45px;
    left: 50%;
    transform: translateX(-60%);
}

.screen {
    position: absolute;
    width: 220px;
    height: 330px;
    top: 143.75px;
    left: 65px;
    background: url('newwallpaper.png') no-repeat center center;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    padding: 0;
}

.status-bar {
    height: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
    padding: 0 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1); 
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3); 
    font-weight: 300; 
}

.status-left {
    display: flex;
    align-items: center;
    gap: 2px;
}

#carrier-text {
    font-weight: 500;
}

.status-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.status-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.wifi-icon, .battery-icon {
    color: #999;
    font-size: 10px;
}

.wifi-icon {
    background: url('wifi.png') no-repeat center center;
    background-size: contain;
    width: 20px;
    height: 10px;
    display: inline-block;
}

.battery-icon {
    background: url('battery.png') no-repeat center center;
    background-size: contain;
    width: 20px;
    height: 10px;
    display: inline-block;
}

.home-screen {
    height: calc(100% - 65px); /* From 200px */
    padding: 10px 4px 4px; /* Top padding from 8px */
    position: relative;
    overflow: hidden;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    transition: transform 0.3s ease;
    position: absolute;
    width: 100%;
    padding: 0 8px;
    padding-left: 0px;
}

.page-1 {
    transform: translateX(0);
}

.page-2 {
    transform: translateX(100%);
}

.page-2.active {
    transform: translateX(0);
}

.page-1.hidden {
    transform: translateX(-100%);
}

.app-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.app-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    position: relative;
    cursor: pointer;
    transition: transform 0.1s ease;
    background: linear-gradient(135deg, #ccc 0%, #999 50%, #666 100%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.app-icon:active {
    transform: scale(0.95);
}

.app-label {
    color: white;
    font-size: 10px;
    text-align: center;
    margin-top: 4px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.page-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.indicator {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.indicator.active {
    background: white;
}

.dock {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 48px;
    padding: 0 8px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: linear-gradient(to bottom, 
        rgba(0,0,0,0.1) 0%,  
        rgba(0,0,0,0.25) 50%, 
        rgba(0,0,0,0.4) 100%
    );
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.1);
    z-index: 5;
    backdrop-filter: blur(10px);
}

.dock::before {
    content: none;
}

.dock-app {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    padding-top: 0;
}

.dock .app-icon {
    width: 36px;
    height: 36px;
    -webkit-box-reflect: below 2px linear-gradient(to bottom, transparent, transparent 50%, rgba(255, 255, 255, 0.25));
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
    margin-bottom: 2px;
}

.dock .app-icon:hover {
    transform: scale(1.1);
    -webkit-box-reflect: below 2px linear-gradient( to bottom, transparent, transparent 40%, rgba(255, 255, 255, 0.35) );
}

.dock-label {
    display: none;
}

.app-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    transform: scale(0);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 100;
}

.app-screen.open {
    transform: scale(1);
    opacity: 1;
}

.app-header {
    height: 44px;
    background: linear-gradient(180deg, #d4d4d4 0%, #b8b8b8 100%);
    border-bottom: 1px solid #999;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.back-btn {
    position: absolute;
    left: 10px;
    background: linear-gradient(180deg, #6d84a3 0%, #4a5d7a 100%);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}

.app-content {
    padding: 20px;
    height: calc(100% - 44px);
    overflow-y: auto;
}

.lock-screen {
    position: absolute;
    top: 20px; 
    left: 0;
    width: 100%;
    height: calc(100% - 20px);
    z-index: 150;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 0;
    transition: opacity 0.5s ease-out;
}

.lock-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.lock-screen-top {
    text-align: center;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    margin-top: 10px;
}

.lock-screen-time {
    font-size: 40px;
    font-weight: 100;
    line-height: 1;
}

.lock-screen-date {
    font-size: 13px;
    font-weight: 300;
    margin-top: 2px;
}

.lock-screen-bottom {
    padding-bottom: 25px;
}

.screen.locked .home-screen,
.screen.locked .dock {
    display: none;
}

.unlock-slider {
    position: relative;
    bottom: -35px;
    width: 95%;
    height: 50px;
    background: rgba(0,0,0,0.3);
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.2), 0 1px 0 rgba(255,255,255,0.1);
    margin: 0 auto;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.slider-track {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #eee;
    font-size: 16px;
    font-weight: 200;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.unlock-text-container {
    position: absolute;
    width: 95%;
    text-align: right;
    z-index: 1; 
    font-size: 12px; 
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    
    /* Shine effect - toned down */
    -webkit-mask-image: linear-gradient(-75deg, 
        rgba(0,0,0,0.3) 30%, 
        rgba(0,0,0,0.8) 50%, 
        rgba(0,0,0,0.3) 70%
    );
    -webkit-mask-size: 200%;
    animation: shine 2s linear infinite;
}

.slider-thumb {
    position: absolute;
    left: 2px;
    top: 2px;
    width: 46px;
    height: 46px;
    background: linear-gradient(180deg, #f0f0f0, #c0c0c0);
    border-radius: 4px;
    cursor: grab;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 30px;
    font-weight: 300;
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
    touch-action: none;
}
.slider-thumb:active {
    cursor: grabbing;
}

.lock-btn {
    position: absolute;
    top: 81.75px;
    right: 96px;
    width: 35.5px;
    height: 2.5px;
    background: #333;
    border: 1px solid #111;
    border-radius: 2px;
    cursor: pointer;
}

.home-btn {
    position: absolute;
    bottom: 93.75px;
    left: 50%;
    transform: translateX(-50%);
    width: 25px;
    height: 25px;
    background: radial-gradient(circle, #333 0%, #111 100%);
    border-radius: 50%;
    border: 2.5px solid #666;
    cursor: pointer;
    transition: all 0.1s ease;
    z-index: 200;
}

.home-btn:active {
    transform: translateX(-50%) scale(0.95);
}

.phone-icon { 
    background: url('phone (1).png') no-repeat center center;
    background-size: cover;
}
.mail-icon { 
    background: url('mail.png') no-repeat center center;
    background-size: cover;
}
.safari-icon { 
    background: url('safari.png') no-repeat center center;
    background-size: cover;
}
.ipod-icon { 
    background: url('music (1).png') no-repeat center center;
    background-size: cover;
}
.messages-icon { 
    background: url('messages.png') no-repeat center center;
    background-size: cover;
}
.calendar-icon { background: linear-gradient(135deg, #F44336 0%, #C62828 100%); }
.photos-icon { 
    background: url('gallery.png') no-repeat center center;
    background-size: cover;
}
.camera-icon { 
    background: url('camera.png') no-repeat center center;
    background-size: cover;
}
.settings-icon { 
    background: url('settings (1).png') no-repeat center center;
    background-size: cover;
}
.notes-icon { 
    background: url('notes (1).png') no-repeat center center;
    background-size: cover;
}
.maps-icon { 
    background: url('maps.png') no-repeat center center;
    background-size: cover;
}
.stocks-icon { 
    background: url('stocks.png') no-repeat center center;
    background-size: cover;
}
.weather-icon { 
    background: url('weather.png') no-repeat center center;
    background-size: cover;
}
.clock-icon { background: linear-gradient(135deg, #795548 0%, #3E2723 100%); }
.calculator-icon { 
    background: url('calculator (1).png') no-repeat center center;
    background-size: cover;
}
.youtube-icon { 
    background: url('youtube.png') no-repeat center center;
    background-size: cover;
}

.instagram-icon { 
    background: url('instagram.png') no-repeat center center;
    background-size: cover;
}

.vine-icon {
    background: url('Vine_logo.svg.png') no-repeat center center;
    background-size: cover;
}

.appstore-icon { 
    background: url('appstore.png') no-repeat center center;
    background-size: cover;
}

.info-icon { 
    background: url('info_icon.png') no-repeat center center;
    background-size: cover;
}

.flappybird-icon { 
    background: url('FlappyBird.png') no-repeat center center;
    background-size: cover;
}

.chess-icon { 
    background: url('chess_icon.png') no-repeat center center;
    background-size: cover;
}

.leaderboard-icon {
    background: linear-gradient(135deg, #FFD54F 0%, #F9A825 50%, #F57F17 100%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.6);
    position: relative;
}
.leaderboard-icon::before {
    content: "★";
    font-size: 18px;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.info-content {
    padding: 20px;
    background: #f7f7f7;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    height: calc(100% - 44px);
    overflow-y: auto;
}

.instagram-content {
    padding: 0;
    height: 100%; 
    display: flex;
    flex-direction: column;
    background: #EFEFF4;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 1px,
            rgba(0,0,0,0.02) 1px,
            rgba(0,0,0,0.02) 2px
        );
}

.instagram-header-bar {
    height: 44px;
    background: linear-gradient(180deg, #A0522D 0%, #654321 100%);
    border-bottom: 1px solid #4A2C17;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
    color: white;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: bold;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    flex-shrink: 0;
}

.header-icon {
    font-size: 16px;
    cursor: pointer;
    opacity: 0.8;
}

.header-title {
    font-size: 18px;
    font-weight: 500;
}

.instagram-feed {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    background: #F8F8F8; 
}

.feed-message {
    text-align: center;
    color: #666;
    font-size: 10px;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.feed-post {
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.post-header {
    display: flex;
    align-items: center;
    padding: 8px;
    gap: 8px;
    border-bottom: 1px solid #eee;
}

.post-avatar {
    width: 24px;
    height: 24px;
    background: linear-gradient(45deg, #ccc, #aaa); 
    border-radius: 50%;
    border: 1px solid #bbb;
}

.post-username {
    font-weight: bold;
    font-size: 11px;
    color: #333;
}

.post-image {
    width: calc(100% - 2px); 
    aspect-ratio: 1; 
    background: linear-gradient(135deg, #eee 0%, #ddd 100%); 
    margin: 1px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.post-image.travel-image {
    background: url('bliss.jpg') center/cover;
}

.post-image.food-image {
    background: url('gallery.png') center/cover;
}

.post-image.pet-image {
    background: url('asset_name.png') center/cover;
}

.post-actions {
    padding: 8px;
    font-size: 10px;
    color: #666;
    display: flex;
    gap: 12px;
    border-bottom: 1px solid #eee;
    margin-bottom: 4px;
}

.post-actions span {
    cursor: pointer;
    transition: color 0.1s ease;
}

.post-actions span:active {
    color: #007AFF;
}

.post-caption {
    padding: 0 8px;
    font-size: 10px;
    color: #333;
    line-height: 1.4;
}

.instagram-tab-bar {
    height: 44px;
    background: linear-gradient(180deg, #A0522D 0%, #654321 100%);
    border-top: 1px solid #4A2C17;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 2px;
    flex-shrink: 0;
}

.instagram-tab-bar .tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    cursor: pointer;
    padding: 4px 0;
    transition: all 0.2s ease;
    border-radius: 4px;
    position: relative;
}

.instagram-tab-bar .tab-item.active {
    background: rgba(255,255,255,0.1);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.3);
}

.instagram-tab-bar .tab-icon {
    font-size: 16px;
    color: white;
    margin-bottom: 2px;
    text-shadow: 0 1px 1px rgba(0,0,0,0.5);
}

.instagram-tab-bar .tab-label {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 300;
    font-size: 8px;
    color: white;
    text-shadow: 0 1px 1px rgba(0,0,0,0.5);
}

/* Vine app */

.vine-content {
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #00bf8f;
    background: linear-gradient(180deg, #00bf8f 0%, #008f6b 100%);
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.vine-header-bar {
    height: 44px;
    background: rgba(0,0,0,0.15);
    border-bottom: 1px solid rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
}

.vine-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.vine-segmented-control {
    display: flex;
    padding: 6px;
    gap: 2px;
    background: rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.vine-segment {
    flex: 1;
    text-align: center;
    padding: 4px 0;
    font-size: 10px;
    font-weight: 600;
    color: #e0fff7;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.35);
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.35) 100%);
    text-shadow: 0 1px 1px rgba(0,0,0,0.6);
}

.vine-segment.active {
    background: linear-gradient(180deg, #ffffff 0%, #d4f7ee 100%);
    color: #008f6b;
    text-shadow: none;
}

.vine-feed {
    flex: 1;
    overflow-y: auto;
    padding: 6px;
    background: rgba(0,0,0,0.15);
}

.vine-post {
    background: rgba(255,255,255,0.96);
    border-radius: 6px;
    margin-bottom: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.25);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.1);
}

.vine-post-header {
    display: flex;
    align-items: center;
    padding: 6px;
    gap: 6px;
}

.vine-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffffff 0%, #00bf8f 40%, #008f6b 100%);
    border: 1px solid rgba(0,0,0,0.15);
}

.vine-user-meta {
    display: flex;
    flex-direction: column;
}

.vine-username {
    font-size: 11px;
    font-weight: 600;
    color: #222;
}

.vine-timestamp {
    font-size: 9px;
    color: #888;
}

.vine-video-wrapper {
    width: 100%;
    background: #000;
    position: relative;
}

.vine-video-wrapper::before {
    content: '';
    display: block;
    padding-top: 100%;
}

.vine-video-wrapper video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

.vine-caption {
    padding: 6px;
    font-size: 10px;
    color: #333;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.weather-content {
    padding: 0;
    background: #283444;
    background-image: 
        linear-gradient(rgba(0,0,0,0.05) 50%, transparent 50%),
        linear-gradient(90deg, rgba(0,0,0,0.05) 50%, transparent 50%);
    background-size: 2px 2px;
    position: relative;
    overflow: hidden;
    color: white;
    text-shadow: 0 1px 1px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.weather-page {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    padding-bottom: 0;
}

/* Hide scrollbar but keep scroll behavior in Weather */
.weather-page::-webkit-scrollbar {
    display: none;
}
.weather-page {
    scrollbar-width: none;
}

.weather-widget {
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 10px;
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 1px 5px rgba(0,0,0,0.3);
}

.weather-widget .location {
    font-size: 20px;
    font-weight: 500;
}

.weather-widget .condition {
    font-size: 12px;
    opacity: 0.8;
}

.weather-widget .temperature {
    font-size: 64px;
    font-weight: 100;
    margin: 2px 0;
    line-height: 1;
}

.weather-widget .high-low {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    padding: 0 5px;
}

.weather-widget .high-low .day {
    font-weight: 300;
}

.weather-widget .high-low .high {
    font-weight: 500;
}
.weather-widget .high-low .low {
    opacity: 0.7;
}

.hourly-forecast {
    margin-top: 10px;
    display: flex;
    overflow-x: auto;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.1);
    -webkit-overflow-scrolling: touch;
}

.hour-item {
    padding: 8px;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.1);
    min-width: 45px;
}

.hour-item:last-child {
    border-right: none;
}

.hour-item .time {
    font-size: 9px;
    font-weight: bold;
}

.hour-item .icon {
    font-size: 18px;
    margin: 4px 0;
}

.hour-item .temp {
    font-size: 12px;
    font-weight: 500;
}

.daily-forecast {
    margin-top: 5px;
    padding: 0 5px;
}

.daily-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 12px;
}

.daily-item .day {
    flex: 1;
    font-weight: 500;
}
.daily-item .icon {
    flex: 0 0 30px;
    font-size: 18px;
    text-align: center;
}
.daily-item .temps {
    flex: 1;
    text-align: right;
}
.daily-item .temps .high {
    font-weight: 500;
    margin-right: 8px;
}
.daily-item .temps .low {
    opacity: 0.7;
}

.weather-bottom-toolbar {
    height: 35px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    border-top: 1px solid rgba(0,0,0,0.4);
    background: rgba(0,0,0,0.2);
}

.weather-brand {
    width: 35px;
    height: 18px;
    background: url(https://upload.wikimedia.org/wikipedia/commons/thumb/a/a2/Yahoo%21_icon.svg/1024px-Yahoo%21_icon.svg.png) no-repeat center center;
    background-size: contain;
    opacity: 0.6;
}

.weather-page-indicators {
    display: flex;
    gap: 5px;
}

.weather-page-indicators .dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
}

.weather-page-indicators .dot.active {
    background: white;
}

.weather-info-button {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #007aff;
    color: white;
    text-align: center;
    line-height: 18px;
    font-style: italic;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Times New Roman', serif;
    font-size: 14px;
    border: 1px solid rgba(0,0,0,0.3);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    padding: 10px;
    background: #f7f7f7;
    height: calc(100% - 44px);
    overflow-y: auto;
}

.photos-header {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 300;
    font-size: 20px;
    color: #255;
    margin-bottom: 10px;
    padding: 0 5px;
}

.photo-thumbnail {
    aspect-ratio: 1;
    background: white;
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2), 0 1px 2px rgba(0,0,0,0.1);
    position: relative;
}

.photo-thumbnail:active {
    box-shadow: 0 0 0 3px #4E9EF1;
}

.photo-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(0,0,0,0.1) 100%);
    pointer-events: none;
}

.photo-viewer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f7f7f7;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 1px,
            rgba(0,0,0,0.02) 1px,
            rgba(0,0,0,0.02) 2px
        );
    z-index: 200;
    display: none;
    flex-direction: column;
}

.photo-viewer.active {
    display: flex;
}

.photo-nav-bar {
    height: 44px;
    background: linear-gradient(180deg, #B4B4B4 0%, #7F7F7F 100%);
    border-bottom: 1px solid #666;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    position: relative;
}

.photo-back-btn {
    background: linear-gradient(180deg, #6d84a3 0%, #4a5d7a 100%);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 4px;
}

.photo-back-btn:active {
    background: linear-gradient(180deg, #4a5d7a 0%, #6d84a3 100%);
}

.photo-action-btn {
    background: linear-gradient(180deg, #6d84a3 0%, #4a5d7a 100%);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.photo-action-btn:active {
    background: linear-gradient(180deg, #4a5d7a 0%, #6d84a3 100%);
}

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

.photo-display img {
    max-width: 140%;
    max-height: 140%;
    border-radius: 3px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.photo-filmstrip {
    height: 40px;
    background: linear-gradient(180deg, #B4B4B4 0%, #7F7F7F 100%);
    border-top: 1px solid #666;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.photo-filmstrip.hidden {
    opacity: 0;
}

.filmstrip-indicator {
    display: flex;
    gap: 4px;
    align-items: center;
}

.filmstrip-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    transition: background-color 0.3s ease;
}

.filmstrip-dot.active {
    background: white;
}

.photo-controls {
    transition: opacity 0.3s ease;
}

.photo-controls.hidden {
    opacity: 0;
    pointer-events: none;
}

.notes-content {
    padding: 0;
    background: #FFCC33;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.notes-list {
    height: calc(100% - 44px);
    overflow-y: auto;
    background: #FFCC33;
}

/* Hide scrollbar in Notes app while preserving scrolling behavior */
.notes-list::-webkit-scrollbar {
    display: none;
}
.notes-list {
    scrollbar-width: none;
}

.note-editor-content {
    height: calc(100% - 88px);
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notes-nav-bar {
    height: 44px;
    background: linear-gradient(180deg, #8B4513 0%, #654321 100%);
    border-bottom: 1px solid #4A2C17;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    position: relative;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}

.notes-title {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: bold;
    font-size: 20px;
    color: white;
    text-shadow: 0 1px 2px rgba(255,255,255,0.5);
}

.notes-add-btn {
    background: linear-gradient(180deg, #A0522D 0%, #654321 100%);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.notes-add-btn:active {
    background: linear-gradient(180deg, #654321 0%, #A0522D 100%);
}

.note-item {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    cursor: pointer;
    transition: background-color 0.2s ease;
    background: rgba(255,255,255,0.1);
}

.note-item:active {
    background: rgba(0,0,0,0.1);
}

.note-title {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 500;
    font-size: 17px;
    color: #333;
    margin-bottom: 4px;
    text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}

.note-preview {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 300;
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
    text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}

.note-date {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 300;
    font-size: 12px;
    color: #666;
    text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}

.note-editor {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #FFCC33;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 50;
}

.note-editor.active {
    transform: translateX(0);
}

.note-editor-nav {
    height: 44px;
    background: linear-gradient(180deg, #8B4513 0%, #654321 100%);
    border-bottom: 1px solid #4A2C17;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}

.note-back-btn {
    background: linear-gradient(180deg, #A0522D 0%, #654321 100%);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 4px;
}

.note-back-btn:active {
    background: linear-gradient(180deg, #654321 0%, #A0522D 100%);
}

.note-done-btn {
    background: linear-gradient(180deg, #A0522D 0%, #654321 100%);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.note-done-btn:active {
    background: linear-gradient(180deg, #654321 0%, #A0522D 100%);
}

.note-editor-content {
    height: calc(100% - 88px);
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.note-title-input {
    background: transparent;
    border: none;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: bold;
    font-size: 17px;
    color: #333;
    padding: 0;
    outline: none;
    text-shadow: 0 1px 0 rgba(255,255,255,0.5);
    border-bottom: 1px solid rgba(0,0,0,0.2);
    padding-bottom: 8px;
}

.note-title-input::placeholder {
    color: #666;
}

.note-body-input {
    background: transparent;
    border: none;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 300;
    font-size: 17px;
    color: #333;
    padding: 0;
    outline: none;
    resize: none;
    flex: 1;
    text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}

.note-body-input::placeholder {
    color: #666;
}

.note-toolbar {
    height: 44px;
    background: linear-gradient(180deg, #8B4513 0%, #654321 100%);
    border-top: 1px solid #4A2C17;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}

.toolbar-btn {
    background: linear-gradient(180deg, #A0522D 0%, #654321 100%);
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
    font-weight: bold;
}

.toolbar-btn:active {
    background: linear-gradient(180deg, #654321 0%, #A0522D 100%);
}

.appstore-header {
    background: linear-gradient(180deg, #B4B4B4 0%, #7F7F7F 100%);
    color: #333;
    border-bottom: 1px solid #666;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
    text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}

.appstore-content {
    padding: 0;
    background: #EFEFF4;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 1px,
            rgba(0,0,0,0.02) 1px,
            rgba(0,0,0,0.02) 2px
        );
    height: calc(100% - 44px);
    overflow-y: auto;
    font-size: 12px;
}

/* Hide scrollbar but keep scroll behavior in App Store main view */
.appstore-content::-webkit-scrollbar {
    display: none;
}
.appstore-content {
    scrollbar-width: none;
}

.appstore-search-bar {
    padding: 8px 10px 4px;
    background: #EFEFF4;
}

.appstore-search-bar input {
    width: 100%;
    height: 28px;
    border-radius: 14px;
    border: 1px solid #BDBDBD;
    background-color: #E5E5E5;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 12px;
    color: #333;
    padding: 0 10px 0 28px;
    outline: none;
}

.appstore-search-bar input::placeholder {
    color: #8E8E93;
    text-align: center;
    padding-right: 28px;
}

.appstore-search-bar input:focus::placeholder {
    text-align: left;
}

.appstore-tab-bar {
    height: 32px;
    background: linear-gradient(180deg, #B4B4B4 0%, #7F7F7F 100%);
    border-top: 1px solid #666;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 2px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.tab-item {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    font-size: 8px;
    color: #333;
    padding: 4px 2px;
    text-align: center;
    cursor: pointer;
    transition: color 0.2s ease;
    border-radius: 3px;
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(0,0,0,0.1) 100%);
    border: 1px solid rgba(0,0,0,0.2);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    flex: 1;
}

.appstore-featured {
    padding: 8px;
    padding-bottom: 40px;
}

.featured-banner {
    background: linear-gradient(180deg, #007AFF 0%, #004AFF 100%);
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 12px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.banner-title {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: bold;
    font-size: 14px;
    color: white;
    margin-bottom: 3px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.banner-subtitle {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 300;
    font-size: 10px;
    color: rgba(255,255,255,0.8);
    text-shadow: 0 1px 1px rgba(0,0,0,0.3);
}

.app-cards {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.app-card {
    background: white;
    border-radius: 6px;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.1);
}

.app-card-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    position: relative;
}

.app-card-icon img {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    -webkit-box-reflect: below 1px -webkit-linear-gradient(bottom, rgba(255,255,255,0.3) 0%, transparent 50%);
}

.app-card-info {
    flex: 1;
    min-width: 0;
}

.app-card-title {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 500;
    font-size: 11px;
    color: #333;
    margin-bottom: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-card-category {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 300;
    font-size: 9px;
    color: #8E8E93;
    margin-bottom: 2px;
}

.app-card-rating {
    font-size: 8px;
    color: #FFD700;
}

.app-card-price {
    flex-shrink: 0;
}

.price-tag {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 500;
    font-size: 8px;
    padding: 3px 6px;
    border-radius: 8px;
    text-align: center;
    min-width: 32px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.price-tag.free {
    background: linear-gradient(180deg, #4CD964 0%, #2DBE4F 100%);
    color: white;
    border: 1px solid #2DBE4F;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.price-tag.paid {
    background: linear-gradient(180deg, #FF9500 0%, #E6820A 100%);
    color: white;
    border: 1px solid #E6820A;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.price-tag:active {
    transform: scale(0.95);
}

.settings-header {
    background: linear-gradient(180deg, #B4B4B4 0%, #7F7F7F 100%);
    color: #333;
    border-bottom: 1px solid #666;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
    text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}

.settings-content {
    background: #C7CDD4;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 1px,
            rgba(0,0,0,0.02) 1px,
            rgba(0,0,0,0.02) 2px
        );
    padding: 0;
    height: calc(100% - 44px);
    overflow-y: auto;
}

/* Hide scrollbar but keep scroll behavior in Settings */
.settings-content::-webkit-scrollbar {
    display: none;
}
.settings-content {
    scrollbar-width: none;
}

.settings-section {
    margin-bottom: 35px;
}

.settings-section-header {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: bold;
    font-size: 11px;
    color: #4C566C;
    padding: 22px 15px 10px 15px;
    text-shadow: 0 1px 0 rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.settings-group {
    background: white;
    border-top: 1px solid #B2B2B2;
    border-bottom: 1px solid #B2B2B2;
    box-shadow: 0 1px 0 rgba(255,255,255,0.8);
    margin: 0 10px;
    border-radius: 10px;
    overflow: hidden;
}

.settings-cell {
    border-bottom: 1px solid #E1E1E1;
    background: white;
    cursor: pointer;
    transition: background-color 0.2s ease;
    position: relative;
}

.settings-cell:last-child {
    border-bottom: none;
}

.settings-cell:active {
    background: rgba(0,0,0,0.05);
}

.settings-cell-content {
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    font-size: 17px;
    color: #333;
    text-shadow: 0 1px 0 rgba(255,255,255,0.8);
}

.settings-detail {
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-text {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 300;
    font-size: 12px;
    color: #3C7DC4;
}

.disclosure-indicator {
    font-size: 18px;
    color: #C7C7CC;
    font-weight: 300;
}

.toggle-switch {
    position: relative;
    width: 51px;
    height: 31px;
    background: linear-gradient(180deg, #E5E5E5 0%, #F7F7F7 100%);
    border: 1px solid #D1D1D1;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.3);
}

.toggle-switch.active {
    background: linear-gradient(180deg, #4CD964 0%, #2DBE4F 100%);
    border: 1px solid #2DBE4F;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

.toggle-thumb {
    position: absolute;
    top: 1px;
    left: 1px;
    width: 27px;
    height: 27px;
    background: linear-gradient(180deg, #FFFFFF 0%, #E5E5E5 100%);
    border: 1px solid #D1D1D1;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.toggle-switch.active .toggle-thumb {
    transform: translateX(11px);
    background: linear-gradient(180deg, #FFFFFF 0%, #F7F7F7 100%);
    border: 1px solid #FFFFFF;
}


.phone-content {
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #f0f0f0;
}

#phone-screen {
    background: url('newwallpaper.png') no-repeat center center;
    background-size: cover;
    box-shadow: inset 0 1px 1px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.phone-header-bar {
    height: 44px;
    background: linear-gradient(180deg, #d4d4d4 0%, #b8b8b8 100%);
    border-bottom: 1px solid #999;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.phone-header-title {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: bold;
    font-size: 16px;
    color: #4a4a4a;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.phone-add-button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(180deg, #d4d4d4 0%, #b8b8b8 100%);
    border: 1px solid #999;
    border-radius: 4px;
    width: 28px;
    height: 28px;
    font-size: 20px;
    font-weight: 300;
    color: #007aff;
    cursor: pointer;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.phone-add-button:active {
    background: linear-gradient(180deg, #b8b8b8 0%, #d4d4d4 100%);
}

.phone-content-container {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.phone-view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    overflow-y: auto;
}

.phone-view.active {
    display: block;
}

#phone-view-keypad {
    display: none;
    flex-direction: column;
    padding: 10px 5px;
    gap: 8px;
    justify-content: space-around;
}

#phone-view-keypad.active {
    display: flex;
}

.phone-info-text {
    text-align: center;
    margin-top: 40px;
    color: #666;
    font-size: 14px;
    text-shadow: 0 1px 0 white;
}

.phone-tab-bar {
    height: 44px;
    background: linear-gradient(180deg, #333 0%, #1a1a1a 100%);
    border-top: 1px solid #444;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    padding: 0 2px;
    flex-shrink: 0;
}

.phone-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    cursor: pointer;
    position: relative;
    color: #999;
}

.phone-tab:active {
    background-color: rgba(255, 255, 255, 0.1);
}

.phone-tab.active {
    color: white;
    background-image: linear-gradient(to top, rgba(0, 122, 255, 0.5) 0%, rgba(0, 122, 255, 0) 60%);
}

.phone-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #007AFF;
    box-shadow: 0 0 5px #007AFF;
}

.phone-tab-icon {
    font-size: 16px;
    margin-bottom: 2px;
}

.phone-tab-label {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    font-size: 8px;
}

#phone-screen .phone-display-area {
    height: 40px;
    background: #e0e0e0;
    border: 1px solid #c0c0c0;
    border-radius: 5px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 10px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

#phone-screen .phone-display {
    font-family: 'Helvetica Neue', monospace;
    font-size: 24px;
    color: #333;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    width: 100%;
    line-height: 1;
}

#phone-screen .phone-keypad {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 5px;
    align-items: center;
    justify-content: center;
}

#phone-screen .keypad-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

#phone-screen .keypad-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(180deg, #F7F7F7 0%, #E5E5E5 100%);
    border: 1px solid #CCCCCC;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.1s ease;
}

#phone-screen .keypad-btn:active {
    transform: scale(0.9);
    filter: brightness(0.95);
}

#phone-screen .keypad-number {
    font-size: 22px;
    font-weight: 300;
    color: #333;
    text-shadow: 0 1px 0 rgba(255,255,255,0.8);
}

#phone-screen .keypad-letters {
    font-size: 7px;
    color: #666;
    text-shadow: 0 1px 0 rgba(255,255,255,0.8);
    margin-top: -3px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

#phone-screen .phone-call-actions {
    display: flex;
    justify-content: center;
    padding: 5px;
    flex-shrink: 0;
}

#phone-screen .call-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(180deg, #4CD964 0%, #2DBE4F 100%);
    border: 1px solid #2DBE4F;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#phone-screen .call-button:active {
    transform: scale(0.9);
}

#phone-screen .call-icon {
    font-size: 22px;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.calculator-content {
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #4C566C;
}

.calc-display-container {
    height: 25%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 10px;
    padding-bottom: 5px;
}

.calc-display {
    color: white;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 200;
    font-size: 44px;
    text-align: right;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    transform: scale(1);
    transform-origin: right;
    transition: transform 0.1s ease-in-out;
}

.calculator-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 1px;
    background-color: #3b4354;
}

.calc-btn {
    border: none;
    font-size: 20px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 300;
    margin: 0;
    padding: 0;
    transition: filter 0.1s ease;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), inset 0 -1px 0 rgba(0,0,0,0.1);
}

.calc-btn:active {
    filter: brightness(1.2);
}

.calc-btn.function {
    background: linear-gradient(180deg, #818a99, #6a7383);
    color: white;
    font-weight: 400;
}

.calc-btn.operator {
    background: linear-gradient(180deg, #f7ab48, #f59120);
    font-size: 24px;
}
.calc-btn.operator:active {
    background: linear-gradient(180deg, #f59120, #f7ab48);
}

.calc-btn.number {
    background: linear-gradient(180deg, #a0a7b4, #8d95a4);
    color: #3b4354;
    font-weight: 400;
}

.calc-btn.zero {
    grid-column: 1 / 3;
    justify-content: flex-start;
    padding-left: 15px;
}

.youtube-content {
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #1F1F1F;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.youtube-header-bar {
    height: 44px;
    background: linear-gradient(180deg, #5998df 0%, #3a7bd5 100%);
    border-bottom: 1px solid #2e61a4;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-bottom: 1px solid #666;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);
}

.youtube-logo {
    height: 22px;
}

.youtube-segmented-control {
    display: flex;
    justify-content: center;
    padding: 8px;
    background: #1F1F1F;
    flex-shrink: 0;
}

.youtube-segment {
    flex: 1;
    text-align: center;
    padding: 5px;
    font-size: 10px;
    font-weight: bold;
    color: white;
    text-shadow: 0 -1px 0 #000;
    background: linear-gradient(180deg, #444 0%, #222 100%);
    border: 1px solid #111;
    cursor: pointer;
}

.youtube-segment:first-child {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    border-right: none;
}
.youtube-segment:last-child {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    border-left: none;
}

.youtube-segment.active {
    background: linear-gradient(180deg, #2d60a2 0%, #20457b 100%);
}

.youtube-video-list {
    flex: 1;
    overflow-y: auto;
    padding: 0 5px;
}

.youtube-video-cell {
    display: flex;
    padding: 5px;
    background: #E5E5E5;
    border-radius: 5px;
    margin-bottom: 5px;
    gap: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.5);
    border: 1px solid #555;
}

.video-thumbnail {
    width: 60px;
    height: 45px;
    background-color: #ccc;
    background-image: url('https://source.unsplash.com/random/120x90?music');
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-thumbnail.cat-video {
    background-image: url('https://source.unsplash.com/random/120x90?cat');
}

.video-thumbnail.space-video {
    background-image: url('https://source.unsplash.com/random/120x90?space');
}

.rick-video {
    background-image: url('https://source.unsplash.com/random/120x90?music,80s');
}

.charlie-video {
    background-image: url('https://source.unsplash.com/random/120x90?child,cute');
}

.play-button-overlay {
    width: 24px;
    height: 24px;
    opacity: 0.8;
}

.video-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.video-title {
    font-size: 11px;
    font-weight: bold;
}

.video-details {
    font-size: 9px;
    color: #666;
}

.progress-bar-container {
    height: 3px;
    background: #bbb;
    border-radius: 1.5px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: #CC181E;
    border-radius: 1.5px;
}

.youtube-bottom-toolbar {
    height: 40px;
    background: linear-gradient(180deg, #d4d4d4 0%, #b8b8b8 100%);
    border-top: 1px solid #999;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-shrink: 0;
}

.youtube-toolbar-item {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.youtube-toolbar-item img {
    height: 24px;
}

.tab-count {
    position: absolute;
    font-size: 10px;
    color: #666;
    text-shadow: 0 1px 0 white;
}

.messages-content {
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: white;
    box-shadow: inset 0 1px 1px rgba(0,0,0,0.1);
}

.message-thread-view {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #d1d5db;
    background-image: 
        linear-gradient(45deg, rgba(0,0,0,0.02) 25%, transparent 25%, transparent 75%, rgba(0,0,0,0.02) 75%, rgba(0,0,0,0.02));
    background-size: 2px 2px;
}

.messages-header-bar {
    height: 44px;
    background: linear-gradient(180deg, #5998df 0%, #3a7bd5 100%);
    border-bottom: 1px solid #2e61a4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.messages-title {
    color: white;
    font-size: 17px;
    font-weight: bold;
    text-shadow: 0 -1px 0 rgba(0,0,0,0.4);
}

.messages-title.thread-title {
    flex: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 5px;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
}

.messages-edit-btn, .messages-back-btn, .thread-contact-btn {
    background: linear-gradient(180deg, #4e8ad0 0%, #3a74bb 100%);
    border: 1px solid #2d5a99;
    border-radius: 5px;
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 6px 10px;
    cursor: pointer;
    box-shadow: 0 1px 0 rgba(0,0,0,0.1);
    text-shadow: 0 -1px 0 rgba(0,0,0,0.3);
}

.messages-back-btn {
    padding-left: 0;
    padding-right: 5px;
    display: flex;
    align-items: center;
}

.messages-back-btn .back-arrow {
    font-size: 22px;
    font-weight: 300;
    margin-right: 2px;
    margin-left: 2px;
}

.messages-new-btn {
    width: 28px;
    height: 28px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M20.71,7.04C21.1,6.65,21.1,6,20.71,5.63L18.37,3.29C18,2.9,17.35,2.9,16.96,3.29L15.13,5.12L18.88,8.87M3,17.25V21H6.75L17.81,9.94L14.06,6.19L3,17.25Z"></path></svg>') no-repeat center center;
    background-size: 18px 18px;
    border: none;
    opacity: 0.9;
    background-color: transparent;
    border: 1px solid #2d5a99;
    border-radius: 5px;
    box-shadow: 0 1px 0 rgba(0,0,0,0.1);
    background-image: linear-gradient(180deg, #4e8ad0 0%, #3a74bb 100%);
}

.messages-list {
    flex: 1;
    overflow-y: auto;
    background: white;
}

.conversation-cell {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    background: white;
    border-bottom: 1px solid #C8C7CC;
    cursor: pointer;
    gap: 10px;
    position: relative;
}

.conversation-cell:active {
    background: #E5E5E5;
}

.contact-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #ccc;
}

.cell-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-name {
    font-weight: bold;
    font-size: 14px;
    color: #000;
}

.message-preview {
    font-size: 11px;
    color: #8E8E93;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cell-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #3875D7;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.timestamp {
    white-space: nowrap;
}

.message-bubbles-container {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: transparent; 
}

.message-bubble {
    padding: 8px 12px;
    border-radius: 18px;
    max-width: 80%;
    font-size: 12px;
    line-height: 1.35;
    box-shadow: 0 1px 1px rgba(0,0,0,0.2);
    position: relative;
    word-wrap: break-word;
}

.message-bubble.received {
    background: white;
    color: #000;
    align-self: flex-start;
    border: 1px solid #c8c8c8;
}

.message-bubble.received::before {
    content: "";
    position: absolute;
    bottom: 3px;
    left: -4px;
    width: 8px;
    height: 8px;
    background: white;
    border-left: 1px solid #c8c8c8;
    border-bottom: 1px solid #c8c8c8;
    transform: rotate(45deg);
}

.message-bubble.sent {
    background: linear-gradient(to bottom, #53d369, #44cc5b);
    color: white;
    align-self: flex-end;
    border: 1px solid #3aa54c;
    text-shadow: 0 -1px 0 rgba(0,0,0,0.15);
}

.message-bubble.sent::before {
    content: "";
    position: absolute;
    bottom: 3px;
    right: -4px;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #44cc5b, #53d369);
    border-right: 1px solid #3aa54c;
    border-top: 1px solid #3aa54c;
    transform: rotate(45deg);
}

.message-bubble.typing {
    background: white;
    color: #000;
    align-self: flex-start;
    border: 1px solid #c8c8c8;
    padding: 10px 14px;
}

.typing-indicator span {
    height: 8px;
    width: 8px;
    background-color: #999;
    border-radius: 50%;
    display: inline-block;
    animation: typing-bounce 1.3s infinite;
}

.typing-indicator span:nth-of-type(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-of-type(3) {
    animation-delay: 0.4s;
}

@keyframes typing-bounce {
  0%, 60%, 100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-4px);
  }
}

.message-input-area {
    height: 44px;
    background: linear-gradient(to top, #d7d7d7, #b8b8b8);
    border-top: 1px solid #999;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 6px;
    gap: 6px;
}

.message-input-area input {
    flex: 1;
    min-width: 0;
    height: 32px;
    border: 1px solid #a4a4a4;
    border-radius: 16px;
    padding: 0 12px;
    font-size: 14px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.15);
    background: white;
}

.message-input-area button {
    flex-shrink: 0;
    background: linear-gradient(180deg, #5998df 0%, #3a7bd5 100%);
    border: 1px solid #2e61a4;
    border-radius: 5px;
    color: white;
    font-size: 14px;
    font-weight: bold;
    padding: 6px 12px;
    cursor: pointer;
    box-shadow: 0 1px 0 rgba(0,0,0,0.1);
    text-shadow: 0 -1px 0 rgba(0,0,0,0.3);
}

.message-input-area button:disabled {
    opacity: 0.6;
}

.mail-content {
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #E1E4E7;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 1px,
            rgba(0,0,0,0.02) 1px,
            rgba(0,0,0,0.02) 2px
        );
}

.mail-list-view, .mail-detail-view {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mail-header-bar {
    height: 44px;
    background: linear-gradient(180deg, #5998df 0%, #3a7bd5 100%);
    border-bottom: 1px solid #2e61a4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.mail-title {
    color: white;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 0 -1px 0 rgba(0,0,0,0.4);
}

.mail-edit-btn, .mail-back-btn {
    background: linear-gradient(180deg, #4e8ad0 0%, #3a74bb 100%);
    border: 1px solid #2d5a99;
    border-radius: 5px;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 5px 8px;
    cursor: pointer;
    box-shadow: 0 1px 0 rgba(0,0,0,0.1);
    text-shadow: 0 -1px 0 rgba(0,0,0,0.3);
}

.mail-back-btn {
    padding-left: 5px;
}

.mail-compose-btn {
    width: 24px;
    height: 24px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M20.71,7.04C21.1,6.65,21.1,6,20.71,5.63L18.37,3.29C18,2.9,17.35,2.9,16.96,3.29L15.13,5.12L18.88,8.87M3,17.25V21H6.75L17.81,9.94L14.06,6.19L3,17.25Z"></path></svg>') no-repeat center center;
    background-size: 16px 16px;
    border: none;
    opacity: 0.8;
}

.mail-search-bar {
    padding: 8px 10px;
    background: #C7CDD4;
    border-bottom: 1px solid #B2B2B2;
}

.mail-search-bar input {
    width: 100%;
    height: 28px;
    border-radius: 14px;
    border: 1px solid #BDBDBD;
    background-color: #E5E5E5;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 12px;
    color: #333;
    padding: 0 10px 0 28px;
    outline: none;
}

.mail-search-bar input::placeholder {
    color: #8E8E93;
    text-align: center;
    padding-right: 28px;
}

.mail-search-bar input:focus::placeholder {
    text-align: left;
}

.mail-list {
    flex: 1;
    overflow-y: auto;
    background: white;
}

.mail-item {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto auto;
    padding: 8px 10px;
    border-bottom: 1px solid #E1E1E1;
    cursor: pointer;
    position: relative;
}

.mail-item:active {
    background: #E5E5E5;
}

.mail-sender {
    grid-column: 1 / 2;
    font-weight: bold;
    font-size: 12px;
}

.mail-time {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    font-size: 10px;
    color: #3875D7;
}

.mail-subject {
    grid-column: 1 / 2;
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mail-preview {
    grid-column: 1 / 3;
    font-size: 10px;
    color: #8E8E93;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mail-meta {
    grid-column: 2 / 3;
    grid-row: 1 / 4;
    display: flex;
    align-items: center;
    gap: 5px;
}

.mail-meta .disclosure-indicator {
    color: #C7C7CC;
}

.mail-nav-arrows {
    display: flex;
    gap: 5px;
}

.mail-nav-arrows button {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    font-weight: bold;
    opacity: 0.7;
    cursor: pointer;
}

.mail-detail-header {
    background: white;
    padding: 10px;
    border-bottom: 1px solid #E1E1E1;
    font-size: 10px;
}

.mail-detail-subject {
    font-weight: bold;
    font-size: 12px;
    margin-bottom: 8px;
}
.mail-detail-from, .mail-detail-to {
    color: #666;
    margin-bottom: 2px;
}

.mail-detail-body {
    padding: 10px;
    font-size: 11px;
    line-height: 1.5;
    flex: 1;
    overflow-y: auto;
}

.ipod-content {
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #1c1c1c;
}

.ipod-main-view, .ipod-now-playing-view {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ipod-header-bar {
    height: 44px;
    background: linear-gradient(180deg, #5c5c5c 0%, #2b2b2b 100%);
    border-bottom: 1px solid #111;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
}

.ipod-title {
    color: white;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 0 -1px 0 #000;
}

.ipod-back-btn {
    background: linear-gradient(180deg, #444 0%, #222 100%);
    border: 1px solid #111;
    border-radius: 5px;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 5px 8px;
    cursor: pointer;
    box-shadow: 0 1px 0 rgba(255,255,255,0.1);
    text-shadow: 0 -1px 0 #000;
    position: absolute;
    left: 10px;
}

.ipod-segmented-control {
    display: flex;
    padding: 8px;
    background: #1c1c1c;
    flex-shrink: 0;
}

.ipod-segment {
    flex: 1;
    text-align: center;
    padding: 5px;
    font-size: 10px;
    font-weight: bold;
    color: white;
    text-shadow: 0 -1px 0 #000;
    background: linear-gradient(180deg, #444 0%, #222 100%);
    border: 1px solid #111;
    cursor: pointer;
}

.ipod-segment:first-child {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    border-right: none;
}
.ipod-segment:last-child {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    border-left: none;
}

.ipod-segment.active {
    background: linear-gradient(180deg, #2d60a2 0%, #20457b 100%);
}

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

.ipod-song-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    color: white;
    border-bottom: 1px solid #333;
    cursor: pointer;
}

.ipod-song-item.selected {
    background: #4CD964;
}
.ipod-song-item.selected .song-artist {
    color: white;
}

.song-info .song-title {
    font-size: 11px;
    font-weight: bold;
}
.song-info .song-artist {
    font-size: 10px;
    color: #999;
}

.ipod-now-playing-view {
    background: #1c1c1c;
}

.now-playing-content {
    flex: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.album-art-container {
    position: relative;
    align-self: center;
}
.album-art {
    width: 120px;
    height: 120px;
    background: url('https://source.unsplash.com/random/240x240?rock,albumart') center/cover;
    border: 3px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
.album-art-reflection {
    width: 120px;
    height: 40px;
    background: url('https://source.unsplash.com/random/240x240?rock,albumart') center/cover;
    transform: scaleY(-1);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.5) 30%, #000 50%, rgba(0,0,0,.5) 70%);
    -webkit-mask-size: 200%;
    animation: shine 2s linear infinite;
}

.track-info {
    text-align: center;
    color: white;
}
.track-title {
    font-size: 12px;
    font-weight: bold;
}
.track-artist {
    font-size: 10px;
    color: #999;
}

.scrubber {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #999;
    font-size: 10px;
}
.scrubber-bar {
    flex: 1;
    height: 6px;
    background: #555;
    border-radius: 3px;
    overflow: hidden;
}
.scrubber-progress {
    height: 100%;
    background: #4CD964;
    border-radius: 3px;
}

.playback-controls {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.playback-controls button {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    cursor: pointer;
}

.prev-btn {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M6,6H8V18H6V6M9.5,12L18,18V6L9.5,12Z" /></svg>');
}
.play-pause-btn.play {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M8,5.14V19.14L19,12.14L8,5.14Z" /></svg>');
}
.play-pause-btn.pause {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M14,19H18V6H14V19ZM6,19V6H10V19Z" /></svg>');
}
.next-btn {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M16,18H18V6H16V18ZM6,18L14.5,12L6,6V18Z" /></svg>');
}

.safari-content {
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #C7CDD4;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 1px,
            rgba(0,0,0,0.02) 1px,
            rgba(0,0,0,0.02) 2px
        );
}

.safari-top-bar {
    height: 38px;
    background: linear-gradient(180deg, #5998df 0%, #3a7bd5 100%);
    border-bottom: 1px solid #2e61a4;
    display: flex;
    align-items: center;
    padding: 5px;
    gap: 5px;
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.safari-nav-buttons {
    display: flex;
    gap: 1px;
}

.safari-nav-btn {
    background: linear-gradient(180deg, #4e8ad0 0%, #3a74bb 100%);
    border: 1px solid #2d5a99;
    color: white;
    font-size: 18px;
    font-weight: 300;
    width: 30px;
    height: 28px;
    line-height: 24px;
    cursor: pointer;
    text-shadow: 0 -1px 0 rgba(0,0,0,0.3);
}
.safari-nav-btn.back {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}
.safari-nav-btn.forward {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}
.safari-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.safari-url-bar {
    flex: 1;
    background: white;
    height: 28px;
    border-radius: 5px;
    border: 1px solid #999;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    padding: 0;
}

#safari-url-input {
    flex: 1;
    height: 100%;
    border: none;
    background: transparent;
    padding: 0 8px;
    font-size: 11px;
    color: #333;
    outline: none;
}

.safari-reload-icon, .safari-stop-icon {
    font-size: 16px;
    color: #007aff;
    cursor: pointer;
    padding: 0 8px;
    height: 100%;
    display: flex;
    align-items: center;
    border-left: 1px solid #ccc;
}

.safari-stop-icon {
    font-weight: bold;
    font-size: 18px;
}

.safari-webpage-container {
    flex: 1;
    position: relative;
    background: white;
    overflow: hidden;
}

.safari-startpage {
    padding: 8px;
    height: 100%;
    width: 100%;
    position: absolute;
    display: block;
}

#safari-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: none;
    background: white;
}

.google-logo {
    text-align: center;
    font-size: 28px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 500;
    margin-top: 10px;
    margin-bottom: 15px;
}
.g-blue { color: #4285F4; }
.o-red { color: #EA4335; }
.o-yellow { color: #FBBC05; }
.l-green { color: #34A853; }
.e-red { color: #EA4335; }

.google-search-box {
    display: flex;
    margin-bottom: 10px;
}
.google-search-box input {
    flex: 1;
    height: 28px;
    border: 1px solid #ccc;
    border-right: none;
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
    padding: 0 8px;
    font-size: 11px;
    outline: none;
}
.google-search-btn {
    width: 30px;
    height: 28px;
    border: 1px solid #ccc;
    background: #f1f1f1;
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.magnifying-glass {
    width: 10px;
    height: 10px;
    border: 2px solid #666;
    border-radius: 50%;
    position: relative;
}
.magnifying-glass::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 6px;
    height: 2px;
    background: #666;
    transform: rotate(45deg);
}

.google-search-type {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    margin-bottom: 8px;
}
.google-search-type button {
    background: none;
    border: none;
    font-size: 10px;
    color: #666;
}
.google-search-type button.active {
    font-weight: bold;
    color: #4285F4;
    border-bottom: 2px solid #4285F4;
}

.search-results {
    font-size: 9px;
}
.result-item {
    margin-bottom: 8px;
}
.result-title {
    color: #1a0dab;
    font-size: 11px;
    font-weight: 500;
}
.result-url {
    color: #006621;
}
.result-snippet {
    color: #545454;
}

.safari-bottom-toolbar {
    height: 40px;
    background: linear-gradient(180deg, #d4d4d4 0%, #b8b8b8 100%);
    border-top: 1px solid #999;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-shrink: 0;
}

.safari-toolbar-item {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.safari-toolbar-item img {
    height: 24px;
}

.tab-count {
    position: absolute;
    font-size: 10px;
    color: #666;
    text-shadow: 0 1px 0 white;
}

.flappybird-content {
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: url('FBbackground.png') repeat-x bottom;
    background-size: auto 100%;
    position: relative;
    overflow: hidden;
    image-rendering: pixelated;
}

#flappybird-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#flappybird-score {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Press Start 2P', cursive;
    font-size: 24px;
    color: white;
    text-shadow: 2px 2px #000;
    z-index: 2;
}

#flappybird-menu, #flappybird-game-over {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 3;
    background: rgba(0,0,0,0.2);
}

#flappybird-logo {
    width: 120px;
}

#flappybird-play-btn, #flappybird-restart-btn {
    font-family: 'Press Start 2P';
    background: #DE7A23;
    color: white;
    padding: 8px 16px;
    border: 2px solid white;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px #000;
}

#flappybird-play-btn:active, #flappybird-restart-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px #000;
}

.game-over-banner, #flappybird-final-score {
    font-family: 'Press Start 2P';
    color: #DE7A23;
    text-shadow: 2px 2px white;
    font-size: 18px;
    text-align: center;
}

#flappybird-final-score {
    font-size: 14px;
    color: white;
    text-shadow: 1px 1px #000;
}

@keyframes shine {
    from { -webkit-mask-position: 150%; }
    to { -webkit-mask-position: -50%; }
}

#stocks-screen .app-content {
    padding: 0;
}

.stocks-header {
    background: linear-gradient(180deg, #5c5c5c 0%, #2b2b2b 100%);
    border-bottom: 1px solid #111;
    color: white;
    text-shadow: 0 -1px 0 #000;
}

.stocks-content {
    height: calc(100% - 44px);
    display: flex;
    flex-direction: column;
    background-color: #1e1e1e;
    background-image: 
        repeating-linear-gradient(180deg, 
            rgba(255,255,255,0.02), 
            rgba(255,255,255,0.02) 1px, 
            transparent 1px, 
            transparent 2px
        );
}

.stock-chart-container {
    padding: 8px;
    background: #333;
    border-bottom: 1px solid #000;
    flex-shrink: 0;
}

.company-info {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 10px;
    color: #ccc;
    margin-bottom: 4px;
}
.company-info .company-name {
    font-weight: bold;
}

.stock-chart {
    height: 60px;
    margin-bottom: 4px;
}

.stock-chart img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.chart-time-period {
    text-align: right;
    font-size: 10px;
    color: #999;
}

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

.stock-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    border-bottom: 1px solid #444;
    cursor: pointer;
}

.stock-item.active {
    background: #007aff;
}

.stock-info {
    color: white;
}
.stock-symbol {
    font-weight: bold;
    font-size: 14px;
}
.stock-company-name {
    font-size: 10px;
    color: #ccc;
}
.stock-item.active .stock-company-name {
    color: white;
}

.stock-price-info {
    text-align: right;
}
.stock-price {
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.stock-change {
    font-size: 10px;
    font-weight: bold;
    color: white;
    padding: 3px 6px;
    border-radius: 4px;
    min-width: 60px;
    text-align: center;
    margin-top: 2px;
}

.stock-change.positive {
    background: #4CD964;
}
.stock-change.negative {
    background: #FF3B30;
}

.stocks-bottom-toolbar {
    height: 40px;
    background: linear-gradient(180deg, #5c5c5c 0%, #2b2b2b 100%);
    border-top: 1px solid #111;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    flex-shrink: 0;
}

.stocks-segmented-control {
    display: flex;
    flex-grow: 1;
    margin-right: 8px;
}

.stocks-segmented-control .segment {
    flex: 1;
    text-align: center;
    padding: 4px;
    font-size: 9px;
    font-weight: bold;
    color: white;
    text-shadow: 0 -1px 0 #000;
    background: linear-gradient(180deg, #444 0%, #222 100%);
    border: 1px solid #111;
    cursor: pointer;
}

.stocks-segmented-control .segment:first-child {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    border-right: none;
}

.stocks-segmented-control .segment:last-child {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    border-left: none;
}

.stocks-segmented-control .segment:not(:first-child):not(:last-child) {
    border-left: none;
    border-right: none;
}

.stocks-segmented-control .segment.active {
    background: linear-gradient(180deg, #2d60a2 0%, #20457b 100%);
}

.stocks-info-btn {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.maps-content {
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #f7f7f7;
}

.maps-top-bar {
    height: 44px;
    background: linear-gradient(180deg, #d4d4d4 0%, #b8b8b8 100%);
    border-bottom: 1px solid #999;
    display: flex;
    align-items: center;
    padding: 0 5px;
    gap: 5px;
    flex-shrink: 0;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.maps-btn {
    background: linear-gradient(180deg, #d4d4d4 0%, #b8b8b8 100%);
    border: 1px solid #999;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.maps-btn img {
    height: 22px;
}

.maps-search-bar {
    flex-grow: 1;
    position: relative;
    height: 28px;
}

.maps-search-bar input {
    width: 100%;
    height: 100%;
    border-radius: 14px;
    border: 1px solid #999;
    background: white;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.15);
    font-size: 11px;
    padding-left: 24px;
    padding-right: 8px;
    outline: none;
}

.maps-search-icon {
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    height: 14px;
    opacity: 0.6;
}

.maps-search-options {
    display: flex;
    align-items: center;
    gap: 2px;
}

.maps-search-btn {
    background: linear-gradient(180deg, #4e8ad0 0%, #3a74bb 100%);
    border: 1px solid #2d5a99;
    border-radius: 4px;
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 5px 8px;
    cursor: pointer;
    text-shadow: 0 -1px 0 rgba(0,0,0,0.3);
}

.maps-bookmarks-btn {
    background: linear-gradient(180deg, #d4d4d4 0%, #b8b8b8 100%);
    border: 1px solid #999;
    border-radius: 4px;
    font-size: 14px;
    width: 28px;
    height: 28px;
    cursor: pointer;
}

.maps-view {
    flex: 1;
    background: #ccc;
    position: relative;
    overflow: hidden;
}

/* Embedded map iframe fills the view */
.maps-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.maps-bottom-toolbar {
    height: 44px;
    background: linear-gradient(180deg, #d4d4d4 0%, #b8b8b8 100%);
    border-top: 1px solid #999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
    flex-shrink: 0;
}

.maps-toolbar-btn {
    background: none;
    border: none;
    cursor: pointer;
}
.maps-toolbar-btn img {
    height: 24px;
}
.maps-toolbar-btn.location-btn img {
    height: 28px;
}

.maps-view-toggle {
    display: flex;
    background: #333;
    border: 1px solid #111;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 1px 0 rgba(255,255,255,0.1);
}

.maps-view-toggle .toggle-btn {
    background: linear-gradient(180deg, #444 0%, #222 100%);
    color: white;
    border: none;
    font-size: 9px;
    padding: 4px 5px;
    cursor: pointer;
    text-shadow: 0 -1px 0 #000;
}

.maps-view-toggle .toggle-btn.active {
    background: linear-gradient(180deg, #2d60a2 0%, #20457b 100%);
}

.info-content {
    padding: 20px;
    background: #f7f7f7;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    height: calc(100% - 44px);
    overflow-y: auto;
}

/* Refined Info app UI to feel more like iOS 6 */
.info-header {
    margin-bottom: 10px;
    text-align: center;
}

.info-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-shadow: 0 1px 0 rgba(255,255,255,0.8);
}

.info-section {
    margin-bottom: 14px;
}

.info-section-title {
    font-size: 11px;
    font-weight: bold;
    color: #4C566C;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    text-shadow: 0 1px 0 rgba(255,255,255,0.9);
}

.info-text {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #B2B2B2;
    padding: 8px 10px;
    font-size: 11px;
    color: #333;
    line-height: 1.4;
    box-shadow:
        0 1px 0 rgba(255,255,255,0.9),
        0 2px 4px rgba(0,0,0,0.08);
}

.info-text br {
    line-height: 1.8;
}

.leaderboard-content {
    padding: 10px 10px;
    background: #C7CDD4;
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 1px,
            rgba(0,0,0,0.02) 1px,
            rgba(0,0,0,0.02) 2px
        );
    font-family: 'Helvetica Neue', Arial, sans-serif;
    height: calc(100% - 44px);
    overflow-y: auto;
    font-size: 11px;
}

/* Small grey section label, like Settings / Stocks in iOS 6 */
.leaderboard-intro {
    margin: 12px 6px 6px;
    padding-left: 2px;
    color: #4C566C;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 0 rgba(255,255,255,0.85);
}

/* Grouped table-style list */
.leaderboard-list {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #B2B2B2;
    box-shadow:
        0 1px 0 rgba(255,255,255,0.9),
        0 2px 4px rgba(0,0,0,0.15);
    counter-reset: lb-rank;
}

.leaderboard-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 12px;
    border-bottom: 1px solid #E1E1E1;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8F8F8 100%);
}

/* Slight alternating row effect */
.leaderboard-list li:nth-child(odd) {
    background: linear-gradient(180deg, #FBFBFB 0%, #F3F3F3 100%);
}

/* Highlight top row like a featured cell */
.leaderboard-list li:first-child {
    background: linear-gradient(180deg, #FFFDE7 0%, #FFF6C4 100%);
}

/* Round bottom corners & remove final divider */
.leaderboard-list li:last-child {
    border-bottom: none;
}

/* Pressed state when tapping rows */
.leaderboard-list li:active {
    background: #D9D9D9;
}

/* Rank badge on the left, similar to iOS numbered rows but a bit more visual */
.leaderboard-list li::before {
    counter-increment: lb-rank;
    content: counter(lb-rank);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 10px;
    color: #fff;
    margin-right: 8px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    text-shadow: 0 -1px 0 rgba(0,0,0,0.4);
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
    background: linear-gradient(180deg, #B0BEC5 0%, #78909C 100%);
}

/* Gold / silver / bronze badge colors for top 3 */
.leaderboard-list li:nth-child(1)::before {
    background: linear-gradient(180deg, #FFD54F 0%, #F9A825 100%);
}
.leaderboard-list li:nth-child(2)::before {
    background: linear-gradient(180deg, #CFD8DC 0%, #90A4AE 100%);
}
.leaderboard-list li:nth-child(3)::before {
    background: linear-gradient(180deg, #FFCC80 0%, #FB8C00 100%);
}

.leader-name {
    font-weight: 500;
    color: #111;
    flex: 1;
    margin-left: 2px;
    text-shadow: 0 1px 0 rgba(255,255,255,0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Gold / silver / bronze text tint for top 3, subtle to keep it classy */
.leaderboard-list li:nth-child(1) .leader-name {
    color: #BF8F00;
}
.leaderboard-list li:nth-child(2) .leader-name {
    color: #7F8C8D;
}
.leaderboard-list li:nth-child(3) .leader-name {
    color: #8E5A2D;
}

.leader-amount {
    font-weight: 600;
    color: #007aff;
    font-size: 11px;
    margin-left: 6px;
    text-shadow: 0 1px 0 rgba(255,255,255,0.9);
}

/* Small, subtle footer text */
.leaderboard-footer {
    margin-top: 6px;
    padding: 0 4px 4px;
    font-size: 10px;
    color: #555;
    text-align: center;
    text-shadow: 0 1px 0 rgba(255,255,255,0.8);
}

#camera-screen {
    background: #000;
    flex-direction: column;
}

#camera-screen .app-header, #camera-screen .app-content {
    display: none;
}

.camera-viewfinder {
    position: absolute;
    top: 60px;
    bottom: 80px;
    left: 0;
    right: 0;
    overflow: hidden;
    background: #111;
}

#cameraVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#camera-flash-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    opacity: 0;
    pointer-events: none;
}

.camera-top-bar, .camera-bottom-bar {
    position: absolute;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    z-index: 10;
}

.camera-top-bar {
    top: 0;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 1px 5px rgba(0,0,0,0.4);
}

.camera-bottom-bar {
    bottom: 0;
    height: 80px;
    border-top: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 -1px 5px rgba(0,0,0,0.4);
}

.camera-flash-btn, .camera-options-btn {
    background: rgba(80,80,80,0.7);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    text-shadow: 0 1px 1px #000;
}

.camera-options-btn {
    background: rgba(50,50,50,0.7);
}

.camera-roll-thumbnail {
    width: 45px;
    height: 45px;
    border: 2px solid #555;
    border-radius: 4px;
    background: #222;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

#cameraRollPreview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camera-shutter-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, #f0f0f0 60%, #c0c0c0 100%);
    border: 3px solid #777;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5), inset 0 2px 3px rgba(255,255,255,0.3);
}
.camera-shutter-button:active {
    background: radial-gradient(circle, #ddd 60%, #b0b0b0 100%);
}

.shutter-inner-ring {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.2);
}

.camera-mode-switch {
    width: 60px;
    height: 28px;
    background: #111;
    border-radius: 14px;
    border: 1px solid #555;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 4px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}

.switch-handle {
    position: absolute;
    left: 2px;
    width: 24px;
    height: 24px;
    background: linear-gradient(180deg, #888, #666);
    border-radius: 50%;
    transition: left 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.5);
    border: 1px solid #444;
}

.mode-label {
    font-size: 14px;
    z-index: 1;
    color: white;
    opacity: 0.5;
}

.photo-mode {
    opacity: 1;
}

.contact-list {
    background: white;
}

.contact-group-header {
    background: linear-gradient(180deg, #d4d4d4 0%, #b8b8b8 100%);
    color: #4a4a4a;
    font-weight: bold;
    padding: 2px 10px;
    font-size: 12px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
    border-top: 1px solid #999;
    border-bottom: 1px solid #999;
}

.contact-item {
    padding: 8px 10px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
    color: #333;
}

.contact-item:active {
    background: #e5e5e5;
}

#phone-screen .call-icon {
    font-size: 22px;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.price-tag:active {
    transform: scale(0.95);
}

.appstore-detail-view {
    height: calc(100% - 44px); /* height of header */
    width: 100%;
    position: absolute;
    top: 44px;
    left: 0;
    background: #EFEFF4;
    overflow-y: auto;
}

/* Hide scrollbar but keep scroll behavior in App Store detail view */
.appstore-detail-view::-webkit-scrollbar {
    display: none;
}
.appstore-detail-view {
    scrollbar-width: none;
}

.appstore-back-btn {
    background: linear-gradient(180deg, #6d84a3 0%, #4a5d7a 100%);
    color: white;
    border: 1px solid #3b526d;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
    margin-left: 5px;
}
.appstore-back-btn:active {
    background: linear-gradient(180deg, #4a5d7a 0%, #6d84a3 100%);
}

.appstore-detail-content {
    padding: 10px;
}

.app-main-info {
    display: flex;
    gap: 10px;
    background: white;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    align-items: flex-start;
}

.app-detail-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    flex-shrink: 0;
}

.app-detail-meta {
    flex-grow: 1;
}

.app-detail-title {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 2px;
}

.app-detail-developer {
    font-size: 10px;
    color: #007aff;
    margin-bottom: 4px;
}

.app-detail-category {
    font-size: 10px;
    color: #888;
}

.app-detail-segmented-control {
    display: flex;
    margin: 10px 0;
    background: #d1d1d6;
    border-radius: 6px;
    padding: 2px;
}

.app-detail-segmented-control .segment {
    flex: 1;
    text-align: center;
    padding: 4px;
    font-size: 10px;
    font-weight: 500;
    color: #333;
    border-radius: 4px;
    cursor: pointer;
}

.app-detail-segmented-control .segment.active {
    background: white;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.app-detail-description {
    background: white;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    font-size: 10px;
    line-height: 1.4;
    color: #333;
    margin-bottom: 10px;
}

.app-detail-screenshots .screenshots-header {
    font-weight: bold;
    font-size: 12px;
    color: #555;
    margin-bottom: 5px;
}

.screenshots-container {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.screenshots-container img {
    height: 90px;
    border-radius: 4px;
    border: 1px solid #ccc;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.chess-content {
    padding: 10px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #333;
}

#chess-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

.chess-menu-title {
    color: white;
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 10px;
}

.chess-difficulty-btn {
    background: linear-gradient(180deg, #6d84a3 0%, #4a5d7a 100%);
    color: white;
    border: 1px solid #3b526d;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    font-family: 'Helvetica Neue', Arial, sans-serif;
    width: 120px;
    text-align: center;
}

.chess-difficulty-btn:active {
    background: linear-gradient(180deg, #4a5d7a 0%, #6d84a3 100%);
    transform: translateY(1px);
}

#chess-game-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

#chess-header {
    position: relative;
    justify-content: center;
    align-items: center;
    display: flex;
}

.chess-back-btn {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(180deg, #6d84a3 0%, #4a5d7a 100%);
    color: white;
    border: 1px solid #3b526d;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.chess-board {
    width: 210px;
    margin-bottom: 5px;
}

.chess-status {
    color: white;
    font-size: 11px;
    text-align: center;
    height: 15px;
    margin-bottom: 5px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.chess-new-game-btn {
    position: absolute;
    left: 146px;
    top: 1%;
    background: linear-gradient(180deg, #6d84a3 0%, #4a5d7a 100%);
    color: white;
    border: 1px solid #3b526d;
    padding: 10px 8px;
    border-radius: 4px;
    font-size: 10px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.chess-new-game-btn:active {
    background: linear-gradient(180deg, #4a5d7a 0%, #6d84a3 100%);
}

/* Wallpaper picker */

.wallpaper-picker-overlay {
    position: absolute;
    top: 20px; /* below status bar */
    left: 0;
    width: 100%;
    height: calc(100% - 20px);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    display: none;
    flex-direction: column;
    z-index: 300;
}

.wallpaper-picker-overlay.active {
    display: flex;
}

.wallpaper-picker-header {
    height: 44px;
    background: linear-gradient(180deg, #B4B4B4 0%, #7F7F7F 100%);
    border-bottom: 1px solid #666;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
}

.wallpaper-picker-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    text-shadow: 0 1px 0 rgba(255,255,255,0.7);
}

.wallpaper-picker-cancel-btn,
.wallpaper-picker-set-btn {
    background: linear-gradient(180deg, #6d84a3 0%, #4a5d7a 100%);
    color: white;
    border: 1px solid #3b526d;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.wallpaper-picker-set-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

.wallpaper-picker-content {
    flex: 1;
    background: #EFEFF4;
    padding: 8px;
    overflow-y: auto;
}

.wallpaper-picker-section {
    margin-bottom: 10px;
}

.wallpaper-picker-section-title {
    font-size: 10px;
    font-weight: bold;
    color: #555;
    margin-bottom: 4px;
    text-shadow: 0 1px 0 rgba(255,255,255,0.7);
}

.wallpaper-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.wallpaper-thumb {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 4px;
    overflow: hidden;
    background: #ccc;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
    cursor: pointer;
}

.wallpaper-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wallpaper-thumb.selected::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid #4E9EF1;
    box-shadow: 0 0 0 1px white inset;
}

.wallpaper-file-btn {
    width: 100%;
    margin-top: 4px;
    padding: 6px;
    font-size: 10px;
    border-radius: 4px;
    border: 1px solid #999;
    background: linear-gradient(180deg, #d4d4d4 0%, #b8b8b8 100%);
    cursor: pointer;
    text-align: center;
    box-shadow: 0 1px 0 rgba(255,255,255,0.6);
}