/* === iOS 26 LIQUID GLASS DESIGN TOKENS === */
:root {
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-bg-light: rgba(255, 255, 255, 0.85);
    --glass-bg-dark: rgba(0, 0, 0, 0.45);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-blur: blur(20px) saturate(150%);
    --glass-blur-heavy: blur(40px) saturate(180%);
    --glass-blur-light: blur(12px) saturate(120%);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.6);
    --ios-blue: #007aff;
    --ios-green: #34c759;
    --ios-red: #ff3b30;
    --ios-orange: #ff9500;
    --ios-yellow: #ffcc00;
    --ios-purple: #af52de;
    --ios-pink: #ff2d55;
    --ios-teal: #5ac8fa;
    --ios-gray: #8e8e93;
    --ios-gray-light: #f2f2f7;
    --ios-gray-dark: #1c1c1e;
    --text-primary: #000;
    --text-secondary: rgba(60, 60, 67, 0.6);
    --text-tertiary: rgba(60, 60, 67, 0.3);
    --spring-bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --spring-smooth: cubic-bezier(0.32, 0.72, 0, 1);
    --spring-gentle: cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* === GENERAL RESET & SIMULATOR === */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background: #000;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    -webkit-font-smoothing: antialiased;
}

/* === LOCKDOWN MODE STYLES === */
body.lockdown-mode {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

body.lockdown-mode::-webkit-scrollbar {
    display: none;
}

body.lockdown-mode {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

body.lockdown-mode * {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body.lockdown-mode input,
body.lockdown-mode textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

#simulator {
    position: relative;
    width: 100vw;
    height: 100vh;
    max-width: 420px;
    max-height: 100vh;
    background: url('https://cdn.builder.io/api/v1/assets/4bdb8a64a9b24066ad1311bb7783fba0/backdrop.jpg') center/cover no-repeat;
    overflow: hidden;
    box-shadow: 0 0 80px rgba(0,0,0,0.6);
    contain: layout style;
    transform: translateZ(0);
}

/* === iOS 26 STATUS BAR (Liquid Glass Floating) === */
#status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    height: 54px;
    box-sizing: border-box;
    z-index: 100000;
    color: #fff;
    font-weight: 600;
    position: relative;
}

#status-bar svg path,
#status-bar svg rect {
    fill: #fff;
}

#sb-left, #sb-right {
    flex: 1;
    display: flex;
    align-items: center;
}

#sb-left { justify-content: flex-start; }
#sb-right { justify-content: flex-end; gap: 6px; }
#sb-center { width: 100px; }
#time { font-size: 17px; letter-spacing: -0.4px; font-weight: 600; }

/* Signal Bars (4 bars getting bigger) */
.signal-bars {
    display: flex;
    align-items: flex-end;
    gap: 1.5px;
    height: 12px;
}
.signal-bar {
    width: 3px;
    background: #fff;
    border-radius: 1px;
}
.signal-bar:nth-child(1) { height: 4px; }
.signal-bar:nth-child(2) { height: 6px; }
.signal-bar:nth-child(3) { height: 9px; }
.signal-bar:nth-child(4) { height: 12px; }

/* WiFi Icon */
.sb-icon-wifi {
    width: 18px;
    height: 18px;
}

/* Battery Icon */
.sb-icon-batt {
    width: 28px;
    height: 14px;
}

/* === HOME SCREEN PAGES (Swipeable) === */
#home-pages-container {
    position: absolute;
    top: 54px;
    left: 0;
    right: 0;
    bottom: 120px;
    overflow: hidden;
    z-index: 10;
}

#home-pages-track {
    display: flex;
    width: 300%;
    height: 100%;
    transform: translateX(-33.333%);
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    will-change: transform;
}

#home-pages-track.dragging {
    transition: none;
}

.home-page {
    width: 33.333%;
    height: 100%;
    flex-shrink: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* Page Indicators */
#page-indicators {
    position: absolute;
    bottom: 112px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 101;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
}

.page-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
}

.page-dot.active {
    background: #fff;
    width: 24px;
    border-radius: 4px;
}

/* === WIDGETS PAGE (iOS 26 Liquid Glass) === */
.widgets-container {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.widget-glass {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-radius: 27px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    padding: 16px;
    color: #1c1c1e;
    position: relative;
    overflow: hidden;
}

.widget-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, transparent 100%);
    pointer-events: none;
    border-radius: 27px 27px 0 0;
}

.widget-large {
    min-height: 160px;
}

.widget-medium {
    min-height: 100px;
}

.widget-small {
    flex: 1;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.widget-row {
    display: flex;
    gap: 16px;
}

/* Weather Widget */
#weather-widget .widget-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

#weather-widget .widget-location {
    font-size: 18px;
    font-weight: 600;
}

#weather-widget .widget-temp {
    font-size: 48px;
    font-weight: 300;
    line-height: 1;
}

#weather-widget .widget-condition {
    font-size: 15px;
    color: rgba(60, 60, 67, 0.8);
    margin-top: 4px;
}

#weather-widget .widget-hourly {
    display: flex;
    gap: 20px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.hourly-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 14px;
}

.hourly-item span:first-child {
    color: rgba(60, 60, 67, 0.6);
    font-size: 12px;
}

/* Battery Widget */
#battery-widget .widget-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--ios-green) 0%, #2fb34a 100%);
    border-radius: 10px;
    margin-bottom: 8px;
}

#battery-widget .widget-label {
    font-size: 12px;
    color: rgba(60, 60, 67, 0.6);
}

#battery-widget .widget-value {
    font-size: 28px;
    font-weight: 600;
    margin-top: 4px;
}

/* Calendar Widget */
#calendar-widget .widget-day {
    font-size: 12px;
    color: var(--ios-red);
    font-weight: 600;
    letter-spacing: 0.5px;
}

#calendar-widget .widget-date {
    font-size: 42px;
    font-weight: 300;
    line-height: 1.1;
}

#calendar-widget .widget-month {
    font-size: 14px;
    color: rgba(60, 60, 67, 0.6);
}

/* Music Widget */
#music-widget {
    display: flex;
    align-items: center;
    gap: 12px;
}

#music-widget .widget-music-art {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fc3c44 0%, #fa233b 100%);
    flex-shrink: 0;
}

#music-widget .widget-music-info {
    flex: 1;
    min-width: 0;
}

#music-widget .widget-music-title {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#music-widget .widget-music-artist {
    font-size: 13px;
    color: rgba(60, 60, 67, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#music-widget .widget-music-controls {
    display: flex;
    gap: 8px;
}

#music-widget .widget-music-controls svg {
    width: 28px;
    height: 28px;
    fill: #1c1c1e;
    cursor: pointer;
}

/* Screen Time Widget */
#screen-time-widget .widget-st-header {
    font-size: 13px;
    color: rgba(60, 60, 67, 0.6);
    margin-bottom: 4px;
}

#screen-time-widget .widget-st-time {
    font-size: 28px;
    font-weight: 600;
}

#screen-time-widget .widget-st-bar {
    display: flex;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin: 12px 0 8px;
    background: rgba(0, 0, 0, 0.1);
}

#screen-time-widget .st-bar-fill {
    height: 100%;
}

#screen-time-widget .widget-st-label {
    font-size: 13px;
    color: rgba(60, 60, 67, 0.6);
}

/* === APP LIBRARY PAGE === */
.app-library-container {
    padding: 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.app-library-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-radius: 17px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
}

.app-library-search svg {
    width: 20px;
    height: 20px;
    fill: rgba(60, 60, 67, 0.6);
    flex-shrink: 0;
}

.app-library-search input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 17px;
    color: #1c1c1e;
    outline: none;
}

.app-library-search input::placeholder {
    color: rgba(60, 60, 67, 0.6);
}

.app-library-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    flex: 1;
    overflow-y: auto;
}

.app-library-category {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-label {
    font-size: 14px;
    font-weight: 600;
    color: #1c1c1e;
}

.category-icons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.mini-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: transform 0.15s var(--spring-bounce);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.mini-icon:active {
    transform: scale(0.9);
}

/* App Library List View (Contacts-style) */
.app-library-list {
    display: none;
    flex: 1;
    overflow-y: auto;
    padding-bottom: 20px;
    position: relative;
}

.app-list-section {
    margin-bottom: 8px;
}

.app-list-header {
    font-size: 20px;
    font-weight: 700;
    color: #1c1c1e;
    padding: 8px 0;
    position: sticky;
    top: 0;
    z-index: 5;
}

.app-list-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    margin-bottom: 2px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 14px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.app-list-row:active {
    background: rgba(255, 255, 255, 0.9);
}

.app-list-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    flex-shrink: 0;
}

.app-list-name {
    font-size: 17px;
    font-weight: 400;
    color: #1c1c1e;
}

.app-list-index {
    position: fixed;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    z-index: 50;
    padding: 4px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
}

.index-letter {
    font-size: 11px;
    font-weight: 600;
    color: #007aff;
    cursor: pointer;
    padding: 1px 4px;
}

.index-letter:active {
    background: rgba(0, 122, 255, 0.2);
    border-radius: 4px;
}

/* === APP GRID (iOS 26 Style) === */
#app-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px 16px;
    padding: 18px 20px;
    margin-top: 8px;
}

.icon-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: -0.2px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
    transition: transform 0.2s var(--spring-bounce);
}

.icon-box:active {
    transform: scale(0.88);
}

.icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2), inset 0 0 0 0.5px rgba(255,255,255,0.15);
    position: relative;
}

.icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 50%);
    pointer-events: none;
}

/* === DOCK (iOS 26 Liquid Glass) === */
#dock-wrapper {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

#dock {
    display: flex;
    gap: 18px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 40px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.4);
}

