/* ========================================
   ROMANTIC IPHONE GIFT - STYLES
   Premium iOS 17+ Aesthetic
======================================== */

/* CSS Variables */
:root {
    /* Colors */
    --bg-primary: #000000;
    --bg-secondary: #1c1c1e;
    --bg-tertiary: #2c2c2e;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.5);

    /* Accent Colors */
    --accent-pink: #ff2d55;
    --accent-purple: #af52de;
    --accent-blue: #007aff;
    --accent-green: #34c759;
    --accent-orange: #ff9500;
    --accent-yellow: #ffcc00;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

    /* iPhone Dimensions */
    --iphone-width: 390px;
    --iphone-height: 844px;
    --iphone-radius: 55px;
    --notch-width: 126px;
    --notch-height: 37px;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    height: -webkit-fill-available;
}

body {
    min-height: 100%;
    min-height: 100dvh;
    min-height: -webkit-fill-available;
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: pan-x pan-y;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

/* iPhone Container */
.iphone-container {
    perspective: 1000px;
}

.iphone-frame {
    width: var(--iphone-width);
    height: var(--iphone-height);
    background: var(--bg-primary);
    border-radius: var(--iphone-radius);
    position: relative;
    overflow: hidden;
    box-shadow:
        0 0 0 3px #1a1a1a,
        0 0 0 6px #0a0a0a,
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(175, 82, 222, 0.1);
}

/* Dynamic Island */
.dynamic-island {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: var(--notch-width);
    height: var(--notch-height);
    background: #000;
    border-radius: 20px;
    z-index: 100;
}

/* Status Bar */
.status-bar {
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--spacing-lg);
    z-index: 90;
    font-size: 14px;
    font-weight: 600;
}

.status-left .time {
    font-weight: 600;
}

.status-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.signal-icon, .wifi-icon {
    width: 18px;
    height: 18px;
}

.battery-icon {
    width: 27px;
    height: 13px;
    border: 1.5px solid var(--text-primary);
    border-radius: 4px;
    position: relative;
    padding: 2px;
}

.battery-icon::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 6px;
    background: var(--text-primary);
    border-radius: 0 2px 2px 0;
}

.battery-level {
    width: 100%;
    height: 100%;
    background: var(--accent-green);
    border-radius: 2px;
}

/* Screens */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.screen.active {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   LOCK SCREEN
======================================== */
.lock-screen {
    background: linear-gradient(180deg,
        #2d1b4e 0%,
        #1a1a2e 30%,
        #16213e 70%,
        #0f3460 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 120px var(--spacing-lg) 40px;
}

.lock-content {
    text-align: center;
}

.lock-time {
    font-size: 86px;
    font-weight: 300;
    letter-spacing: -3px;
    line-height: 1;
    margin-bottom: var(--spacing-sm);
}

.lock-date {
    font-size: 20px;
    font-weight: 400;
    color: var(--text-secondary);
}

.swipe-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    animation: pulse 2s ease-in-out infinite;
}

.swipe-pill {
    width: 40px;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.swipe-indicator span {
    font-size: 13px;
    color: var(--text-tertiary);
    font-weight: 500;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-5px); }
}

/* ========================================
   HOME SCREEN
======================================== */
.home-screen {
    background: linear-gradient(180deg,
        #1a0a2e 0%,
        #2d1b4e 30%,
        #1a1a2e 70%,
        #0f0f1a 100%);
    padding: 70px var(--spacing-md) 100px;
    display: flex;
    flex-direction: column;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    padding: var(--spacing-md);
    flex: 1;
    align-content: start;
}

.app-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    cursor: pointer;
    transition: transform var(--transition-fast);
    position: relative;
}

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

.icon-bg {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.icon-bg svg {
    width: 30px;
    height: 30px;
    color: white;
    position: relative;
    z-index: 1;
}

.icon-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.9;
}

/* App Icon Colors */
.photos-icon {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 50%, #48dbfb 100%);
}

.messages-icon {
    background: linear-gradient(135deg, #34c759 0%, #30d158 100%);
}

.music-icon {
    background: linear-gradient(135deg, #fc5c7d 0%, #6a82fb 100%);
}

.calendar-icon {
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
}
.calendar-icon svg {
    color: #ff3b30;
}

.notes-icon {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
}
.notes-icon svg {
    color: #2d3436;
}

.app-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-primary);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.chapter-badge {
    position: absolute;
    top: -5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background: var(--accent-pink);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255, 45, 85, 0.4);
}

/* Progress Container */
.progress-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg) 0;
}

.progress-dots {
    display: flex;
    gap: var(--spacing-sm);
}

.progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all var(--transition-medium);
}

.progress-dot.completed {
    background: var(--accent-pink);
    box-shadow: 0 0 10px var(--accent-pink);
}

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

