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

 body {
     font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
     background: #1a1a2e;
     min-height: 100vh;
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: center;
     padding: 32px 16px;
     gap: 16px;
 }

 .page-label {
     font-size: 13px;
     color: rgba(255, 255, 255, 0.45);
     letter-spacing: 0.5px;
 }

 .skip-card {
     border-left: 3px solid #eab308;
 }

 .notif-icon.skip {
     background: #fef9c3;
     color: #a16207;
 }

 .status-bar-outer {
     display: flex;
     align-items: center;
     gap: 8px;
     font-size: 12px;
     color: rgba(255, 255, 255, 0.5);
 }

 .dot {
     width: 8px;
     height: 8px;
     border-radius: 50%;
     background: #22c55e;
     animation: pulse 1.6s infinite;
 }

 .dot.idle {
     background: #6b7280;
     animation: none;
 }

 @keyframes pulse {

     0%,
     100% {
         opacity: 1
     }

     50% {
         opacity: 0.3
     }
 }

 /* ── Phone frame ── */
 .phone-frame {
     width: 260px;
     height: 520px;
     background: #111;
     border-radius: 44px;
     border: 8px solid #2a2a2a;
     position: relative;
     overflow: hidden;
     box-shadow:
         0 0 0 1px #444,
         0 30px 80px rgba(0, 0, 0, 0.6),
         inset 0 0 0 1px #333;
 }

 /* side buttons */
 .phone-frame::before {
     content: "";
     position: absolute;
     right: -12px;
     top: 80px;
     width: 4px;
     height: 60px;
     background: #2a2a2a;
     border-radius: 0 3px 3px 0;
 }

 .phone-notch {
     width: 80px;
     height: 24px;
     background: #111;
     border-radius: 0 0 16px 16px;
     position: absolute;
     top: 0;
     left: 50%;
     transform: translateX(-50%);
     z-index: 10;
 }

 .phone-screen {
     width: 100%;
     height: 100%;
     display: flex;
     flex-direction: column;
     overflow: hidden;
     border-radius: 36px;
 }

 .statusbar {
     height: 32px;
     background: #0d0d0d;
     display: flex;
     align-items: center;
     justify-content: space-between;
     padding: 0 20px;
     flex-shrink: 0;
 }

 .statusbar span {
     color: white;
     font-size: 10px;
     font-weight: 600;
 }

 .wallpaper {
     flex: 1;
     background: linear-gradient(170deg, #0f2444 0%, #1a4a7a 60%, #0d3358 100%);
     display: flex;
     flex-direction: column;
     align-items: center;
     padding-top: 30px;
     position: relative;
     overflow: hidden;
 }

 .wall-time {
     color: white;
     font-size: 52px;
     font-weight: 100;
     letter-spacing: -2px;
     line-height: 1;
 }

 .wall-date {
     color: rgba(255, 255, 255, 0.6);
     font-size: 12px;
     margin-top: 6px;
     font-weight: 400;
 }

 /* ── Notifications ── */
 .notif-area {
     width: 100%;
     padding: 12px 8px 0;
     display: flex;
     flex-direction: column;
     gap: 7px;
     margin-top: 16px;
 }

 .notif-card {
     background: rgba(255, 255, 255, 0.9);
     border-radius: 16px;
     padding: 11px 13px;
     display: flex;
     gap: 9px;
     align-items: flex-start;
     animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
 }

 .notif-card.done-card {
     background: rgba(220, 252, 231, 0.92);
 }

 @keyframes popIn {
     from {
         opacity: 0;
         transform: translateY(-16px) scale(0.92);
     }

     to {
         opacity: 1;
         transform: translateY(0) scale(1);
     }
 }

 .notif-icon {
     width: 32px;
     height: 32px;
     border-radius: 9px;
     display: flex;
     align-items: center;
     justify-content: center;
     flex-shrink: 0;
 }

 .notif-icon.serve {
     background: #860000;
 }

 .notif-icon.done {
     background: #198754;
 }

 .notif-icon svg {
     width: 16px;
     height: 16px;
     fill: white;
 }

 .notif-body {
     flex: 1;
     min-width: 0;
 }

 .notif-app {
     font-size: 9px;
     color: #555;
     font-weight: 700;
     text-transform: uppercase;
     letter-spacing: 0.7px;
 }

 .notif-title {
     font-size: 12px;
     font-weight: 700;
     color: #111;
     margin: 2px 0 2px;
     line-height: 1.3;
 }

 .notif-msg {
     font-size: 10px;
     color: #333;
     line-height: 1.45;
 }

 .notif-meta {
     font-size: 9px;
     color: #888;
     margin-top: 3px;
 }

 /* vibrate animation on new notif */
 @keyframes vibrate {

     0%,
     100% {
         transform: translateX(0);
     }

     20% {
         transform: translateX(-3px) rotate(-0.5deg);
     }

     40% {
         transform: translateX(3px) rotate(0.5deg);
     }

     60% {
         transform: translateX(-2px);
     }

     80% {
         transform: translateX(2px);
     }
 }

 .phone-frame.buzz {
     animation: vibrate 0.35s ease;
 }

 .lock-icon {
     position: absolute;
     bottom: 52px;
     left: 50%;
     transform: translateX(-50%);
     font-size: 20px;
     opacity: 0.4;
 }

 .swipe-hint {
     position: absolute;
     bottom: 30px;
     left: 50%;
     transform: translateX(-50%);
     font-size: 9px;
     color: rgba(255, 255, 255, 0.35);
     white-space: nowrap;
 }

 .home-bar {
     height: 20px;
     background: rgba(0, 0, 0, 0.3);
     display: flex;
     align-items: center;
     justify-content: center;
     flex-shrink: 0;
 }

 .home-indicator {
     width: 56px;
     height: 4px;
     background: rgba(255, 255, 255, 0.5);
     border-radius: 2px;
 }

 /* ── Status pill below phone ── */
 .connection-status {
     font-size: 11px;
     color: rgba(255, 255, 255, 0.4);
     display: flex;
     align-items: center;
     gap: 6px;
 }

 .clear-btn {
     margin-top: 4px;
     font-size: 11px;
     color: rgba(255, 255, 255, 0.3);
     background: transparent;
     border: 1px solid rgba(255, 255, 255, 0.15);
     border-radius: 20px;
     padding: 4px 14px;
     cursor: pointer;
     transition: all 0.2s;
 }

 .clear-btn:hover {
     color: rgba(255, 255, 255, 0.6);
     border-color: rgba(255, 255, 255, 0.35);
 }

 /* ── Back to Home button ── */
 .back-home {
     position: fixed;
     top: 16px;
     left: 16px;
     z-index: 10;
     background: rgba(255, 255, 255, 0.15);
     color: white;
     border: 1px solid rgba(255, 255, 255, 0.3);
     padding: 8px 14px;
     border-radius: 20px;
     font-size: 13px;
     text-decoration: none;
     font-weight: 600;
     backdrop-filter: blur(6px);
     transition: background 0.2s;
 }

 .back-home:hover {
     background: rgba(255, 255, 255, 0.25);
 }