.dock-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: transform 0.15s var(--spring-bounce);
    box-shadow: 0 4px 16px rgba(0,0,0,0.18), inset 0 0 0 0.5px rgba(255,255,255,0.15);
}

.dock-icon:active { transform: scale(0.9); }

/* === CONTROL CENTER (iOS 26 Design) === */
#control-center {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 22, 0.85);
    backdrop-filter: blur(60px) saturate(200%);
    -webkit-backdrop-filter: blur(60px) saturate(200%);
    z-index: 5000;
    transition: top 0.4s cubic-bezier(0.32, 0.72, 0, 1), visibility 0.4s;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    visibility: hidden;
    overflow: hidden;
    padding: 60px 16px 20px;
}

#control-center.open {
    top: 0;
    visibility: visible;
}

/* iOS 26 Grid Layout */
.cc26-grid {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 100%;
    position: relative;
}

.cc26-row {
    display: flex;
    gap: 12px;
}

.cc26-row-top {
    align-items: stretch;
}

/* Connectivity Cluster - 2x3 Grid */
.cc26-connectivity {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    border: 0.5px solid rgba(255, 255, 255, 0.08);
}

.cc26-conn-row {
    display: flex;
    gap: 8px;
}

.cc26-conn-btn {
    flex: 1;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.cc26-conn-btn:active { transform: scale(0.9); }

.cc26-conn-btn svg {
    width: 22px;
    height: 22px;
    fill: white;
}

.cc26-conn-btn.active-blue {
    background: #007AFF;
}

.cc26-conn-btn.active-green {
    background: #34c759;
}

/* Media Tile */
.cc26-media {
    flex: 1;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 0.5px solid rgba(255, 255, 255, 0.08);
}

.cc26-media-top {
    display: flex;
    justify-content: flex-end;
}

.cc26-airplay-icon svg {
    width: 20px;
    height: 20px;
    fill: rgba(255, 255, 255, 0.5);
}

.cc26-media-title {
    color: white;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    margin: 8px 0;
}

.cc26-media-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.cc26-media-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.15s;
}

.cc26-media-btn:active { background: rgba(255, 255, 255, 0.2); }

.cc26-media-btn svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.cc26-play-btn svg {
    width: 28px;
    height: 28px;
}

/* Middle Row - Small buttons + Sliders */
.cc26-row-middle {
    align-items: stretch;
    min-height: 160px;
}

.cc26-small-btns {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cc26-small-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    border: 0.5px solid rgba(255, 255, 255, 0.08);
}

.cc26-small-btn:active { transform: scale(0.9); }

.cc26-small-btn svg {
    width: 24px;
    height: 24px;
    fill: white;
}

/* Slider Pills */
.cc26-slider-pill {
    flex: 1;
    max-width: 70px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    touch-action: none;
    border: 0.5px solid rgba(255, 255, 255, 0.08);
}

.cc26-slider-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 0 0 30px 30px;
    transition: height 0.05s linear;
}

.cc26-slider-icon {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    pointer-events: none;
}

.cc26-slider-icon svg {
    width: 26px;
    height: 26px;
    fill: rgba(0, 0, 0, 0.75);
}

/* Focus Row */
.cc26-row-focus {
    align-items: center;
    gap: 12px;
}

.cc26-focus-btn {
    flex: 1;
    height: 52px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 26px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    border: 0.5px solid rgba(255, 255, 255, 0.08);
}

.cc26-focus-btn:active { transform: scale(0.97); }

.cc26-focus-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cc26-focus-icon svg {
    width: 22px;
    height: 22px;
    fill: #5e5ce6;
}

.cc26-focus-btn span {
    color: white;
    font-size: 15px;
    font-weight: 500;
    flex: 1;
}

.cc26-chevron {
    width: 16px;
    height: 16px;
    fill: rgba(255, 255, 255, 0.4);
}

.cc26-bright-btn, .cc26-vol-btn {
    background: rgba(255, 255, 255, 0.12);
}

/* Bottom Action Buttons */
.cc26-row-bottom {
    gap: 12px;
}

.cc26-action-btn {
    flex: 1;
    aspect-ratio: 1;
    max-width: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    border: 0.5px solid rgba(255, 255, 255, 0.08);
}

.cc26-action-btn:active { transform: scale(0.9); }

.cc26-action-btn svg {
    width: 28px;
    height: 28px;
    fill: white;
}

.cc26-action-btn.active {
    background: white;
}

.cc26-action-btn.active svg {
    fill: #000;
}

/* Sidebar */
.cc26-sidebar {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 4px;
}

.cc26-sidebar-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.cc26-sidebar-btn svg {
    width: 18px;
    height: 18px;
    fill: rgba(255, 255, 255, 0.5);
}

/* Close Hint */
.cc-close-hint {
    padding: 12px 0 10px;
    display: flex;
    justify-content: center;
}

.cc-close-bar {
    width: 36px;
    height: 5px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 3px;
}

/* === APP SCREEN (iOS 26 Liquid Glass) === */
#app-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--ios-gray-light);
    z-index: 1000;
    display: none;
    flex-direction: column;
    color: var(--text-primary);
    transform: scale(0.94) translateY(20px);
    opacity: 0;
    transition: transform 0.4s var(--spring-smooth), opacity 0.3s ease;
    overflow: hidden;
}

#app-screen.active {
    display: flex;
    transform: scale(1) translateY(0);
    opacity: 1;
}

#app-header {
    padding: 70px 20px 12px;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: rgba(242, 242, 247, 0.85);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 0.5px solid rgba(0,0,0,0.08);
    color: #000;
}

#app-content {
    flex: 1;
    padding: 0;
    font-size: 17px;
    overflow-y: auto;
    background: var(--ios-gray-light);
    -webkit-overflow-scrolling: touch;
}

/* === SETTINGS APP (iOS 26 Liquid Glass) === */
.settings-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--ios-gray-light);
    overflow: hidden;
}

.settings-scroll {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 40px;
}

/* Floating Glass Header */
.settings-glass-header {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 60px 16px 0;
    background: rgba(242, 242, 247, 0.92);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
}

.settings-glass-header.scrolled {
    box-shadow: 0 0.5px 0 rgba(0,0,0,0.1);
}

.settings-glass-header .title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.settings-glass-header .title {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #000;
}

/* Search Bar */
.settings-search-bar {
    display: flex;
    align-items: center;
    background: rgba(118, 118, 128, 0.12);
    border-radius: 10px;
    padding: 8px 10px;
    margin-bottom: 12px;
    gap: 6px;
}

.settings-search-bar svg {
    width: 16px;
    height: 16px;
    fill: var(--ios-gray);
    flex-shrink: 0;
}

.settings-search-bar input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 17px;
    color: #000;
    outline: none;
}

.settings-search-bar input::placeholder {
    color: rgba(60, 60, 67, 0.6);
}

/* Glass Card Groups */
.settings-group {
    margin: 8px 16px;
}

.settings-group-label {
    font-size: 13px;
    font-weight: 400;
    color: rgba(60, 60, 67, 0.6);
    text-transform: uppercase;
    letter-spacing: -0.08px;
    padding: 0 16px 6px;
}

.settings-list {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border-radius: 12px;
    box-shadow: 
        0 0.5px 0 rgba(255,255,255,0.5) inset,
        0 2px 8px rgba(0,0,0,0.04),
        0 0 0 0.5px rgba(0,0,0,0.04);
    overflow: hidden;
}

.settings-item {
    padding: 11px 16px;
    border-bottom: 0.5px solid rgba(60,60,67,0.1);
    display: flex;
    align-items: center;
    background: transparent;
    transition: background 0.15s;
    color: #000;
    font-size: 17px;
    min-height: 44px;
    box-sizing: border-box;
}

.settings-item:last-child { border-bottom: none; }
.settings-item:active { background: rgba(0,0,0,0.04); }

.settings-item span:first-of-type:not(.settings-icon + span) {
    flex: 1;
}

.settings-item > span {
    flex: 1;
}

.settings-item .chevron {
    color: rgba(60,60,67,0.3);
    font-size: 17px;
    font-weight: 300;
    margin-left: 4px;
}

.settings-item .value {
    color: rgba(60,60,67,0.6);
    font-size: 17px;
    margin-right: 4px;
}

/* Settings Icon (Refined) */
.settings-icon {
    width: 29px;
    height: 29px;
    border-radius: 7px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 12px;
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.settings-icon svg {
    width: 18px;
    height: 18px;
    fill: white;
}

/* Profile Card (Enhanced) */
.settings-profile-card {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin: 8px 16px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border-radius: 12px;
    box-shadow: 
        0 0.5px 0 rgba(255,255,255,0.5) inset,
        0 2px 8px rgba(0,0,0,0.04),
        0 0 0 0.5px rgba(0,0,0,0.04);
    cursor: pointer;
    transition: transform 0.15s, background 0.15s;
}

.settings-profile-card:active {
    background: rgba(245, 245, 250, 0.9);
    transform: scale(0.98);
}

.settings-profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(145deg, #c7c7cc, #a8a8ad);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: 500;
    color: white;
    margin-right: 14px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.settings-profile-avatar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.25), transparent);
    border-radius: 50% 50% 0 0;
}