/* Dock */
.dock {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.dock-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 35px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dock-icons {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 20px;
}

.dock-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform var(--transition-fast);
}

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

.phone-dock-icon {
    background: linear-gradient(135deg, #34c759 0%, #30d158 100%);
}

.dock-icon svg {
    width: 30px;
    height: 30px;
    color: white;
}

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

/* ========================================
   APP CONTAINER & SCREENS
======================================== */
.app-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
}

.app-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.4s ease;
    pointer-events: none;
    display: flex;
    flex-direction: column;
}

.app-screen.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.app-header {
    display: flex;
    align-items: center;
    padding: 60px var(--spacing-md) var(--spacing-md);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.back-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.back-btn svg {
    width: 20px;
    height: 20px;
    color: var(--text-primary);
}

.app-header h1 {
    flex: 1;
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    margin-right: 36px;
}

.chapter-indicator {
    position: absolute;
    right: var(--spacing-md);
    font-size: 12px;
    color: var(--accent-pink);
    font-weight: 500;
}

.app-content {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-md);
    -webkit-overflow-scrolling: touch;
}

.app-intro {
    text-align: center;
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: var(--spacing-lg);
    font-style: italic;
}

/* ========================================
   PHOTOS APP
======================================== */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
}

.photo-item {
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
    border-radius: 4px;
}

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

.photo-item:active {
    transform: scale(0.95);
}

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

.photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
}

.photo-placeholder span {
    font-size: 14px;
    font-weight: 500;
}

.photo-placeholder small {
    font-size: 10px;
    margin-top: 4px;
}

/* ========================================
   MESSAGES APP
======================================== */
.messages-content {
    background: var(--bg-primary);
}

.chat-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    padding-bottom: var(--spacing-xl);
}

.message-date {
    text-align: center;
    font-size: 12px;
    color: var(--text-tertiary);
    padding: var(--spacing-sm) 0;
    font-weight: 500;
}

.message {
    display: flex;
    max-width: 80%;
}

.message.sent {
    align-self: flex-end;
    flex-direction: column;
    align-items: flex-end;
}

.message-status {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-top: 2px;
    padding-right: 4px;
}

.message.received {
    align-self: flex-start;
}

.message-bubble {
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 18px;
    position: relative;
}

.message.sent .message-bubble {
    background: var(--accent-blue);
    border-bottom-right-radius: 4px;
}

.message.received .message-bubble {
    background: var(--bg-tertiary);
    border-bottom-left-radius: 4px;
}

.message-bubble p {
    font-size: 15px;
    line-height: 1.4;
}

.message-time {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
    text-align: right;
}

/* ========================================
   MUSIC APP
======================================== */
.music-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: var(--spacing-xl);
}

.album-art {
    width: 280px;
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    margin-bottom: var(--spacing-xl);
}

.album-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.album-placeholder svg {
    width: 100px;
    height: 100px;
    color: rgba(255, 255, 255, 0.3);
    animation: spin 10s linear infinite;
}

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

.album-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.now-playing {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.song-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.artist-name {
    font-size: 16px;
    color: var(--text-secondary);
}

.player-controls {
    width: 100%;
    max-width: 300px;
}

.progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: var(--spacing-xs);
}

.progress-fill {
    width: 30%;
    height: 100%;
    background: var(--text-primary);
    border-radius: 2px;
}

.time-stamps {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-tertiary);
    margin-bottom: var(--spacing-md);
}

.control-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xl);
}

.control-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast);
}

.control-btn:hover {
    transform: scale(1.1);
}

.control-btn svg {
    width: 24px;
    height: 24px;
}

.play-btn {
    width: 64px;
    height: 64px;
    background: var(--text-primary);
    border-radius: 50%;
    color: var(--bg-primary);
}

.play-btn svg {
    width: 28px;
    height: 28px;
    margin-left: 3px;
}

.playlist {
    width: 100%;
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.playlist h3 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-tertiary);
    margin-bottom: var(--spacing-md);
}

.playlist-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-sm) 0;
    cursor: pointer;
    transition: background var(--transition-fast);
    border-radius: 8px;
    padding: var(--spacing-sm);
}

.playlist-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.playlist-item.active {
    background: rgba(255, 45, 85, 0.15);
}

.playlist-item.active .track-name {
    color: var(--accent-pink);
}

.track-number {
    width: 24px;
    text-align: center;
    font-size: 14px;
    color: var(--text-tertiary);
}

.track-info {
    display: flex;
    flex-direction: column;
}

.track-name {
    font-size: 15px;
    font-weight: 500;
}

.track-artist {
    font-size: 13px;
    color: var(--text-tertiary);
}

/* ========================================
   CALENDAR APP
======================================== */
.calendar-content {
    padding-top: var(--spacing-lg);
}

