* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #e8e3dc;
    font-family: "Segoe UI", Arial, sans-serif;
}

/* ================================
   PHONE
================================ */

.phone {
    width: 390px;
    height: 780px;
    position: relative;
    background: #222;
    border: 7px solid #222;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);

    display: flex;
    flex-direction: column;
    z-index: 1;
}

/* ================================
   HOME / LOCK SCREEN
================================ */

.home-screen {
    position: absolute;
    inset: 0;
    z-index: 10;

    overflow: hidden;

    display: flex;
    flex-direction: column;
    align-items: center;

    color: white;

    background-image: url("download (1).jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/*=======================
STATUS BAR
=======================*/

.status-bar {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;

    width: 100% !important;
    height: 32px !important;

    padding: 10px 18px 0 !important;

    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;

    font-size: 11px !important;
    font-weight: 600 !important;

    z-index: 100 !important;
}

.status-icons {
    position: absolute !important;

    top: 8px !important;
    right: 18px !important;

    margin: 0 !important;
    padding: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;

    gap: 7px !important;

    font-size: 8px !important;
}

.status-time {
    position: absolute !important;
    top: 8px !important;
    left: 18px !important;

    margin: 0 !important;
    padding: 0 !important;

    text-align: left !important;
}

/*====================
LOCK DATE
======================*/

.lock-date {
    position: absolute;

    top: 48px;
    left: 0;

    width: 100%;

    font-size: 15px;
    font-weight: 500;

    text-align: center;
    z-index: 100;
}

/*======================
LOCK CLOCK
========================*/

.lock-time {
    position: absolute;

    top: 68px;
    left: 0;

    width: 100%;
    font-size: 64px;
    line-height: 1;

    font-weight: 300;
    letter-spacing: -3px;

    text-align: center;
    z-index: 100;
}

/*=======================
NOTIFICATION
=======================*/

.notification {
    width: calc(100% - 28px);
    position: absolute;
    z-index: 100;

    margin-top: 0;
    top: 170px;
    left: 14px;
    padding: 12px 14px;

    box-sizing: border-box;

    border-radius: 17px;

    background: rgba(255, 255, 255, 0.72);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    border: 1px solid rgba(255, 255, 255, 0.55);

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.13);

    color: #333;

    cursor: pointer;

    transition: transform 0.15s ease;

    opacity: 0.8;
}

.notification:active {
    transform: scale(0.97);
}

.notification-top {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 8px;

    font-size: 10px;
    font-weight: 600;
    color: #777;
}

.notification-content {
    display: flex;
    align-items: center;
    width: 100%;
}

.notification-avatar {
    width: 43px;
    height: 43px;

    border-radius: 50%;
    overflow: hidden;

    flex-shrink: 0;

    margin-right: 10px;

    border: 1px solid rgba(255, 255, 255, 0.8);
}

.notification-avatar img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    display: block;
}

.notification-name {
    font-size: 13px;
    font-weight: 650;

    margin-bottom: 3px;
}

.notification-message {
    font-size: 13px;
    color: #555;
}

/* =========================
   MUSIC WIDGET
========================= */

.music-widget {
    position: absolute;

    top: 268px;
    left: 20px;

    width: 340px;

    padding: 11px 15px;

    border-radius: 17px;

    background: rgba(255, 255, 255, 0.72);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    border: 1px solid rgba(255, 255, 255, 0.55);

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.13);

    color: #333;

    z-index: 90;
    opacity: 0.8;
}


/* MUSIC TOP */

.music-top {
    display: flex;
    align-items: center;
    gap: 10px;
}