.settings-profile-info { flex: 1; }
.settings-profile-name { font-size: 20px; font-weight: 600; color: #000; letter-spacing: -0.4px; }
.settings-profile-sub { font-size: 13px; color: rgba(60,60,67,0.6); margin-top: 2px; }

.settings-profile-card .chevron {
    color: rgba(60,60,67,0.3);
    font-size: 20px;
    font-weight: 300;
}

/* Sub-page Header */
.settings-header {
    display: flex;
    align-items: center;
    padding: 60px 16px 12px;
    margin-bottom: 0;
    background: rgba(242, 242, 247, 0.92);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    position: sticky;
    top: 0;
    z-index: 20;
}

.back-btn {
    color: var(--ios-blue);
    font-size: 17px;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 400;
    gap: 2px;
}

.back-btn svg { 
    width: 10px;
    height: 17px;
    fill: var(--ios-blue); 
}

.settings-title-small {
    flex: 1;
    text-align: center;
    font-weight: 600;
    font-size: 17px;
    margin-right: 50px;
    color: #000;
}

/* Toggle Switch (iOS 26 Liquid Glass) */
.ios-toggle {
    width: 51px;
    height: 31px;
    background: rgba(120, 120, 128, 0.16);
    border-radius: 16px;
    position: relative;
    transition: 0.25s var(--spring-gentle);
    cursor: pointer;
    flex-shrink: 0;
}

.ios-toggle.on { 
    background: var(--ios-green); 
}

.ios-toggle::after {
    content: '';
    position: absolute;
    width: 27px;
    height: 27px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: 0.25s var(--spring-bounce);
    box-shadow: 0 3px 8px rgba(0,0,0,0.15), 0 1px 1px rgba(0,0,0,0.06);
}

.ios-toggle.on::after { left: 22px; }

/* Footer text */
.settings-footer-text {
    font-size: 13px;
    color: rgba(60,60,67,0.6);
    padding: 8px 32px;
    line-height: 1.4;
}

/* About section */
.settings-about-item {
    padding: 11px 16px;
    border-bottom: 0.5px solid rgba(60,60,67,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    color: #000;
    font-size: 17px;
    min-height: 44px;
    box-sizing: border-box;
}

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

.settings-about-item .label {
    color: #000;
}

.settings-about-item .value {
    color: rgba(60,60,67,0.6);
}

/* Slider control */
.settings-slider-row {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.settings-slider-row svg {
    width: 20px;
    height: 20px;
    fill: var(--ios-gray);
    flex-shrink: 0;
}

.settings-slider-row svg.large {
    width: 24px;
    height: 24px;
}

.settings-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: rgba(120, 120, 128, 0.2);
    border-radius: 2px;
    outline: none;
}

.settings-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2), 0 0 0 0.5px rgba(0,0,0,0.04);
}

/* === MESSAGES APP (iOS 26 Style) === */
.messages-list-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--ios-gray-light);
    overflow-y: auto;
}

.messages-header-container {
    padding: 80px 16px 12px;
    background: rgba(242, 242, 247, 0.85);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 0.5px solid rgba(0,0,0,0.08);
}

.messages-header-fixed {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 80px 16px 14px;
    background: rgba(242, 242, 247, 0.9);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 0.5px solid rgba(0,0,0,0.08);
}

.messages-title {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #000;
    text-align: left;
    margin-bottom: 12px;
}

.messages-search {
    background: rgba(118, 118, 128, 0.12);
    border-radius: 10px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.messages-search input {
    border: none;
    background: none;
    flex: 1;
    font-size: 17px;
    color: #000;
    outline: none;
}

.messages-search input::placeholder { color: rgba(60, 60, 67, 0.6); }

/* iOS 26 Conversation Header (Liquid Glass) */
.conversation-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.conversation-header {
    display: flex;
    align-items: center;
    padding: 58px 12px 12px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 0.5px solid rgba(0,0,0,0.08);
    gap: 10px;
}

.conversation-back-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.conversation-back-btn svg {
    width: 20px;
    height: 20px;
    fill: var(--ios-blue);
}

.conversation-contact {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 8px 14px;
    border-radius: 22px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.conversation-contact-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c7d3e0, #a8b5c4);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: white;
}

.conversation-contact-name {
    font-size: 17px;
    font-weight: 600;
    color: #000;
}

.conversation-camera-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.conversation-camera-btn svg {
    width: 20px;
    height: 20px;
    fill: var(--ios-blue);
}

.messages-chat-area {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    background: #fff;
}

/* iOS 26 Message Input Bar (Liquid Glass) */
.message-input-bar {
    padding: 10px 12px 32px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 0.5px solid rgba(0,0,0,0.08);
    transition: bottom 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    z-index: 100;
}

.message-input-bar.keyboard-active {
    position: fixed;
    bottom: 290px;
    left: 0;
    right: 0;
    padding-bottom: 12px;
}

.messages-chat-area.keyboard-active {
    padding-bottom: 120px;
}

.message-plus-btn {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.message-plus-btn svg {
    width: 18px;
    height: 18px;
    fill: var(--ios-blue);
}

.message-input {
    flex: 1;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 20px;
    padding: 10px 16px;
    color: #000;
    font-size: 17px;
    outline: none;
}

.message-input::placeholder { color: rgba(60, 60, 67, 0.6); }

.send-btn {
    width: 32px;
    height: 32px;
    background: var(--ios-blue);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.15s var(--spring-bounce), opacity 0.15s;
}

.send-btn:active { transform: scale(0.9); }
.send-btn svg { fill: white; width: 16px; height: 16px; }

.msg-bubble {
    padding: 10px 14px;
    border-radius: 18px;
    margin-bottom: 3px;
    max-width: 75%;
    font-size: 17px;
    line-height: 1.35;
    animation: bubblePop 0.25s var(--spring-bounce);
}

@keyframes bubblePop {
    0% { transform: scale(0.85); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.msg-sent {
    background: var(--ios-blue);
    align-self: flex-end;
    color: white;
    border-bottom-right-radius: 4px;
}

.msg-received {
    background: rgba(229, 229, 234, 1);
    align-self: flex-start;
    color: #000;
    border-bottom-left-radius: 4px;
}

.msg-time {
    font-size: 11px;
    color: rgba(60, 60, 67, 0.6);
    text-align: center;
    margin: 10px 0 4px;
}

.msg-status {
    font-size: 10px;
    color: rgba(60, 60, 67, 0.6);
    text-align: right;
    margin-top: 2px;
}

/* Contact Thread Item */
.thread-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 0.5px solid rgba(0,0,0,0.08);
    transition: background 0.15s;
}

.thread-item:active { background: rgba(0,0,0,0.04); }

.thread-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a8a8ad, #8e8e93);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin-right: 12px;
}

.thread-info { flex: 1; }
.thread-name { font-size: 17px; font-weight: 600; color: #000; }
.thread-preview { font-size: 15px; color: rgba(60, 60, 67, 0.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; margin-top: 2px; }
.thread-time { font-size: 15px; color: rgba(60, 60, 67, 0.6); }
.thread-chevron { color: rgba(60, 60, 67, 0.3); margin-left: 8px; }

/* === PHONE APP (iOS 26 Unified Layout) === */
.phone-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--ios-gray-light);
}

.phone-unified-header {
    padding: 54px 20px 14px;
    background: rgba(242, 242, 247, 0.95);
    border-bottom: 0.5px solid rgba(0,0,0,0.08);
}

.phone-title {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #000;
}

.phone-favorites {
    display: flex;
    gap: 12px;
    padding: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.favorite-card {
    flex-shrink: 0;
    width: 90px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    padding: 14px 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.favorite-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a8a8ad, #8e8e93);
    margin: 0 auto 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: 600;
    font-size: 18px;
}

.favorite-name {
    font-size: 12px;
    font-weight: 500;
    color: #000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.favorite-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 10px;
}

.favorite-action {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0,0,0,0.05);
    display: flex;
    justify-content: center;
    align-items: center;
}

.favorite-action svg { width: 14px; height: 14px; fill: var(--ios-blue); }

.phone-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.98);
    border-top: 0.5px solid rgba(0,0,0,0.08);
    padding: 8px 0 28px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.phone-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--ios-gray);
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
}

.phone-tab.active { color: var(--ios-blue); }
.phone-tab svg { width: 24px; height: 24px; }

.dialpad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 20px 40px;
    justify-items: center;
}

