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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.phone-wrapper {
    display: flex;
    justify-content: center;
    padding-top: 20px; /* Minimal top padding */
    padding-bottom: 20px;
}

.iphone-container {
    width: 100%;
    max-width: 375px;
    height: 667px;
    background: #000;
    border-radius: 40px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    border: 12px solid #1a1a1a;
    margin: 0 auto;
}
/* Status Bar */
.status-bar {
    background: #ff8fb0;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
}

.status-icons i {
    margin-left: 5px;
}

/* Home Screen */
.home-screen {
    background: #ff8fb0;
    height: 100%;
    padding: 20px;
}

.welcome-text {
    color: white;
    text-align: center;
    margin: 20px 0 40px;
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(45deg, #ff6b9d, #ff8e53);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.app-icon {
    text-decoration: none;
    transition: transform 0.2s;
}

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

.icon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    transition: all 0.3s;
}

.tiktok-icon {
    background: black;
}

.messages-icon {
    background: linear-gradient(45deg, #34C759, #30D158);
}

.calendar-icon {
    background: linear-gradient(45deg, #007AFF, #5856D6);
}

.app-name {
    color: white;
    font-size: 12px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Dock */
.dock {
    position: absolute;
    bottom: 60px;
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 10px 20px;
}

.dock-apps {
    display: flex;
    justify-content: space-around;
}

.dock-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
}

/*!* Navigation Bar *!*/
/*.nav-bar {*/
/*    position: absolute;*/
/*    bottom: 5px;*/
/*    left: 50%;*/
/*    transform: translateX(-50%);*/
/*    width: 130px;*/
/*    height: 5px;*/
/*    background: rgba(255, 255, 255, 0.8);*/
/*    border-radius: 3px;*/
/*}*/

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    max-width: 300px;
    animation: modalAppear 0.3s ease;
}

@keyframes modalAppear {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-content h2 {
    color: #ff6b9d;
    margin-bottom: 15px;
}

.modal-content p {
    margin-bottom: 20px;
    color: #333;
}

.modal-content button {
    background: linear-gradient(45deg, #ff6b9d, #ff8e53);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.modal-content button:active {
    transform: scale(0.95);
}

/* iPhone Style Notification */
.iphone-notification {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    width: 90%;
    max-width: 350px;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    padding: 12px 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.iphone-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.notification-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.app-icon-small {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: linear-gradient(45deg, #ff6b9d, #ff8e53);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.notification-app-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-app-info .app-name {
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.notification-time {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.notification-body {
    color: white;
}

.notification-body strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
    color: #ff6b9d;
}

.notification-body p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
    line-height: 1.4;
}

/* Game Notification Button (for TikTok page) */
.game-notification {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background: linear-gradient(45deg, #ff2d55, #ff6b9d);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(255, 45, 85, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: pulse 2s infinite;
    display: none; /* Hidden by default */
}

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

.game-notification i {
    font-size: 16px;
}

/* Memory Game Styles */
.game-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.game-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.game-content h2 {
    color: #ff2d55;
    margin-bottom: 20px;
}

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

.memory-card {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #ff6b9d, #ff8e53);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.3s;
    color: white;
}

.memory-card.flipped {
    transform: rotateY(180deg);
    background: white;
    color: #ff2d55;
}

.memory-card.matched {
    background: #34C759;
    color: white;
    cursor: default;
}

.close-game-btn {
    background: #ff2d55;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
}

/* iPhone Screen Container */
.iphone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Notification inside iPhone screen */
.iphone-screen .iphone-notification {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    width: calc(100% - 40px);
    max-width: 335px;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    padding: 12px 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.iphone-screen .iphone-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Spotify Widget */
.spotify-widget {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 15px;
    margin: 0 10px 30px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.spotify-now-playing {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.spotify-now-playing i {
    color: #1DB954; /* Spotify green */
    font-size: 18px;
}

.spotify-controls i {
    color: rgba(255, 255, 255, 0.7);
    font-size: 20px;
    cursor: pointer;
}

.spotify-content {
    display: flex;
    gap: 15px;
    align-items: center;
}

.album-art {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.album-art-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff6b9d, #ff8e53);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
}

.song-info {
    flex: 1;
    color: white;
}

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

.artist {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}

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

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

.progress-fill {
    height: 100%;
    width: 35%; /* You can adjust this for actual progress */
    background: #1DB954; /* Spotify green */
    border-radius: 2px;
    transition: width 0.3s ease;
}

.time-stamps {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
}

.control-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.play-btn {
    width: 50px;
    height: 50px;
    background: #1DB954; /* Spotify green */
    font-size: 24px;
}

.play-btn:active {
    transform: scale(0.95);
    background: #1ed760; /* Lighter Spotify green */
}

/* Optional: Add animation for the playing state */
@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(29, 185, 84, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(29, 185, 84, 0); }
    100% { box-shadow: 0 0 0 0 rgba(29, 185, 84, 0); }
}

.playing {
    animation: pulse-glow 2s infinite;
}

/* iOS Calendar Icon Styles */
.ios-calendar-icon {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ios-calendar-icon .calendar-header {
    background: linear-gradient(45deg, #ff2d55, #ff6b9d);
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ios-calendar-icon .calendar-day {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 24px;
    color: #1d1d1f;
    background: white;
}

.ios-calendar-icon .calendar-weekday {
    height: 16px;
    background: #f2f2f7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1d1d1f;
    font-weight: 600;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-top: 1px solid #e5e5ea;
}

.openme-icon {
    background: linear-gradient(45deg, #FF6B9D, #FFD166);
}

/* Spotify Player Controls */
.spotify-player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin: 20px 0 15px 0;
}

.player-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    width: 36px;
    height: 36px;
}

.player-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

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

/* Play button is larger and green like Spotify */
.play-btn {
    background: white;
    color: black;
    width: 44px;
    height: 44px;
    font-size: 18px;
}

.play-btn:hover {
    background: white;
    color: black;
    transform: scale(1.05);
}

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

.play-btn.playing {
    background: #1DB954; /* Spotify green when playing */
    color: white;
}

/* Active state for shuffle and repeat */
.shuffle-btn.active,
.repeat-btn.active {
    color: #1DB954; /* Spotify green */
}

/* Progress Bar */
.progress-container {
    margin: 15px 0;
}

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

.progress-fill {
    height: 100%;
    width: 0%;
    background: #1DB954; /* Spotify green */
    border-radius: 2px;
    transition: width 0.1s linear;
}

.time-stamps {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}

/* Volume Control */
.volume-control {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
}

.volume-icon {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.volume-slider-container {
    flex: 1;
}

.volume-slider {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.volume-level {
    height: 100%;
    width: 70%; /* Default volume level */
    background: #1DB954; /* Spotify green */
    border-radius: 2px;
    transition: width 0.1s linear;
}

/* Album art animation when playing */
.album-art.playing {
    animation: rotateAlbumArt 20s linear infinite;
}

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

/* Song info text when playing */
.song-title.playing {
    color: #1DB954; /* Spotify green for song title when playing */
}