.dates-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.date-card {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.date-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-purple) 100%);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.date-icon.vague {
    width: 30%;
    aspect-ratio: 1;
    height: auto;
    padding: 8px;
}

.date-day {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.date-icon.vague .date-day {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.date-month {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.date-info {
    flex: 1;
}

.date-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.date-info p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ========================================
   NOTES APP
======================================== */
.notes-content {
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
}

.letter-container {
    background: linear-gradient(180deg, #fffef5 0%, #fff9e6 100%);
    border-radius: 16px;
    padding: var(--spacing-lg);
    color: #2d2d2d;
    min-height: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.letter-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.letter-date {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.letter-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--accent-pink);
    margin-top: var(--spacing-sm);
}

.letter-body {
    font-size: 16px;
    line-height: 1.8;
}

.letter-body p {
    margin-bottom: var(--spacing-md);
}

.letter-body ul {
    margin: var(--spacing-md) 0;
    padding-left: var(--spacing-lg);
}

.letter-body li {
    margin-bottom: var(--spacing-sm);
    color: #555;
}

.letter-signature {
    margin-top: var(--spacing-xl);
    font-style: italic;
    color: var(--accent-pink);
}

/* ========================================
   LIGHTBOX
======================================== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.97);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: calc(20px + env(safe-area-inset-top));
    right: calc(20px + env(safe-area-inset-right));
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50%;
    color: white;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 210;
    transition: background var(--transition-fast);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 60vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.lightbox-caption {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    text-align: center;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========================================
   CELEBRATION
======================================== */
.celebration {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 300;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow);
}

.celebration.active {
    opacity: 1;
    visibility: visible;
}

.celebration-content {
    text-align: center;
    transform: scale(0.8);
    transition: transform var(--transition-slow);
}

.celebration.active .celebration-content {
    transform: scale(1);
}

.heart-animation {
    margin-bottom: var(--spacing-lg);
}

.heart-animation svg {
    width: 80px;
    height: 80px;
    color: var(--accent-pink);
    animation: heartbeat 1s ease-in-out infinite;
}

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

.celebration h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.celebration p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
}

.celebration-btn {
    padding: var(--spacing-md) var(--spacing-xl);
    border: none;
    background: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-purple) 100%);
    color: white;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.celebration-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 45, 85, 0.4);
}

/* ========================================
   RESPONSIVE - MOBILE FULL SCREEN
======================================== */
@media (max-width: 500px) {
    html, body {
        height: 100%;
        overflow: hidden;
        position: fixed;
        width: 100%;
    }

    body {
        background: var(--bg-primary);
    }

    .iphone-container {
        width: 100%;
        height: 100%;
        perspective: none;
    }

    .iphone-frame {
        width: 100%;
        height: 100dvh; /* Dynamic viewport height */
        height: -webkit-fill-available; /* Fallback for older Safari */
        border-radius: 0;
        box-shadow: none;
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }

    /* Hide fake UI elements on real phones */
    .dynamic-island,
    .status-bar,
    .home-indicator {
        display: none;
    }

    /* Adjust lock screen */
    .lock-screen {
        padding-top: calc(80px + env(safe-area-inset-top));
        padding-bottom: calc(30px + env(safe-area-inset-bottom));
    }

    .lock-time {
        font-size: 72px;
    }

    /* Adjust home screen */
    .home-screen {
        padding-top: calc(50px + env(safe-area-inset-top));
        padding-bottom: calc(100px + env(safe-area-inset-bottom));
    }

    /* Adjust dock */
    .dock {
        bottom: calc(10px + env(safe-area-inset-bottom));
    }

    /* Adjust home indicator */
    .home-indicator {
        bottom: calc(4px + env(safe-area-inset-bottom));
    }

    /* Adjust app headers */
    .app-header {
        padding-top: calc(15px + env(safe-area-inset-top));
    }

    /* Adjust app content for bottom safe area */
    .app-content {
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }

    :root {
        --iphone-radius: 0;
    }
}

@media (max-height: 700px) {
    .lock-time {
        font-size: 64px;
    }

    .album-art {
        width: 200px;
        height: 200px;
    }
}

/* Extra small phones */
@media (max-height: 600px) {
    .lock-time {
        font-size: 56px;
    }

    .lock-content {
        margin-top: -20px;
    }

    .app-grid {
        gap: var(--spacing-md);
    }

    .icon-bg {
        width: 54px;
        height: 54px;
    }
}

/* ========================================
   SCROLLBAR STYLING
======================================== */
.app-content::-webkit-scrollbar {
    width: 4px;
}

.app-content::-webkit-scrollbar-track {
    background: transparent;
}

.app-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

/* ========================================
   SELECTION
======================================== */
::selection {
    background: var(--accent-pink);
    color: white;
}