.dial-btn {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    font-weight: 300;
    color: #000;
    transition: transform 0.15s var(--spring-bounce), background 0.15s;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.dial-btn:active {
    transform: scale(0.95);
    background: rgba(200,200,200,0.6);
}

.dial-letters {
    font-size: 10px;
    font-weight: 500;
    margin-top: -2px;
    color: rgba(0,0,0,0.5);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.call-btn {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--ios-green);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto 0;
    box-shadow: 0 4px 16px rgba(52, 199, 89, 0.35);
    transition: transform 0.15s var(--spring-bounce);
}

.call-btn:active { transform: scale(0.9); }
.call-btn svg { fill: white; width: 28px; height: 28px; }

/* === SAFARI APP (iOS 26 Liquid Glass) === */
.safari-browser {
    background: #fff;
    color: #000;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.safari-address-bar {
    background: rgba(242, 242, 247, 0.9);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 64px 16px 10px;
    z-index: 10;
}

.safari-input-wrapper {
    background: rgba(118, 118, 128, 0.12);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.safari-input {
    border: none;
    background: none;
    width: 100%;
    font-size: 17px;
    text-align: center;
    outline: none;
    color: #000;
}

.safari-toolbar-bottom {
    background: rgba(242, 242, 247, 0.95);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 10px 24px 30px;
    display: flex;
    justify-content: space-between;
    border-top: 0.5px solid rgba(0,0,0,0.08);
}

.safari-tool-btn {
    color: var(--ios-blue);
    cursor: pointer;
    padding: 6px;
}

.safari-tool-btn svg { width: 22px; height: 22px; }

.safari-iframe-container { flex: 1; background: #fff; }
.safari-iframe { width: 100%; height: 100%; border: none; }

/* === WEATHER APP (iOS 26 Liquid Glass) === */
.weather-app {
    height: 100%;
    background: linear-gradient(180deg, #47bfff 0%, #1e90ff 40%, #0066cc 100%);
    color: white;
    padding-top: 70px;
    position: relative;
    overflow-y: auto;
}

.weather-top { text-align: center; padding: 0 20px; }
.weather-location { font-size: 32px; font-weight: 400; margin-bottom: 4px; }
.weather-temp { font-size: 102px; font-weight: 200; line-height: 1; letter-spacing: -4px; }
.weather-desc { font-size: 20px; font-weight: 500; opacity: 0.95; margin-top: 4px; }
.weather-hi-lo { font-size: 18px; opacity: 0.85; margin-top: 2px; }

.weather-card {
    margin: 24px 16px;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,0.25);
}

.weather-card-title {
    font-size: 13px;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.weather-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.weather-row:last-child { border-bottom: none; }
.weather-loading { text-align: center; padding-top: 100px; }

.weather-floating-btns {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.weather-float-btn {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.3);
}

.weather-float-btn svg { fill: white; width: 20px; height: 20px; }

/* === NOTES APP (iOS 26 Style) === */
.notes-container {
    background: var(--ios-gray-light);
    height: 100%;
    padding: 16px;
}

.note-item {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: transform 0.15s var(--spring-bounce);
}

.note-item:active { transform: scale(0.98); }
.note-title { font-size: 17px; font-weight: 600; color: #000; }
.note-preview { font-size: 15px; color: rgba(60, 60, 67, 0.6); margin-top: 3px; }

.add-note-btn {
    position: absolute;
    bottom: 36px;
    right: 20px;
    width: 52px;
    height: 52px;
    background: var(--ios-yellow);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 26px;
    color: #000;
    box-shadow: 0 4px 16px rgba(255,204,0,0.35);
    cursor: pointer;
    transition: transform 0.15s var(--spring-bounce);
}

.add-note-btn:active { transform: scale(0.9); }

/* Note Editor (iOS 26) */
.note-editor {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--ios-gray-light);
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.note-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px 16px 14px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 0.5px solid rgba(0,0,0,0.08);
}

.note-editor-header .back-btn,
.note-editor-header .save-btn {
    color: var(--ios-blue);
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
}

.note-title-input {
    border: none;
    background: transparent;
    font-size: 28px;
    font-weight: 700;
    color: #000;
    padding: 20px 16px 8px;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.note-title-input::placeholder {
    color: rgba(60, 60, 67, 0.3);
}

.note-textarea {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 17px;
    color: #000;
    padding: 0 16px 20px;
    outline: none;
    resize: none;
    line-height: 1.5;
    width: 100%;
    box-sizing: border-box;
}

.note-textarea::placeholder {
    color: rgba(60, 60, 67, 0.3);
}

/* === MUSIC APP (iOS 26 Dark Theme) === */
.music26-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #000;
    padding-bottom: 80px;
    overflow-y: auto;
}

.music26-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 56px 16px 0;
}

.music26-back {
    width: 28px;
    height: 28px;
    fill: #ff375f;
    cursor: pointer;
}

.music26-header-actions {
    display: flex;
    gap: 20px;
}

.music26-header-actions svg {
    width: 22px;
    height: 22px;
    fill: #ff375f;
    cursor: pointer;
}

.music26-title {
    font-size: 34px;
    font-weight: 700;
    color: #fff;
    padding: 8px 16px 12px;
    letter-spacing: -0.5px;
}

.music26-search {
    display: flex;
    align-items: center;
    background: #1c1c1e;
    border-radius: 10px;
    margin: 0 16px 16px;
    padding: 8px 12px;
    gap: 8px;
}

.music26-search svg {
    width: 18px;
    height: 18px;
    fill: #8e8e93;
    flex-shrink: 0;
}

.music26-search input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 17px;
    outline: none;
}

.music26-search input::placeholder {
    color: #8e8e93;
}

.music26-mic {
    fill: #8e8e93 !important;
}

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

.music26-row {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    gap: 12px;
    cursor: pointer;
}

.music26-row:active {
    background: rgba(255,255,255,0.05);
}

.playlist-icon {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.playlist-icon svg {
    width: 28px;
    height: 28px;
}

.folder-icon {
    background: #1c1c1e;
    position: relative;
}

.folder-icon svg:first-child {
    fill: #8e8e93;
    position: absolute;
    left: 6px;
}

.folder-icon svg:last-child {
    fill: #ff375f;
    position: absolute;
    right: 6px;
}

.album-art-icon {
    background-size: cover;
    background-position: center;
}

.playlist-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.playlist-name {
    color: #fff;
    font-size: 17px;
    font-weight: 400;
}

.playlist-count {
    color: #8e8e93;
    font-size: 15px;
}

.playlist-chevron {
    width: 20px;
    height: 20px;
    fill: #8e8e93;
    flex-shrink: 0;
}

.music26-miniplayer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: #1c1c1e;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 12px;
    cursor: pointer;
    border-top: 0.5px solid rgba(255,255,255,0.1);
}

.miniplayer-art {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    background-color: #333;
    flex-shrink: 0;
}

.miniplayer-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.miniplayer-title {
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.miniplayer-artist {
    color: #8e8e93;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.miniplayer-play {
    width: 28px;
    height: 28px;
    fill: #fff;
    flex-shrink: 0;
}

.miniplayer-search {
    width: 24px;
    height: 24px;
    fill: #ff375f;
    flex-shrink: 0;
}

.music26-folder-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px 16px;
}

.folder-icon-large {
    width: 60px;
    height: 60px;
    background: #1c1c1e;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.folder-icon-large svg:first-child {
    fill: #8e8e93;
    width: 28px;
    height: 28px;
    position: absolute;
    left: 8px;
}

.folder-icon-large svg:last-child {
    fill: #ff375f;
    width: 28px;
    height: 28px;
    position: absolute;
    right: 8px;
}

.folder-name {
    color: #fff;
    font-size: 22px;
    font-weight: 600;
}

.music26-action-btns {
    display: flex;
    gap: 12px;
    padding: 0 16px 16px;
}

.music26-play-btn,
.music26-shuffle-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 0;
    border-radius: 8px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.music26-play-btn {
    background: #ff375f;
    color: #fff;
}

.music26-play-btn svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

.music26-shuffle-btn {
    background: rgba(255,55,95,0.15);
    color: #ff375f;
}

.music26-shuffle-btn svg {
    width: 18px;
    height: 18px;
    fill: #ff375f;
}

.song-row {
    border-bottom: 0.5px solid rgba(255,255,255,0.1);
}

.song-art {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    flex-shrink: 0;
}

.song-name {
    flex: 1;
    color: #fff;
    font-size: 17px;
}

/* === PHOTOS APP (iOS 26 Two-Tab Design) === */
.photos-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
}

.photos-header {
    padding: 70px 20px 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.photos-header-title {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #000;
    margin-bottom: 12px;
}

.photos-tabs {
    display: flex;
    gap: 0;
    background: transparent;
    padding: 0;
    border-bottom: 0.5px solid rgba(0,0,0,0.08);
}

.photo-tab {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--ios-gray);
    position: relative;
    cursor: pointer;
}

.photo-tab.active {
    color: #000;
}

.photo-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: #000;
    border-radius: 1px;
}

.photos-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    background: #000;
    width: 100%;
    box-sizing: border-box;
}

.photo-thumb {
    width: 100% !important;
    min-width: 0;
    max-width: 100%;
    aspect-ratio: 1;
    background: #e5e5e5;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: opacity 0.15s;
}

.photo-thumb:active { opacity: 0.7; }

.full-photo-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.25s ease;
}

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

.full-photo-header {
    padding: 56px 20px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.full-photo-img {
    flex: 1;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* === CAMERA APP (iOS 26 Simplified) === */
#camera-interface {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: none;
    flex-direction: column;
}

* { -webkit-tap-highlight-color: transparent; outline: none; }

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

#camera-stream.mirror { transform: scaleX(-1); }

.camera-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    pointer-events: none;
    z-index: 5;
}

.camera-top-bar {
    height: 70px;
    padding: 40px 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: auto;
}

.camera-top-btn {
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.camera-top-btn svg { fill: white; width: 18px; height: 18px; }

.camera-mode-selector {
    position: absolute;
    bottom: 140px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 24px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    pointer-events: auto;
}

.camera-mode { 
    opacity: 0.5; 
    transition: opacity 0.2s, color 0.2s; 
    cursor: pointer;
    padding: 6px 10px;
}
.camera-mode.active { 
    color: var(--ios-yellow); 
    opacity: 1; 
}

.camera-bottom-area {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 130px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: 20px;
    box-sizing: border-box;
    pointer-events: auto;
}

.shutter-btn {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: white;
    border: 4px solid rgba(255,255,255,0.4);
    cursor: pointer;
    transition: transform 0.15s var(--spring-bounce);
}

.shutter-btn:active { transform: scale(0.92); }

.switch-cam-btn, .cam-preview-box {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.switch-cam-btn svg { width: 22px; height: 22px; fill: white; }

.cam-preview-box {
    background: #333;
    background-size: cover;
    overflow: hidden;
    border-radius: 8px;
}

/* === CALCULATOR APP (iOS 26 Style) === */
.calc-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #f5f5f7;
    padding: 20px;
    box-sizing: border-box;
    justify-content: flex-end;
}

.calc-display {
    text-align: right;
    font-size: 68px;
    font-weight: 300;
    margin-bottom: 16px;
    color: #000;
    padding: 0 10px;
}

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

.calc-btn {
    aspect-ratio: 1;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    font-weight: 400;
    cursor: pointer;
    transition: transform 0.1s var(--spring-bounce), filter 0.1s;
}

.calc-btn:active { transform: scale(0.95); filter: brightness(0.9); }
.calc-btn.num { background: rgba(255, 255, 255, 0.9); color: #000; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.calc-btn.op { background: var(--ios-orange); color: white; }
.calc-btn.spec { background: rgba(165, 165, 170, 0.9); color: #000; }
.calc-btn.wide { grid-column: span 2; aspect-ratio: unset; border-radius: 40px; justify-content: flex-start; padding-left: 28px; }

/* === STOCKS APP (iOS 26 Style) === */
.stocks-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--ios-gray-light);
}

.stock-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: #fff;
    border-bottom: 0.5px solid rgba(0,0,0,0.08);
}