.music-cover {
    width: 55px;
    height: 55px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.music-info {
    min-width: 0;
    flex: 1;
}

.music-title {
    font-size: 13px;
    font-weight: 600;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.music-artist {
    margin-top: 3px;

    font-size: 10px;

    color: #777;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* PROGRESS */

.music-progress {
    width: 100%;
    height: 3px;

    margin-top: 8px;

    background: rgba(0, 0, 0, 0.1);

    border-radius: 10px;

    overflow: hidden;
    flex: 1;
}

.music-progress-fill {
    width: 0%;

    height: 100%;

    background: #555;

    border-radius: 10px;

    transition: width 0.2s linear;
}

.music-progress-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.music-current-time {
    font-size: 10px;
    color: rgba(0, 0, 0, 0.7);
    min-width: 30px;
    text-align: right;
}


/* CONTROLS */

.music-controls {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 35px;

    margin-top: 5px;
}

.music-control,
.music-play {
    border: none;

    background: transparent;

    color: #444;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
}

.music-control {
    width: 30px;
    height: 30px;

    font-size: 18px;
}

.music-play {
    width: 36px;
    height: 36px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.85);

    font-size: 13px;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}


/* PLAYLIST */

.music-playlist {
    margin-top: 7px;

    padding-top: 6px;

    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.playlist-song {
    display: flex;

    align-items: center;

    gap: 10px;

    padding: 5px 5px;

    border-radius: 9px;

    font-size: 10px;

    color: #555;

    cursor: pointer;
}

.playlist-song span {
    width: 20px;

    font-size: 9px;

    color: #999;
}

.playlist-song small {
    display: block;

    margin-top: 2px;

    font-size: 8px;

    color: #999;
}

.playlist-song.active {
    background: rgba(255, 255, 255, 0.5);

    color: #333;

    font-weight: 600;
}

.playlist-song:active {
    transform: scale(0.98);
}

/*==========================
BOTTOM BUTTONS
===========================*/

.lock-bottom {
    position: absolute;
    z-index: 100;

    bottom: 52px;
    left: 0;

    width: 100%;

    padding: 0 28px;

    display: flex;
    justify-content: space-between;
}

.lock-button {
    width: 46px;
    height: 46px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(30, 30, 30, 0.48);

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);

    transition: transform 0.15s ease;
}

.lock-button:active {
    transform: scale(0.9);
    background: rgba(20, 20, 20, 0.7);
}

.ios-icon {
    width: 23px;
    height: 23px;

    display: block;
}

/*========================
HOME BAR
=========================*/

.home-bar {
    position: absolute;

    bottom: 13px;

    width: 105px;
    height: 4px;

    border-radius: 10px;

    background: rgba(255, 255, 255, 0.85);
}

/*===============================
CHAT HEADER
================================*/
.chat-screen {
    position: absolute;
    inset: 0;

    z-index: 15;

    display: none;

    background: #f7f3ee;

    overflow: hidden;

    flex-direction: column;
}

/* ================================
   CHAT HEADER
================================ */

.chat-header {
    position: relative;
    top: auto;
    left: auto;

    width: 100%;
    height: 70px;
    flex-shrink: 0;
    z-index: 40;

    background: #fffdfb;

    display: flex;
    align-items: center;

    padding: 9px 13px;

    border-bottom: 1px solid #eee7e1;
}

.back-button {
    width: 30px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 27px;
    color: #555;

    margin-right: 5px;

    cursor: pointer;
}

.profile {
    display: flex;
    align-items: center;

    flex: 1;
    min-width: 0;
}

.avatar {
    width: 42px;
    height: 42px;

    border-radius: 50%;
    overflow: hidden;

    margin-right: 10px;

    flex-shrink: 0;

    background: #eee;

    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.avatar img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    display: block;
}

.name {
    font-size: 15px;
    font-weight: 600;
    color: #333;

    white-space: nowrap;
}

.status {
    display: flex;
    align-items: center;

    gap: 5px;

    font-size: 10.5px;
    color: #999;

    margin-top: 2px;
}

.online-dot {
    width: 6px;
    height: 6px;

    background: #7bbf8a;

    border-radius: 50%;

    display: inline-block;
}

.menu {
    width: 30px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 21px;
    color: #555;

    cursor: pointer;
}

/* ================================
   CHAT AREA
================================ */

.chat-area {
    flex: 1;
    min-height: 0;

    padding: 20px 15px;

    overflow-y: auto;

    background: #f7f3ee;

    display: flex;
    flex-direction: column;

    gap: 9px;
}

.chat-area::-webkit-scrollbar {
    width: 5px;
}

.chat-area::-webkit-scrollbar-thumb {
    background: #d6cec5;
    border-radius: 10px;
}

/* ================================
   ANSWER AREA
================================ */

.answer-area {
    background: #fffdfb;

    border-top: 1px solid #eee7e1;

    padding: 10px;

    display: flex;
    flex-direction: column;

    gap: 7px;
    flex-shrink: 0;
}

/* ================================
   MESSAGE
================================ */

.message {
    max-width: 80%;

    padding: 10px 13px;

    border-radius: 16px;

    font-size: 14px;
    line-height: 1.45;

    animation: messageAppear 0.3s ease;

    color: #333;
}

.message-time {
    display: block;

    margin-top: 4px;

    font-size: 9px;
    color: #aaa;

    text-align: right;
}

.received {
    align-self: flex-start;

    background: #ffffff;

    border-top-left-radius: 5px;

    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.sent {
    align-self: flex-end;

    background: #e8d5c8;

    border-top-right-radius: 5px;

    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

@keyframes messageAppear {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================
   ANSWER BUTTON
================================ */

.answer-button {
    width: 100%;

    padding: 11px 13px;

    border-radius: 15px;

    border: 1px solid #e0d8d1;

    background: #faf8f6;

    color: #333;

    font-size: 13px;

    text-align: left;

    cursor: pointer;

    transition: all 0.2s ease;
}

.answer-button:hover {
    background: #eee7e1;

    transform: translateY(-1px);
}

.answer-button:active {
    transform: scale(0.98);
}

/* ================================
   TICKET BUTTON
================================ */

.ticket-button {
    display: block;

    width: fit-content;

    margin: 15px auto;

    padding: 12px 22px;

    background: #fff;

    color: #333;

    border: 1px solid #ddd;

    border-radius: 20px;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);

    transition: 0.2s ease;
}

.ticket-button:hover {
    transform: translateY(-2px);

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.ticket-button:active {
    transform: scale(0.97);
}

/* ================================
   TYPING
================================ */

.typing {
    align-self: flex-start;

    display: flex;
    align-items: center;

    gap: 4px;

    width: fit-content;

    padding: 10px 13px;

    background: white;

    border-radius: 16px;
    border-top-left-radius: 5px;

    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.typing span {
    width: 5px;
    height: 5px;

    background: #aaa;

    border-radius: 50%;

    animation: typingBounce 1.2s infinite ease-in-out;
}

.typing span:nth-child(2) {
    animation-delay: 0.15s;
}

.typing span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes typingBounce {
    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.5;
    }

    30% {
        transform: translateY(-3px);
        opacity: 1;
    }
}

/* ================================
   MESSAGE INPUT
================================ */

.message-input {
    height: 55px;

    background: #fffdfb;

    border-top: 1px solid #eee7e1;

    display: flex;
    align-items: center;

    gap: 8px;

    padding: 8px 10px;

    flex-shrink: 0;
}

.plus-button {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;
    color: #777;
}

.fake-input {
    flex: 1;

    height: 36px;

    display: flex;
    align-items: center;

    padding: 0 13px;

    background: #f4f1ee;

    border: 1px solid #e5ded8;

    border-radius: 19px;

    color: #aaa;

    font-size: 12.5px;
}

.send-button {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 17px;
    color: #777;
}

/*SWIPE TO UNLOCK*/
.swipe-hint {
    position: absolute;
    bottom: 29px;

    font-size: 10px;
    color: rgba(255, 255, 255, 0.85);

    animation: swipeHint 1.8s infinite ease-in-out;
}

@keyframes swipeHint {
    0%,
    100% {
        transform: translateY(0);
        opacity: 0.7;
    }

    50% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

/* ================================
   GALLERY
================================ */

.gallery-screen {
    position: absolute;
    inset: 0;

    z-index: 20;

    display: none;

    background: #f7f3ee;

    color: #333;

    overflow-y: auto;
}


/* HEADER */

.gallery-header {
    height: 65px;

    display: flex;
    align-items: center;

    padding: 0 15px;

    background: #fffdfb;

    border-bottom: 1px solid #eee7e1;
}

.gallery-back {
    width: 35px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 27px;

    color: #555;

    cursor: pointer;
}

.gallery-title {
    flex: 1;

    text-align: center;

    margin-right: 35px;

    font-size: 17px;

    font-weight: 600;
}


/* PHOTO GRID */

.gallery-grid {
    padding: 10px;

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 8px;
}

.gallery-grid img {
    width: 100%;

    aspect-ratio: 1 / 1;

    object-fit: cover;

    border-radius: 4px;

    cursor: pointer;

    transition: transform 0.15s ease;
}

.gallery-grid img:active {
    transform: scale(0.96);
}

/* ================================
   PHOTO VIEWER
================================ */

.photo-viewer {
    position: absolute;
    inset: 0;

    z-index: 30;

    display: none;

    background: rgba(0, 0, 0, 0.95);

    align-items: center;
    justify-content: center;
}

.photo-viewer img {
    max-width: 100%;
    max-height: 100%;

    object-fit: contain;
}

.photo-viewer-close {
    position: absolute;

    top: 15px;
    right: 18px;

    width: 35px;
    height: 35px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: white;

    font-size: 30px;
    font-weight: 300;

    cursor: pointer;

    z-index: 31;
}


/* ========================= */
/* NOTES APP ICON */
/* ========================= */
.notes-app {
    position: absolute;

    top: 540px;
    left: 20px;
    height: 120px;

    width: 340px;

    padding: 10px 15px;

    border-radius: 17px;

    background: rgba(255, 255, 255, 0.72);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.55);

    cursor: pointer;

    z-index: 100;

    color: #333;

    text-shadow: none;
    opacity: 0.8;
}


/* ========================= */
/* NOTES ICON */
/* ========================= */

.notes-icon {
    display: none;
    width: 30px;
    height: 10px;
    border-radius: 7px;
    margin-right: 10px;
    flex-shrink: 0;

    background: #f6f6f6;

    border-radius: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    background: rgba(245, 245, 245, 0.9);
}

.notes-icon-lines {
    width: 30px;

    display: flex;
    flex-direction: column;

    gap: 4px;
}

.notes-icon-lines span {
    display: block;

    height: 3px;

    border-radius: 3px;

    background: #777;
}

.notes-icon-lines span:nth-child(2) {
    width: 10px;
}

.notes-icon-lines span:nth-child(3) {
    width: 10px;
}


/* ========================= */
/* NOTES LABEL */
/* ========================= */

.notes-label {
    margin-top: 7px;
    margin-left: 1px;
    margin-bottom: 8px;

    font-size: 14px;

    font-weight: 500;

    color: #333;

    text-shadow: none;
}


/* ========================= */
/* NOTES PREVIEW */
/* ========================= */

.notes-preview {
    width: 100%;

    margin-top: 0;

    padding-top: 9px;

    border-top: 1px solid rgba(0, 0, 0, 0.08);

    font-size: 8.5px;

    line-height: 1;

    color: #555;

    background: transparent;

    box-shadow: none;

    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.preview-title {
    margin-bottom: 4px;

    font-size: 11px;

    font-weight: 600;

    color: #333;
}

.preview-item {
    color: #666;
    font-size: 10px;
    line-height: 1.45;
}

/* ========================= */
/* NOTES SCREEN */
/* ========================= */

.notes-screen {
    position: absolute;
    inset: 0;
    z-index: 25;

    display: none;

    background: #fff;
    color: #1d1d1f;

    overflow-y: auto;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
}


/* HEADER */

.notes-header {
    height: 68px;

    display: flex;
    align-items: center;

    padding: 0 16px;

    background: rgba(255,255,255,.96);

    border-bottom: 1px solid #e5e5e5;

    position: relative;
}

.notes-back {
    width: 45px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    font-size: 32px;
    font-weight: 300;

    color: #555;

    cursor: pointer;
}

.notes-title {
    position: absolute;

    left: 50%;
    transform: translateX(-50%);

    font-size: 25px;
    font-weight: 600;
}

.notes-more {
    margin-left: auto;

    font-size: 23px;
    letter-spacing: 2px;

    color: #555;
}


/* CONTENT */

.note-content {
    padding: 30px 24px 45px;
}

.note-date {
    margin-bottom: 10px;

    font-size: 13px;
    color: #999;
}

.note-content h1 {
    margin: 0 0 30px;

    font-size: 29px;
    line-height: 1.25;

    font-weight: 600;
    letter-spacing: -.5px;
}


/* CHECKLIST */

.check-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.check-item {
    display: flex;
    align-items: center;

    min-height: 50px;

    font-size: 18px;
    line-height: 1.4;

    cursor: pointer;
}

.check-box {
    width: 22px;
    height: 22px;

    margin-right: 13px;

    flex-shrink: 0;

    border: 1.7px solid #777;
    border-radius: 50%;

    background: white;

    transition: all 0.15s ease;
}

/*CHECKED*/
.check-item.checked .check-box {
    background: #555;
    border-color: #555;

    position: relative;
}

.check-item.checked .check-box::after {
    content: "✓";

    position: absolute;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    color: white;
    font-size: 14px;
    font-weight: 600;
}

.check-item.checked > span:last-child {
    color: #999;
    text-decoration: line-through;
}

.music-progress {
    position: relative;
    width: 100%;
    height: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.music-progress::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.music-progress-fill {
    position: absolute;
    left: 0;
    height: 4px;
    width: 0%;
    background: white;
    border-radius: 10px;
}

.music-progress-fill::after {
    content: "";
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);

    width: 12px;
    height: 12px;

    background: white;
    border-radius: 50%;
}

.status-time {
    display: none !important;
}

/* ========================= */
/* PAGE 2 */
/* ========================= */

.phone-page-2 {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #e8e3dc;
    display: none;
    z-index: 100;
}


/* STATUS BAR PAGE 2 */

.page2-status {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}


/* TIME PAGE 2 */

.page2-time {
    display: block !important;
}


/* DATE PAGE 2 */

.page2-date {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    text-align: center;
}


/* CLOCK PAGE 2 */

.page2-clock {
    position: absolute;
    top: 105px;
    left: 0;
    width: 100%;
    text-align: center;
}


/* NETFLIX */

.netflix-app {
    position: absolute;
    top: 250px;
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    flex-direction: column;
    align-items: center;

    cursor: pointer;
    z-index: 101;
}


.netflix-icon {
    width: 65px;
    height: 65px;

    background: #111;
    border-radius: 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #e50914;
    font-size: 45px;
    font-weight: bold;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}


.netflix-label {
    margin-top: 8px;

    font-size: 13px;
    color: #222;
    font-weight: 500;
}


/* HOME BAR PAGE 2 */

.page2-home-bar {
    position: absolute;

    bottom: 8px;
    left: 50%;

    transform: translateX(-50%);
}

/* ========================= */
/* PAGE INDICATOR */
/* ========================= */
.page-indicator {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    width: 42px;
    height: 18px;

    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    border-radius: 12px;

    z-index: 999999;
    pointer-events: auto !important;
}

.page-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;
    background: #aaa;

    display: block !important;
    opacity: 1 !important;

    cursor: pointer;
    pointer-events: auto !important;

    position: relative;
    z-index: 1000000;
}

.page-dot.active {
    background: #222;
}