.stock-symbol { font-weight: 700; font-size: 17px; color: #000; }
.stock-name { font-size: 13px; color: rgba(60, 60, 67, 0.6); margin-top: 1px; }
.stock-chart { width: 70px; height: 24px; background: rgba(52, 199, 89, 0.12); border-radius: 4px; }
.stock-price-box {
    background: var(--ios-green);
    color: white;
    padding: 5px 10px;
    border-radius: 6px;
    min-width: 68px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

/* === CLOCK APP (iOS 26 Style) === */
.clock-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--ios-gray-light);
}

.world-clock-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #fff;
    border-bottom: 0.5px solid rgba(0,0,0,0.08);
}

.city-info { display: flex; flex-direction: column; }
.city-offset { font-size: 14px; color: rgba(60, 60, 67, 0.6); }
.city-name { font-size: 28px; font-weight: 300; color: #000; margin-top: 2px; }
.city-time { font-size: 48px; font-weight: 200; color: #000; letter-spacing: -2px; }

/* === CONTACTS APP (iOS Style) === */
.contacts-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #f2f2f7;
    position: relative;
}

.contacts-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 54px 16px 12px;
    background: rgba(242, 242, 247, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.contacts-back-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    cursor: pointer;
}

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

.contacts-list-scroll {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 80px;
    background: #fff;
}

.contacts-section-header {
    padding: 6px 16px;
    font-size: 15px;
    font-weight: 400;
    color: rgba(60, 60, 67, 0.6);
    background: #f2f2f7;
    position: sticky;
    top: 0;
}

.contact-row {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    background: #fff;
    border-bottom: 0.5px solid rgba(0,0,0,0.08);
    cursor: pointer;
}

.contact-row:active { background: rgba(0,0,0,0.04); }

.contact-avatar-ios {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(180deg, #a8b5c8 0%, #8090a8 100%);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 500;
    font-size: 15px;
    margin-right: 12px;
    flex-shrink: 0;
}

.contact-name-ios {
    font-size: 17px;
    color: #000;
}

.contact-firstname {
    font-weight: 400;
}

.contact-lastname {
    font-weight: 600;
    margin-left: 4px;
}

.contacts-empty {
    padding: 60px 20px;
    text-align: center;
    color: rgba(60, 60, 67, 0.6);
    font-size: 17px;
}

.contacts-alphabet-index {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 20;
    padding: 8px 0;
}

.alphabet-letter {
    font-size: 10px;
    font-weight: 600;
    color: #007AFF;
    padding: 1px 6px;
    cursor: pointer;
}

.contacts-bottom-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px 30px;
    background: rgba(242, 242, 247, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 0.5px solid rgba(0, 0, 0, 0.1);
}

.contacts-search-bar {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(118, 118, 128, 0.12);
    border-radius: 10px;
    padding: 8px 12px;
}

.contacts-search-bar input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 17px;
    color: #000;
    outline: none;
}

.contacts-search-bar input::placeholder { color: rgba(60, 60, 67, 0.6); }

.contacts-add-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* === NEW CONTACT EDITOR (iOS Style) === */
.new-contact-editor {
    min-height: 100%;
    background: #f2f2f7;
    padding-bottom: 40px;
}

.new-contact-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 54px 16px 12px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 0 0 12px 12px;
}

.nc-cancel {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

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

.nc-done {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
}

.nc-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px 20px;
}

.nc-avatar-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(180deg, #a8b5c8 0%, #7a8ba0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nc-add-photo {
    margin-top: 12px;
    font-size: 15px;
    font-weight: 500;
    color: #000;
    background: rgba(0, 0, 0, 0.06);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
}

.nc-form-group {
    margin: 16px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.nc-form-group input {
    width: 100%;
    padding: 14px 16px;
    border: none;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.1);
    background: transparent;
    font-size: 17px;
    font-family: inherit;
    color: #000;
    outline: none;
}

.nc-form-group input:last-child { border-bottom: none; }
.nc-form-group input::placeholder { color: rgba(60, 60, 67, 0.5); }

.nc-add-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    margin: 0 16px 1px;
    background: #fff;
    border-radius: 12px;
    cursor: pointer;
}

.nc-add-row:first-of-type { margin-top: 16px; }

.nc-add-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #34c759;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 300;
}

.nc-add-row span {
    font-size: 17px;
    color: #000;
}

.nc-option-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    margin: 0 16px 1px;
    background: #fff;
    border-radius: 12px;
}

.nc-option-row > span {
    font-size: 17px;
    color: #000;
}

.nc-option-value {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nc-blue {
    color: #007AFF;
    font-size: 17px;
}

.nc-phone-field, .nc-email-field {
    margin: 0 16px 1px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.nc-phone-field input, .nc-email-field input {
    width: 100%;
    padding: 14px 16px;
    border: none;
    background: transparent;
    font-size: 17px;
    font-family: inherit;
    color: #000;
    outline: none;
}

.nc-phone-field input::placeholder, .nc-email-field input::placeholder {
    color: rgba(60, 60, 67, 0.5);
}

/* === LOCK SCREEN (iOS 26) === */
#lock-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://cdn.builder.io/api/v1/assets/4bdb8a64a9b24066ad1311bb7783fba0/backdrop.jpg') center/cover no-repeat;
    z-index: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 70px;
    box-sizing: border-box;
    transition: transform 0.5s var(--spring-smooth), opacity 0.3s ease;
}

#lock-screen.unlocking {
    transform: translateY(-100%);
    opacity: 0;
}

#lock-screen.hidden {
    display: none;
}

.lock-date {
    font-size: 22px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.lock-time {
    font-size: 130px;
    font-weight: 500;
    letter-spacing: -1px;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(210, 230, 255, 0.95) 35%,
        rgba(170, 210, 255, 0.88) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 6px 28px rgba(100, 160, 255, 0.55));
    position: relative;
    margin-top: -4px;
}

.lock-time::before {
    content: attr(data-time);
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.3) 0%, 
        rgba(255, 255, 255, 0.1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(8px);
    z-index: -1;
}


/* === HOME BAR === */
#home-bar-container {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50vw;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100010;
    cursor: pointer;
    touch-action: none;
}

#home-bar {
    width: 134px;
    height: 5px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 100px;
    transition: transform 0.2s var(--spring-bounce), background 0.3s ease;
}

#home-bar.dark {
    background: rgba(0, 0, 0, 0.55);
}

#home-bar-container.swiping #home-bar {
    transform: translateY(-8px) scaleX(1.08);
}

/* === NOTIFICATIONS (iOS 26 Liquid Glass) === */
#notification-area {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    z-index: 6000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.notification {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 18px;
    padding: 12px 14px;
    color: #000;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
    pointer-events: auto;
    animation: slideDown 0.4s var(--spring-smooth) forwards;
}

@keyframes slideDown {
    from { transform: translateY(-80px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.notification.fade-out {
    animation: fadeOut 0.4s forwards;
}

@keyframes fadeOut {
    to { opacity: 0; transform: translateY(-16px) scale(0.96); }
}

.notif-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background-size: cover;
}

.notif-content { flex: 1; }
.notif-title { font-weight: 600; font-size: 14px; }
.notif-text { font-size: 14px; color: rgba(60, 60, 67, 0.6); margin-top: 1px; }

/* CC Home Indicator */
#home-indicator {
    width: 134px;
    height: 5px;
    background: rgba(0,0,0,0.3);
    border-radius: 100px;
    margin: auto auto 8px;
}

/* Scrollbar Styling - Hide all scrollbars */
::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
}

* {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

/* Fix for Photos grid */
.photos-grid * {
    box-sizing: border-box;
}

/* === APP STORE (iOS 26 Games Style - Light Mode) === */
.appstore-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #f2f2f7;
}

.appstore-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px 20px 16px;
    background: rgba(242, 242, 247, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.appstore-title {
    font-size: 34px;
    font-weight: 700;
    color: #000;
}

.appstore-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.appstore-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.appstore-avatar svg {
    width: 22px;
    height: 22px;
}

.appstore-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 16px 100px;
    -webkit-overflow-scrolling: touch;
}

.appstore-featured {
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 12px;
}

.featured-card {
    height: 320px;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
}

.featured-info {
    padding: 20px;
    color: white;
}

.featured-app-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.featured-app-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background-size: cover;
    background-position: center;
}

.featured-app-name {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-dot {
    color: rgba(255,255,255,0.6);
}

.featured-event {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
}

.featured-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.featured-subtitle {
    font-size: 15px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 16px;
}

.featured-play-btn {
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    border-radius: 20px;
    padding: 10px 32px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    width: fit-content;
}

.featured-play-btn:active {
    background: rgba(255,255,255,0.4);
}

.appstore-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 24px;
}

.appstore-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0,0,0,0.2);
    transition: background 0.2s;
}

.appstore-dots .dot.active {
    background: #000;
}

.appstore-section {
    margin-bottom: 24px;
}

.appstore-section .section-title {
    font-size: 22px;
    font-weight: 700;
    color: #000;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.apps-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.apps-scroll::-webkit-scrollbar {
    display: none;
}

.app-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.app-icon-large {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.app-card .app-name {
    font-size: 12px;
    color: #000;
    text-align: center;
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.new-games-banner {
    border-radius: 16px;
    padding: 16px;
    overflow: hidden;
}

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

.app-icon-small {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.appstore-tabbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-top: 0.5px solid rgba(0,0,0,0.1);
    padding: 8px 0 30px;
    z-index: 100;
}

.appstore-tabbar .tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px 0;
    cursor: pointer;
    color: #8e8e93;
    transition: color 0.2s;
}

.appstore-tabbar .tab-item.active {
    color: #007AFF;
}

.appstore-tabbar .tab-item svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.appstore-tabbar .tab-item span {
    font-size: 10px;
    font-weight: 500;
}

/* App Store Search Bar */
.appstore-search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(142, 142, 147, 0.12);
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 16px;
}

.appstore-search-bar input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 17px;
    color: #000;
    outline: none;
}

.appstore-search-bar input::placeholder {
    color: #8e8e93;
}

/* App Store List Items */
.appstore-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 12px;
    margin-bottom: 8px;
    cursor: pointer;
}

.app-icon-medium {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.app-list-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.app-list-name {
    font-size: 16px;
    font-weight: 500;
    color: #000;
}

.app-list-category {
    font-size: 13px;
    color: #8e8e93;
}

.app-get-btn, .app-open-btn {
    padding: 6px 20px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.app-get-btn {
    background: #007AFF;
    color: white;
}

.app-open-btn {
    background: rgba(142, 142, 147, 0.12);
    color: #007AFF;
}

/* Discover Tags */
.discover-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.discover-tag {
    padding: 8px 16px;
    background: rgba(142, 142, 147, 0.12);
    border-radius: 18px;
    font-size: 15px;
    color: #007AFF;
    cursor: pointer;
}

.discover-tag:active {
    background: rgba(0, 122, 255, 0.1);
}

/* App Detail View */
.app-detail-header {
    padding: 12px 16px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.app-detail-back {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.app-detail-content {
    padding: 16px;
    padding-bottom: 100px;
}

.app-detail-top {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.app-detail-icon {
    width: 100px;
    height: 100px;
    border-radius: 22px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.app-detail-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.app-detail-name {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: #000;
}

.app-detail-category {
    font-size: 14px;
    color: #8e8e93;
    margin: 0 0 8px 0;
}

.app-detail-get-btn {
    padding: 8px 24px;
    background: #007AFF;
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: fit-content;
}

.app-detail-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 16px;
    background: rgba(142, 142, 147, 0.06);
    border-radius: 12px;
    margin-bottom: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.stat-value {
    font-size: 18px;
    font-weight: 600;
    color: #000;
}

.stat-label {
    font-size: 12px;
    color: #8e8e93;
    text-transform: uppercase;
}

.stat-divider {
    width: 1px;
    background: rgba(0,0,0,0.1);
}

.app-detail-section {
    margin-bottom: 20px;
}

.app-detail-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #000;
}

.app-detail-section p {
    font-size: 15px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* === FILES APP (iOS 26 Liquid Glass) === */
.files-icon {
    width: 60px;
    height: 60px;
    border-radius: 13px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.files-icon svg {
    width: 100%;
    height: 100%;
}

.files-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--ios-gray-light);
}

.files-tabs {
    display: flex;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 0.5px solid rgba(0,0,0,0.08);
    padding: 0 16px;
    margin-top: 60px;
}

.files-tab {
    flex: 1;
    padding: 12px 0;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    color: var(--ios-gray);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.files-tab.active {
    color: var(--ios-blue);
    border-bottom-color: var(--ios-blue);
}

.files-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    -webkit-overflow-scrolling: touch;
}

.files-locations {
    margin-bottom: 20px;
}

.files-section-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--ios-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    padding: 0 4px;
}

.files-location-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: transform 0.15s, background 0.15s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.files-location-card:active {
    transform: scale(0.98);
    background: rgba(255,255,255,0.9);
}

.files-location-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.files-location-icon svg {
    width: 22px;
    height: 22px;
}

.files-location-icon.blue { background: linear-gradient(135deg, #5AC8FA, #007AFF); }
.files-location-icon.orange { background: linear-gradient(135deg, #FF9500, #FF6B00); }
.files-location-icon.green { background: linear-gradient(135deg, #34C759, #30B850); }
.files-location-icon.purple { background: linear-gradient(135deg, #AF52DE, #8E44AD); }

.files-location-icon svg { fill: white; }

.files-location-info {
    flex: 1;
}

.files-location-name {
    font-size: 17px;
    font-weight: 500;
    color: #000;
}

.files-location-meta {
    font-size: 13px;
    color: var(--ios-gray);
    margin-top: 2px;
}

.files-location-arrow {
    color: rgba(60, 60, 67, 0.3);
    font-size: 20px;
}

.files-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 0.5px solid rgba(0,0,0,0.08);
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.files-breadcrumb-item {
    font-size: 15px;
    color: var(--ios-blue);
    cursor: pointer;
    flex-shrink: 0;
}

.files-breadcrumb-item.current {
    color: #000;
    font-weight: 600;
}

.files-breadcrumb-separator {
    color: rgba(60, 60, 67, 0.3);
    font-size: 14px;
}

.files-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-top: 0.5px solid rgba(0,0,0,0.08);
}

.files-toolbar-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--ios-blue);
    font-size: 15px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.15s;
}

.files-toolbar-btn:active {
    background: rgba(0,122,255,0.1);
}

.files-toolbar-btn svg {
    width: 20px;
    height: 20px;
    fill: var(--ios-blue);
}

.files-list {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.files-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 0.5px solid rgba(0,0,0,0.08);
    cursor: pointer;
    transition: background 0.15s;
}

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

.files-item:active {
    background: rgba(0,0,0,0.04);
}

.files-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.files-item-icon.folder {
    background: linear-gradient(135deg, #5AC8FA, #007AFF);
}

.files-item-icon.folder svg {
    fill: white;
    width: 22px;
    height: 22px;
}

.files-item-icon.file {
    background: #f2f2f7;
}

.files-item-icon.file svg {
    fill: var(--ios-gray);
    width: 20px;
    height: 20px;
}

.files-item-icon.image {
    background: linear-gradient(135deg, #FF9500, #FF6B00);
}

.files-item-icon.image svg { fill: white; }

.files-item-icon.video {
    background: linear-gradient(135deg, #FF3B30, #FF2D55);
}

.files-item-icon.video svg { fill: white; }

.files-item-icon.audio {
    background: linear-gradient(135deg, #FF2D55, #AF52DE);
}

.files-item-icon.audio svg { fill: white; }

.files-item-icon.document {
    background: linear-gradient(135deg, #007AFF, #5856D6);
}

.files-item-icon.document svg { fill: white; }

.files-item-info {
    flex: 1;
    min-width: 0;
}

.files-item-name {
    font-size: 17px;
    color: #000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.files-item-meta {
    font-size: 13px;
    color: var(--ios-gray);
    margin-top: 2px;
}

.files-item-arrow {
    color: rgba(60, 60, 67, 0.3);
    font-size: 18px;
    margin-left: 8px;
}

.files-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.files-empty-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #5AC8FA, #007AFF);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.files-empty-icon svg {
    width: 44px;
    height: 44px;
    fill: white;
}

.files-empty-title {
    font-size: 20px;
    font-weight: 600;
    color: #000;
    margin-bottom: 8px;
}

.files-empty-text {
    font-size: 15px;
    color: var(--ios-gray);
    max-width: 280px;
    line-height: 1.4;
}

.files-grant-btn {
    background: var(--ios-blue);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    margin-top: 24px;
    cursor: pointer;
    transition: transform 0.15s, opacity 0.15s;
}

.files-grant-btn:active {
    transform: scale(0.96);
    opacity: 0.9;
}

.files-action-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.files-action-sheet.active {
    opacity: 1;
    visibility: visible;
}

.files-action-sheet-content {
    position: absolute;
    bottom: 0;
    left: 8px;
    right: 8px;
    transform: translateY(100%);
    transition: transform 0.35s var(--spring-smooth);
}

.files-action-sheet.active .files-action-sheet-content {
    transform: translateY(0);
}

.files-action-group {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 8px;
}

.files-action-item {
    padding: 16px;
    text-align: center;
    font-size: 20px;
    color: var(--ios-blue);
    border-bottom: 0.5px solid rgba(0,0,0,0.08);
    cursor: pointer;
    transition: background 0.15s;
}

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

.files-action-item:active {
    background: rgba(0,0,0,0.04);
}

.files-action-item.destructive {
    color: var(--ios-red);
}

.files-action-cancel {
    background: white;
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: var(--ios-blue);
    margin-bottom: 8px;
    cursor: pointer;
}

.files-quick-look {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.files-quick-look.active {
    opacity: 1;
    visibility: visible;
}

.files-quick-look-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px 16px 12px;
    background: rgba(0,0,0,0.6);
}

.files-quick-look-close {
    color: var(--ios-blue);
    font-size: 17px;
    cursor: pointer;
}

.files-quick-look-title {
    color: white;
    font-size: 17px;
    font-weight: 600;
    flex: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 40px;
}

.files-quick-look-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow: auto;
}

.files-quick-look-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.files-quick-look-content pre {
    color: white;
    font-size: 14px;
    white-space: pre-wrap;
    word-break: break-word;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    max-width: 100%;
    max-height: 100%;
    overflow: auto;
}

.files-unsupported {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.files-unsupported-icon {
    font-size: 60px;
    margin-bottom: 16px;
}

.files-search-bar {
    margin: 0 0 16px 0;
    position: relative;
}

.files-search-input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: none;
    border-radius: 10px;
    background: rgba(142,142,147,0.12);
    font-size: 17px;
    color: #000;
    outline: none;
}

.files-search-input::placeholder {
    color: rgba(60, 60, 67, 0.6);
}

.files-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    fill: rgba(60, 60, 67, 0.6);
}

.files-sort-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    overflow: hidden;
    z-index: 100;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95) translateY(-10px);
    transform-origin: top right;
    transition: all 0.2s var(--spring-smooth);
}

.files-sort-menu.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
}

.files-sort-item {
    padding: 12px 16px;
    font-size: 17px;
    color: #000;
    border-bottom: 0.5px solid rgba(0,0,0,0.08);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.files-sort-item:active {
    background: rgba(0,0,0,0.04);
}

.files-sort-item.active::after {
    content: '✓';
    color: var(--ios-blue);
}

.files-recents-list {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* === iOS 26 FILES APP NEW DESIGN === */
.files-container-ios26 {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #f2f2f7;
    padding-top: 54px;
}

.files-header-ios26 {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
}

.files-back-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #007AFF;
    cursor: pointer;
    margin-right: 4px;
}

.files-header-title {
    flex: 1;
    font-size: 20px;
    font-weight: 600;
    color: #000;
}

.files-header-actions {
    display: flex;
    gap: 8px;
}

.files-header-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #007AFF;
    cursor: pointer;
    border-radius: 20px;
    transition: background 0.15s;
}

.files-header-btn:active {
    background: rgba(0,122,255,0.1);
}

.files-search-ios26 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 16px;
    padding: 10px 12px;
    background: rgba(142,142,147,0.12);
    border-radius: 10px;
}

.files-search-ios26 input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 17px;
    color: #000;
    outline: none;
}

.files-search-ios26 input::placeholder {
    color: rgba(60,60,67,0.6);
}

.files-content-ios26 {
    flex: 1;
    overflow-y: auto;
    padding: 0 16px 16px;
    -webkit-overflow-scrolling: touch;
}

.files-list-ios26 {
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.files-item-ios26 {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 0.5px solid rgba(0,0,0,0.08);
    cursor: pointer;
    transition: background 0.15s;
}

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

.files-item-ios26:active {
    background: rgba(0,0,0,0.04);
}

.files-item-icon-ios26 {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 14px;
    flex-shrink: 0;
}

.files-item-info-ios26 {
    flex: 1;
    min-width: 0;
}

.files-item-name-ios26 {
    font-size: 17px;
    font-weight: 400;
    color: #000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.files-item-meta-ios26 {
    font-size: 13px;
    color: rgba(60,60,67,0.6);
    margin-top: 2px;
}

.files-item-arrow-ios26 {
    color: rgba(60,60,67,0.3);
    font-size: 22px;
    font-weight: 300;
    margin-left: 8px;
}

.files-empty-ios26 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.files-empty-icon-ios26 {
    margin-bottom: 16px;
}

.files-empty-title-ios26 {
    font-size: 20px;
    font-weight: 600;
    color: #000;
    margin-bottom: 8px;
}

.files-empty-text-ios26 {
    font-size: 15px;
    color: rgba(60,60,67,0.6);
}

.files-bottom-tabs-ios26 {
    display: flex;
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-top: 0.5px solid rgba(0,0,0,0.12);
    padding: 6px 0;
    padding-bottom: calc(6px + env(safe-area-inset-bottom, 0));
}

.files-bottom-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 4px 0;
    color: rgba(60,60,67,0.6);
    cursor: pointer;
    transition: color 0.15s;
}

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

.files-bottom-tab span {
    font-size: 10px;
    font-weight: 500;
}

.files-sort-menu-ios26 {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    min-width: 240px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s var(--spring-smooth);
}

.files-sort-menu-ios26.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.files-sort-item-ios26 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    font-size: 17px;
    color: #000;
    border-bottom: 0.5px solid rgba(0,0,0,0.08);
    cursor: pointer;
}

.files-sort-item-ios26:last-child {
    border-bottom: none;
}

.files-sort-item-ios26:active {
    background: rgba(0,0,0,0.04);
}

/* === iOS 26 CUSTOM KEYBOARD === */
#ios-keyboard {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100030;
    background: rgba(242, 242, 245, 0.92);
    backdrop-filter: blur(40px) saturate(150%);
    -webkit-backdrop-filter: blur(40px) saturate(150%);
    border-radius: 16px 16px 0 0;
    padding: 0 0 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    transform: translateY(0);
    transition: transform 0.4s var(--spring-bounce), opacity 0.25s ease;
    border-top: 0.5px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
}

#ios-keyboard.hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

#ios-keyboard.showing {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* Suggestion bar at top */
.keyboard-suggestions {
    display: flex;
    height: 44px;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.1);
}

.keyboard-suggestion {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 400;
    color: #000;
    cursor: pointer;
    position: relative;
}

.keyboard-suggestion:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10px;
    bottom: 10px;
    width: 0.5px;
    background: rgba(0, 0, 0, 0.15);
}

.keyboard-suggestion:active {
    background: rgba(0, 0, 0, 0.05);
}

.keyboard-container {
    padding: 8px 3px 10px 3px;
}

.keyboard-row {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 10px;
    padding: 0 3px;
}

.keyboard-row:last-child {
    margin-bottom: 0;
}

.keyboard-row:nth-child(3) .key:not(.key-shift):not(.key-backspace):not(.key-123):not(.key-abc) {
    flex: 1;
    max-width: 36px;
}

/* iOS 26 Keys: pure white, semi-transparent, no shadow/outline */
.key {
    min-width: 30px;
    height: 38px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
    font-weight: 400;
    letter-spacing: -0.5px;
    color: #000;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    flex: 1;
    max-width: 36px;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.key .key-letter {
    transition: opacity 0.05s ease;
}

.key.pressed .key-letter {
    opacity: 0;
}

/* Key pressed state - no scale, just visual feedback */
.key:active:not(.key-has-popup) {
    background: rgba(200, 200, 205, 0.9);
}

/* Special keys: same white as regular keys */
.key-shift,
.key-backspace {
    flex: 1.4;
    max-width: 46px;
    background: rgba(255, 255, 255, 0.85);
}

.key-shift.active {
    background: rgba(255, 255, 255, 0.95);
}

.key-shift svg,
.key-backspace svg {
    fill: #000;
}

.key-123,
.key-abc {
    flex: 2.2;
    max-width: 60px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.3px;
    background: rgba(255, 255, 255, 0.85);
}

.key-emoji,
.key-mic {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    background: transparent;
    border-radius: 8px;
}

.key-space {
    flex: 1.5;
    max-width: none;
    min-width: 80px;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.key-return {
    flex: 2.2;
    max-width: 60px;
    background: rgba(255, 255, 255, 0.85);
}

.key-return svg {
    fill: #000;
}

.key-return:active {
    background: rgba(200, 200, 205, 0.9);
}

.keyboard-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px 6px 12px;
}

.keyboard-bottom-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
}

.keyboard-bottom-icon svg {
    width: 24px;
    height: 24px;
    fill: #000;
}

/* iOS 26 Key Popup - Extension morphing from key */
.key-popup {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 70px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 10px 10px 8px 8px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 10px;
    font-size: 28px;
    font-weight: 500;
    color: #000;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    pointer-events: none;
    z-index: 10001;
}

.key-popup.visible {
    display: flex;
}

/* Swipe trail canvas */
#swipe-trail-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10002;
}

/* Caret styling for custom keyboard inputs */
input[data-custom-keyboard],
textarea[data-custom-keyboard] {
    caret-color: var(--ios-blue);
}

/* === SIRI OVERLAY === */
#siri-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

#siri-overlay.hidden {
    display: none;
    opacity: 0;
}

#siri-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(30, 30, 40, 0.95) 0%, 
        rgba(50, 40, 70, 0.95) 50%,
        rgba(40, 30, 60, 0.95) 100%);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
}

#siri-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    text-align: center;
}

#siri-orb {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, 
        rgba(100, 150, 255, 0.8) 0%,
        rgba(200, 100, 255, 0.8) 50%,
        rgba(255, 100, 150, 0.8) 100%);
    position: relative;
    margin-bottom: 30px;
    box-shadow: 
        0 0 60px rgba(150, 100, 255, 0.5),
        0 0 100px rgba(100, 150, 255, 0.3);
    animation: siriPulse 2s ease-in-out infinite;
}

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

.siri-wave {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    animation: siriWave 2s ease-out infinite;
}

.siri-wave:nth-child(2) {
    animation-delay: 0.5s;
}

.siri-wave:nth-child(3) {
    animation-delay: 1s;
}

@keyframes siriWave {
    0% {
        width: 100%;
        height: 100%;
        opacity: 0.5;
    }
    100% {
        width: 250%;
        height: 250%;
        opacity: 0;
    }
}

#siri-orb.listening {
    animation: siriListening 0.5s ease-in-out infinite alternate;
}

@keyframes siriListening {
    0% { transform: scale(0.95); }
    100% { transform: scale(1.1); }
}

#siri-orb.speaking {
    animation: siriSpeaking 0.3s ease-in-out infinite alternate;
}

@keyframes siriSpeaking {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

#siri-status {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 20px;
    min-height: 24px;
}

#siri-transcript {
    color: white;
    font-size: 24px;
    font-weight: 600;
    max-width: 300px;
    min-height: 60px;
    margin-bottom: 20px;
}

#siri-response {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    font-weight: 400;
    max-width: 300px;
    line-height: 1.5;
    min-height: 50px;
}

#siri-buttons {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 16px;
    z-index: 2;
}

#siri-close, #siri-chat-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

#siri-close:active, #siri-chat-btn:active {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0.95);
}

#siri-chat-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #1c1c1e;
    z-index: 10002;
    display: flex;
    flex-direction: column;
    animation: siriChatSlideIn 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}

#siri-chat-overlay.hidden {
    display: none;
}

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

#siri-chat-header {
    display: flex;
    align-items: center;
    padding: 56px 16px 12px;
    gap: 12px;
    background: rgba(28, 28, 30, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 0.5px solid rgba(255,255,255,0.1);
}

.siri-chat-back {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.siri-chat-title {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
}

.siri-chat-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #ff5f6d, #ffc371);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.siri-chat-search-toggle {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s;
}

.siri-chat-search-toggle svg {
    fill: #8e8e93;
    transition: fill 0.2s;
}

.siri-chat-search-toggle.active {
    background: rgba(10, 132, 255, 0.2);
}

.siri-chat-search-toggle.active svg {
    fill: #0a84ff;
}

#siri-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.siri-chat-msg {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 16px;
    line-height: 1.4;
    animation: chatMsgIn 0.25s ease-out;
}

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

.siri-chat-msg.user {
    background: #0a84ff;
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 6px;
}

.siri-chat-msg.assistant {
    background: #2c2c2e;
    color: #fff;
    align-self: flex-start;
    border-bottom-left-radius: 6px;
}

.siri-chat-msg.thinking {
    background: #2c2c2e;
    color: #8e8e93;
    align-self: flex-start;
    font-style: italic;
}

.siri-chat-msg.thinking::after {
    content: '';
    display: inline-block;
    animation: thinkingDots 1.4s infinite;
}

@keyframes thinkingDots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

.siri-chat-web-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #8e8e93;
    margin-bottom: 6px;
}

.siri-chat-web-indicator svg {
    width: 14px;
    height: 14px;
    fill: #8e8e93;
}

#siri-chat-input-area {
    display: flex;
    align-items: center;
    padding: 12px 16px 30px;
    gap: 12px;
    background: rgba(28, 28, 30, 0.95);
    backdrop-filter: blur(20px);
    border-top: 0.5px solid rgba(255,255,255,0.1);
    transition: bottom 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    z-index: 100;
}

#siri-chat-input-area.keyboard-active {
    position: fixed;
    bottom: 290px;
    left: 0;
    right: 0;
    padding-bottom: 12px;
}

#siri-chat-messages.keyboard-active {
    padding-bottom: 120px;
}

.apple-intelligence-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6B6B 0%, #9B59B6 50%, #3498DB 100%);
}

#siri-chat-input {
    flex: 1;
    height: 40px;
    background: #2c2c2e;
    border: none;
    border-radius: 20px;
    padding: 0 16px;
    color: #fff;
    font-size: 16px;
    outline: none;
}

#siri-chat-input::placeholder {
    color: #8e8e93;
}

#siri-chat-send {
    width: 40px;
    height: 40px;
    background: #0a84ff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s, background 0.15s;
}

#siri-chat-send:active {
    transform: scale(0.92);
    background: #0070e0;
}

/* Voice Typing Mode */
.voice-typing-container {
    display: flex;
    flex-direction: column;
    min-height: 260px;
    height: 260px;
    padding: 16px;
    position: relative;
}

.voice-typing-back {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.voice-typing-back:active {
    background: rgba(255, 255, 255, 0.5);
}

.voice-typing-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: -40px;
    gap: 16px;
}

.voice-typing-pulse {
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(0, 122, 255, 0.2);
    transition: transform 0.1s ease-out, opacity 0.1s ease-out;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.voice-typing-mic {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.3);
    z-index: 1;
    transition: transform 0.2s, box-shadow 0.2s;
}

.voice-typing-mic.active {
    box-shadow: 0 4px 30px rgba(0, 122, 255, 0.5);
    animation: micPulse 1.5s ease-in-out infinite;
}

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

.voice-typing-status {
    font-size: 15px;
    color: #666;
    text-align: center;
    max-width: 80%;
    min-height: 20px;
}

.keyboard-mic-btn {
    cursor: pointer;
}

.keyboard-mic-btn:active svg {
    fill: #007AFF;
}

/* === CONTACT POPUP === */
#contact-popup {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%) translateY(-120px);
    width: calc(100% - 32px);
    max-width: 388px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 200000;
    opacity: 0;
    transition: transform 0.4s var(--spring-smooth), opacity 0.3s ease;
}

#contact-popup.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

#contact-popup.hidden {
    display: none;
}

.contact-popup-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5ac8fa, #007aff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
}

.contact-popup-info {
    flex: 1;
    min-width: 0;
}

.contact-popup-name {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-popup-number {
    font-size: 15px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-popup-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.contact-popup-call,
.contact-popup-message {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.contact-popup-call:active,
.contact-popup-message:active {
    background: rgba(0, 0, 0, 0.12);
}

/* === CONTACT CONTEXT MENU === */
#contact-context-menu {
    position: absolute;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), 0 0 0 0.5px rgba(0, 0, 0, 0.05);
    z-index: 150000;
    overflow: hidden;
    min-width: 140px;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.2s ease, transform 0.2s var(--spring-smooth);
}

#contact-context-menu.visible {
    opacity: 1;
    transform: scale(1);
}

#contact-context-menu.hidden {
    display: none;
}

.contact-menu-option {
    padding: 14px 20px;
    font-size: 17px;
    color: #000;
    cursor: pointer;
    transition: background 0.15s;
}

.contact-menu-option:active {
    background: rgba(0, 0, 0, 0.08);
}

.contact-menu-option.delete {
    color: #ff3b30;
}

.contact-menu-divider {
    height: 0.5px;
    background: rgba(0, 0, 0, 0.1);
    margin: 0 12px;
}

/* === NOTES APP iOS 26 HEADER === */
.note-editor-header-ios26 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 8px 30px 8px;
    margin-bottom: 4px;
}

.note-back-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 22px;
    transition: background 0.15s;
}

.note-back-btn:active {
    background: rgba(0, 122, 255, 0.1);
}

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

.note-search-btn,
.note-menu-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 22px;
    transition: background 0.15s;
}

.note-search-btn:active,
.note-menu-btn:active {
    background: rgba(0, 122, 255, 0.1);
}

/* === NOTE MENU POPUP === */
.note-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.note-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.note-menu-sheet {
    position: absolute;
    bottom: 0;
    left: 8px;
    right: 8px;
    transform: translateY(100%);
    transition: transform 0.35s var(--spring-smooth);
}

.note-menu-overlay.active .note-menu-sheet {
    transform: translateY(-8px);
}

.note-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    font-size: 18px;
    color: #000;
    cursor: pointer;
    transition: background 0.15s;
}

.note-menu-item:first-child {
    border-radius: 14px 14px 0 0;
}

.note-menu-item:last-of-type {
    border-radius: 0 0 14px 14px;
}

.note-menu-item:active {
    background: rgba(240, 240, 240, 0.95);
}

.note-menu-cancel {
    margin-top: 8px;
    padding: 16px;
    background: white;
    border-radius: 14px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: #007AFF;
    cursor: pointer;
    margin-bottom: 8px;
}

/* === SAVE AS POPUP === */
.save-as-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 100020;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    pointer-events: none;
}

.save-as-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
    pointer-events: auto;
}

.save-as-overlay.active {
    opacity: 1;
    visibility: visible;
}

.save-as-overlay.keyboard-active::before {
    bottom: 290px;
}

.save-as-overlay.keyboard-active {
    align-items: flex-start;
    padding-top: 80px;
}

.save-as-modal {
    width: 90%;
    max-width: 320px;
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-radius: 16px;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s var(--spring-smooth);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.save-as-overlay.active .save-as-modal {
    transform: scale(1);
}

.save-as-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.1);
}

.save-as-cancel,
.save-as-save {
    font-size: 17px;
    color: #007AFF;
    cursor: pointer;
    padding: 4px 8px;
}

.save-as-save {
    font-weight: 600;
}

.save-as-cancel:active,
.save-as-save:active {
    opacity: 0.6;
}

.save-as-title {
    font-size: 17px;
    font-weight: 600;
    color: #000;
}

.save-as-content {
    padding: 20px 16px 24px;
}

.save-as-label {
    font-size: 15px;
    color: #666;
    margin-bottom: 12px;
}

.save-as-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 17px;
    color: #000;
    background: rgba(255, 255, 255, 0.8);
    outline: none;
    transition: border-color 0.2s;
}

.save-as-input:focus {
    border-color: #007AFF;
}

.save-as-hint {
    font-size: 13px;
    color: #888;
    margin-top: 10px;
}

/* === iOS TOAST === */
.ios-toast {
    position: fixed;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 500;
    z-index: 200000;
    animation: toastIn 0.3s var(--spring-smooth);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    max-width: 90%;
    text-align: center;
}

.ios-toast.fade-out {
    animation: toastOut 0.3s ease forwards;
}

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

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

/* === UNIVERSAL FILE VIEWER === */
.universal-file-viewer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 100000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.universal-file-viewer.active {
    opacity: 1;
    visibility: visible;
}

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

.file-viewer-close {
    color: #007AFF;
    font-size: 17px;
    cursor: pointer;
    padding: 4px 8px;
}

.file-viewer-title {
    color: white;
    font-size: 17px;
    font-weight: 600;
    flex: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 20px;
}

.file-viewer-content {
    flex: 1;
    overflow: auto;
    padding: 16px;
    -webkit-overflow-scrolling: touch;
}

.file-viewer-text,
.file-viewer-code {
    color: #fff;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    margin: 0;
}

.file-viewer-code {
    color: #a9dc76;
}

.file-viewer-json {
    color: #78dce8;
}

.file-viewer-css {
    color: #ff6188;
}

.file-viewer-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.file-viewer-tab {
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.file-viewer-tab.active {
    background: #007AFF;
    color: white;
}

.file-viewer-html-rendered {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
}

.file-viewer-html-rendered iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: none;
}

.file-viewer-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 40px;
}

.file-viewer-filename {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin-top: 20px;
}

.file-viewer-type {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    margin-top: 8px;
}

.file-viewer-size {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    margin-top: 4px;
}

.file-viewer-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.file-viewer-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.file-viewer-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.file-viewer-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

.file-viewer-table th,
.file-viewer-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
}

.file-viewer-table th {
    background: rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

.file-viewer-table tr:last-child td {
    border-bottom: none;
}
