/* PIK'S PHONE — Authentic Apple iOS 18 Design System */
:root {
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', sans-serif;
  --bg-gradient: #000000;
  --phone-aspect: calc(393 / 852);
  --phone-width: min(100vw, calc(100dvh * 393 / 852));
  --phone-height: 100dvh;
  --phone-radius: 0px;
  --screen-radius: 0px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  --ios-green: #34C759;
  --ios-red: #FF3B30;
  --ios-blue: #007AFF;
  --ios-purple: #AF52DE;
  --ios-yellow: #FFCC00;
  --ios-orange: #FF9500;

  --glass-bg: rgba(44, 44, 46, 0.72);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-blur: blur(28px);
  --sage: #34C759;
  --brown-dark: #1C1C1E;
  --brown-mid: #2C2C2E;
  --cream: #F2F2F7;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  background: #000000;
  font-family: var(--font);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  outline: none;
}

.stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100dvh;
  padding: 0;
  margin: 0;
  background: #000000;
  overflow: hidden;
  box-sizing: border-box;
}

/* ==================== FULL-SCREEN PURE iOS CONTAINER ==================== */
.phone {
  width: var(--phone-width);
  height: var(--phone-height);
  max-height: 100dvh;
  background: #000000;
  border: none;
  border-radius: 0;
  padding: 0;
  position: relative;
  box-sizing: border-box;
  flex-shrink: 0;
  box-shadow: none;
}

/* Hide decorative hardware side buttons for clean full-screen iOS */
.side-btn {
  display: none !important;
}

/* Screen Container */
.screen {
  width: 100%;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  position: relative;
  background: #000000;
  box-shadow: none;
}

/* Wallpaper — uses user's images/wallpaper.webp */
.wallpaper {
  position: absolute;
  inset: 0;
  background-image: url('../images/wallpaper.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 1;
}

.wallpaper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.08);
  pointer-events: none;
}

/* ==================== iOS STATUS BAR ==================== */
.status {
  position: absolute;
  top: 14px;
  left: 26px;
  right: 22px;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: #ffffff;
  pointer-events: auto;
  cursor: pointer;
  transition: color 0.2s ease;
}

.status.status-dark {
  color: #000000;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
}

.status-signal,
.status-wifi,
.status-battery {
  display: flex;
  align-items: center;
}

/* ==================== iPHONE DYNAMIC ISLAND ==================== */
.island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 112px;
  height: 29px;
  background: #000000;
  border-radius: 20px;
  z-index: 12;
  transition: all 0.34s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.island::after {
  content: '';
  position: absolute;
  right: 12px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 38%, #25344f 0%, #090d16 62%, #000000 100%);
  box-shadow: inset 0 0 1.5px rgba(120, 170, 255, 0.35);
}

.island.island-call::after,
.island.island-music::after {
  display: none;
}

.island-call {
  top: 10px;
  width: 216px;
  height: 34px;
  background: #1c1c24;
  border-radius: 20px;
  padding: 0 14px;
  justify-content: space-between;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.island-call-pill {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
}

.island-call-icon {
  color: var(--ios-green);
  display: flex;
  align-items: center;
}

.island-call-name {
  color: #ffffff;
  letter-spacing: 0.2px;
}

.island-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 16px;
}

.island-wave i {
  width: 3px;
  height: 14px;
  background: var(--ios-green);
  border-radius: 2px;
  animation: wave 1s ease-in-out infinite alternate;
}

.island-wave i:nth-child(2) {
  animation-delay: 0.2s;
  height: 10px;
}

.island-wave i:nth-child(3) {
  animation-delay: 0.4s;
  height: 16px;
}

.island-wave i:nth-child(4) {
  animation-delay: 0.1s;
  height: 8px;
}

@keyframes wave {
  0% {
    transform: scaleY(0.4);
  }

  100% {
    transform: scaleY(1);
  }
}

.island-music {
  top: 10px;
  width: auto;
  min-width: 164px;
  max-width: 214px;
  height: 32px;
  padding: 0 11px;
  background: #000000;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.island-music-pill {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 600;
}

.island-music-cover {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.island-music-dot {
  color: #1ed760;
}

.island-music-title {
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

/* ==================== LOCK SCREEN ==================== */
.lock-screen {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 72px;
  color: #ffffff;
  transition: opacity 0.3s ease, transform 0.3s ease;
  overflow: hidden;
}

/* Wallpaper background for lock screen */
.lock-screen::before {
  content: '';
  position: absolute;
  inset: -20px;
  background-image: url('../images/wallpaper.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: blur(22px) brightness(0.72) saturate(1.1);
  z-index: -1;
}

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

.lock-padlock {
  opacity: 0.85;
  display: inline-block;
  margin-bottom: 2px;
}

.lock-date {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: none;
}

.lock-time {
  font-size: 78px;
  font-weight: 600;
  letter-spacing: -2.5px;
  line-height: 1;
  margin: 6px 0 20px;
  color: #ffffff;
  text-shadow: none;
}

.lock-widget-card {
  width: calc(100% - 36px);
  background: rgba(44, 44, 46, 0.78);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 0.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  box-shadow: none;
  cursor: pointer;
}

.lock-widget-icon {
  flex-shrink: 0;
  display: flex;
}

.lock-widget-text .lw-title {
  font-size: 12px;
  color: rgba(235, 235, 245, 0.72);
}

.lock-widget-text .lw-body {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  margin-top: 2px;
}

.lock-bottom {
  position: absolute;
  bottom: 40px;
  left: 28px;
  right: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lock-shortcut-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(44, 44, 46, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 0.5px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.15s, background 0.15s;
}

.lock-shortcut-btn:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.35);
}

.lock-unlock-pill {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.4px;
  animation: pulse-unlock 2.2s infinite ease-in-out;
}

@keyframes pulse-unlock {

  0%,
  100% {
    opacity: 0.6;
    transform: translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

/* Lock screen language toggle */
.lock-lang-btn {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(90, 55, 30, 0.35);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(200, 170, 120, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: transform 0.15s, background 0.15s;
}

.lock-lang-btn:active {
  transform: scale(0.92);
  background: rgba(90, 55, 30, 0.6);
}

/* Language Picker Overlay */
.lang-picker {
  position: absolute;
  inset: 0;
  z-index: 60;
  background: rgba(20, 11, 5, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.lang-picker-card {
  width: 90%;
  max-width: 320px;
  max-height: 84%;
  display: flex;
  flex-direction: column;
  background: rgba(30, 18, 8, 0.96);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(200, 170, 120, 0.22);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.25s ease;
}

.lang-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.lang-picker-title {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
}

.lang-picker-close {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1;
  padding: 2px;
}

.lang-picker-close:active {
  color: #ffffff;
}

.lang-picker-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 2px;
}

.lang-picker-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 600;
  text-align: left;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.lang-picker-item:active {
  transform: scale(0.98);
  background: rgba(255, 255, 255, 0.12);
}

.lang-picker-item.active {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.5);
}

.lang-item-code {
  font-size: 12px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.5);
  margin-right: 2px;
}

.lang-item-flag {
  font-size: 18px;
  margin-right: 2px;
}

.lang-picker-item.active .lang-item-code {
  color: #818cf8;
}

.lang-item-name {
  flex: 1;
}

/* Story sequence typing indicator */
.line-typing-row {
  display: flex;
  align-items: flex-end;
  max-width: 82%;
  margin: 10px 0;
  animation: fadeIn 0.2s ease;
}

.line-typing-bubble {
  background: #f0f2f5;
  border: 1px solid #e5e5ea;
  border-radius: 18px;
  border-top-right-radius: 4px;
  padding: 8px 12px;
  font-size: 13px;
  color: #666;
  display: flex;
  gap: 4px;
  align-items: center;
}

.typing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8e8e93;
  animation: typing 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) {
  animation-delay: 0s;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {

  0%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }

  50% {
    transform: translateY(-3px);
    opacity: 1;
  }
}

/* Reuse fadeIn for PIN overlay if not defined elsewhere; ensure present */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ==================== PIN OVERLAY ==================== */
.pin-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(35px);
  -webkit-backdrop-filter: blur(35px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 100px;
  animation: fadeIn 0.25s ease;
}

.pin-title {
  font-size: 19px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 24px;
}

.pin-dots {
  display: flex;
  gap: 18px;
  margin-bottom: 46px;
}

.pin-dots i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  transition: background 0.15s, border-color 0.15s;
}

.pin-dots i.filled {
  background: #ffffff;
  border-color: #ffffff;
}

.pin-dots.shake {
  animation: shake 0.4s ease;
}

@keyframes shake {

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

  20%,
  60% {
    transform: translateX(-12px);
  }

  40%,
  80% {
    transform: translateX(12px);
  }
}

.pin-keypad {
  display: grid;
  grid-template-columns: repeat(3, 76px);
  gap: 18px 26px;
}

.pin-key {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: background 0.1s, transform 0.1s;
}

.pin-key:active {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0.94);
}

.pin-key b {
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
}

.pin-key small {
  font-size: 9px;
  letter-spacing: 2px;
  margin-top: 2px;
  opacity: 0.8;
}

.pin-action-btn {
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==================== HOME SCREEN ==================== */
.home-screen {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.2, 0, 0, 1), opacity 0.28s cubic-bezier(0.2, 0, 0, 1), filter 0.28s ease;
  will-change: transform, opacity;
}

.home-screen.home-backgrounded {
  transform: scale(0.93);
  opacity: 0.55;
  filter: blur(2px);
  pointer-events: none;
}

/* Horizontal Multi-page Slider */
.home-pages-slider {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.home-pages-slider::-webkit-scrollbar {
  display: none;
}

.home-page {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  padding: 60px 20px 156px;
  box-sizing: border-box;
  overflow-y: auto;
  scrollbar-width: none;
}

.home-page::-webkit-scrollbar {
  display: none;
}

.home-page-1 {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.home-page-2 {
  display: flex;
  flex-direction: column;
}

/* Page Indicator Dots */
.home-page-dots {
  position: absolute;
  bottom: 150px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  z-index: 6;
  pointer-events: auto;
}

.page-dot {
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.36);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  padding: 0;
  border: none;
}

.page-dot.active {
  background: #ffffff;
  transform: scale(1.18);
  box-shadow: none;
}

/* Top iOS White Calendar Widget */
.widget-calendar {
  background: #ffffff;
  border: none;
  border-radius: 24px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 0;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.14);
  transition: transform 0.15s;
}

.widget-calendar:active {
  transform: scale(0.98);
}

.widget-calendar.date-flipping,
.widget-cal-preview.date-flipping {
  animation: dateFlip 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.wcal-num.date-num-flip {
  display: inline-block;
  animation: dateNumPop 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.wcp-d.date-day-pop {
  animation: dateDayPulse 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes dateFlip {
  0% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.045);
    box-shadow: 0 12px 32px rgba(255, 59, 48, 0.28);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes dateNumPop {
  0% {
    opacity: 0.2;
    transform: translateY(10px) scale(0.8);
  }

  60% {
    opacity: 1;
    transform: translateY(-2px) scale(1.14);
    color: #FF3B30;
  }

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

@keyframes dateDayPulse {
  0% {
    transform: scale(0.65);
    box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7);
  }

  55% {
    transform: scale(1.22);
    box-shadow: 0 0 0 8px rgba(255, 59, 48, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 59, 48, 0);
  }
}

/* Mini Month Card on Page 1 — Authentic White iOS Calendar Widget */
.widget-cal-preview {
  background: #ffffff;
  border: none;
  border-radius: 24px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.14);
  transition: transform 0.15s;
}

.widget-cal-preview:active {
  transform: scale(0.98);
}

.wcp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wcp-month {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #FF3B30;
}

.wcp-badge {
  font-size: 11px;
  font-weight: 600;
  background: rgba(0, 122, 255, 0.12);
  color: #007AFF;
  padding: 3px 10px;
  border-radius: 999px;
  border: none;
}

.wcp-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px 4px;
  text-align: center;
}

.wcp-th {
  font-weight: 600;
  color: rgba(60, 60, 67, 0.5);
  font-size: 10px;
  padding-bottom: 2px;
}

.wcp-d {
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1c1c1e;
  font-size: 12px;
  border-radius: 50%;
  font-weight: 500;
  transition: all 0.2s;
}

.wcp-d.active-today {
  background: #FF3B30;
  color: #ffffff;
  font-weight: 700;
  box-shadow: none;
}

.wcal-date {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: transparent;
  color: #1c1c1e;
  border-radius: 0;
  padding: 0 4px 0 0;
  box-shadow: none;
}

.wcal-day {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #FF3B30;
}

.wcal-num {
  font-size: 32px;
  font-weight: 400;
  line-height: 1.05;
  color: #1c1c1e;
}

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

.wcal-info .wcal-event-title {
  font-size: 14px;
  font-weight: 600;
  color: #1c1c1e;
}

.wcal-info .wcal-event-time {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  color: #007AFF;
  background: rgba(0, 122, 255, 0.12);
  padding: 3px 9px;
  border-radius: 999px;
  margin-top: 5px;
}

/* 4-Column Authentic iOS App Grid */
.app-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 14px;
}

.app-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  position: relative;
  transition: transform 0.15s;
}

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

.app-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  position: relative;
  box-shadow: none;
}

.app-icon-wrap svg {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  display: block;
}

.app-label {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: -0.1px;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
}

/* Authentic iOS Solid Red Notification Badge */
.app-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: #FF3B30;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
}

/* iOS Spotlight Search Pill */
.search-pill,
.ios-spotlight-pill {
  position: absolute;
  bottom: 114px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  height: 28px;
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: none;
  border-radius: 999px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.96);
  box-shadow: none;
  cursor: pointer;
  transition: transform 0.16s cubic-bezier(0.2, 0, 0, 1), background 0.16s ease;
}

.search-pill:active,
.ios-spotlight-pill:active {
  transform: translateX(-50%) scale(0.95);
}

.search-pill-text {
  opacity: 0.96;
}

/* Authentic iOS Frosted Glass Floating Dock */
.dock {
  position: absolute;
  bottom: 16px;
  left: 12px;
  right: 12px;
  height: 84px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(36px) saturate(180%);
  -webkit-backdrop-filter: blur(36px) saturate(180%);
  border: none;
  border-radius: 32px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: none;
}

.dock-item {
  transition: transform 0.15s;
}

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

.dock .app-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 14px;
}

/* ==================== APP SCREEN & HEADER ==================== */
.app-screen {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: #ffffff;
  color: #111111;
  display: flex;
  flex-direction: column;
  padding-top: 40px;
  padding-bottom: 24px;
  opacity: 1;
  will-change: transform;
}

.app-screen.opening {
  animation: appOpen 0.22s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.app-screen[data-app="x"],
.app-screen[data-app="camera"],
.app-screen[data-app="clock"] {
  background: #000000;
}

.app-screen[data-app="spotify"],
.app-screen[data-app="music"] {
  background: #121212;
}

.app-screen[data-app="youtube"] {
  background: #0f0f0f;
}

.app-screen[data-app="weather"] {
  background: #1a2232;
}

.app-screen.closing {
  animation: appClose 0.2s cubic-bezier(0.32, 0, 0.67, 0) forwards;
  pointer-events: none;
}

@keyframes appOpen {
  from {
    opacity: 1;
    transform: translateY(28px) scale(0.96);
    border-radius: 26px;
  }

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

@keyframes appClose {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
    border-radius: 0;
  }

  85% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(36px) scale(0.94);
    border-radius: 26px;
  }
}

.app-header {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-bottom: 1px solid #e5e5ea;
  background: #f7f7f8;
}

.back-btn {
  color: var(--ios-blue);
  display: flex;
  align-items: center;
}

.app-title {
  font-size: 16px;
  font-weight: 650;
  color: #1c1c1e;
}

.app-header-spacer {
  width: 24px;
}

.app-content {
  flex: 1;
  overflow-y: auto;
  position: relative;
  background: #f2f2f7;
}

/* ==================== PHONE APP ==================== */
.native-phone {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

.phone-tabs-header {
  padding: 10px 16px;
  background: #f7f7f8;
  border-bottom: 1px solid #e5e5ea;
}

.phone-segmented-tabs {
  display: flex;
  background: #e3e3e8;
  border-radius: 9px;
  padding: 2px;
}

.phone-segmented-tabs button {
  flex: 1;
  padding: 6px 0;
  font-size: 13px;
  font-weight: 500;
  border-radius: 7px;
  color: #1c1c1e;
  transition: all 0.2s;
}

.phone-segmented-tabs button.active {
  background: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.phone-body {
  flex: 1;
  overflow-y: auto;
}

/* Recents */
.recents-list {
  padding: 8px 16px;
}

.call-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f4;
  cursor: pointer;
  transition: background 0.15s, transform 0.12s;
}

.call-row.call-row-active,
.contact-row.call-row-active {
  background: rgba(0, 122, 255, 0.12) !important;
  border-radius: 12px;
  transform: scale(0.98);
}

.call-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.call-info {
  flex: 1;
}

.call-name {
  font-size: 15px;
  font-weight: 600;
  color: #1c1c1e;
}

.call-missed .call-name {
  color: var(--ios-red);
}

.call-sub {
  font-size: 12px;
  color: #8e8e93;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.call-type-icon {
  display: inline-flex;
}

.call-type-icon svg {
  width: 13px;
  height: 13px;
}

.call-time {
  font-size: 12px;
  color: #8e8e93;
}

.call-dial-btn {
  color: var(--ios-blue);
  padding: 6px;
  display: flex;
}

.call-dial-btn svg {
  width: 18px;
  height: 18px;
}

/* Keypad */
.keypad-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 24px;
}

.keypad-display {
  font-size: 32px;
  font-weight: 400;
  color: #111;
  height: 44px;
  letter-spacing: 1px;
  text-align: center;
  margin-bottom: 16px;
}

.keypad-grid {
  display: grid;
  grid-template-columns: repeat(3, 72px);
  gap: 14px 24px;
}

.keypad-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #e5e5ea;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #111;
  transition: background 0.1s;
}

.keypad-btn:active {
  background: #d1d1d6;
}

.keypad-digit {
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
}

.keypad-letters {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #636366;
  margin-top: 2px;
}

.keypad-actions {
  display: grid;
  grid-template-columns: 72px 72px 72px;
  gap: 24px;
  margin-top: 18px;
  align-items: center;
}

.keypad-call-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--ios-green);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(52, 199, 89, 0.4);
}

.keypad-call-btn svg {
  width: 28px;
  height: 28px;
}

.keypad-call-btn[disabled] {
  opacity: 0.5;
}

.keypad-backspace {
  color: #8e8e93;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Contacts */
.contacts-list {
  padding: 8px 16px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f4;
  cursor: pointer;
}

.contact-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-name {
  flex: 1;
}

.contact-name strong {
  display: block;
  font-size: 15px;
  color: #111;
}

.contact-name small {
  font-size: 12px;
  color: #8e8e93;
}

.contact-call-action {
  color: var(--ios-green);
  display: flex;
}

/* ==================== AUTHENTIC iOS 18 CALL OVERLAY ==================== */
.call-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: radial-gradient(circle at 50% 24%, rgba(68, 68, 76, 0.45) 0%, #141416 46%, #000000 100%);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  color: #ffffff;
  animation: fadeIn 0.24s ease;
}

.active-call-screen {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 78px 24px 62px;
}

.call-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}

.call-person-avatar {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  font-size: 42px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 14px 36px rgba(0, 0, 0, 0.55);
}

/* Photo variant — no background color needed */
.call-person-avatar--photo {
  background: none;
  overflow: hidden;
}

.call-avatar-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* ── Shared avatar helpers used in LINE, Phone, etc. ── */
.contact-avatar-wrap,
.line-chat-avatar,
.call-avatar,
.contact-avatar {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
}

.avatar-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.avatar-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  font-size: inherit;
}

/* LINE thread header mini avatar */
.line-thread-header-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-right: 8px;
}

.line-thread-header-avatar img.avatar-photo {
  width: 34px;
  height: 34px;
}

.call-person-name {
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.6px;
  line-height: 1.15;
  margin-bottom: 6px;
  color: #ffffff;
}

.call-status-pill {
  font-size: 15px;
  font-weight: 500;
  color: rgba(235, 235, 245, 0.65);
  letter-spacing: -0.1px;
}

/* Spoken Dialogue Caption Bubble — Clean iOS Frosted Glass */
.call-caption-bubble {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 0.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 14px 18px;
  font-size: 14.5px;
  line-height: 1.48;
  width: 100%;
  max-width: 340px;
  text-align: center;
  color: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.call-caption-bubble.active {
  opacity: 1;
  transform: translateY(0);
}

.call-caption-bubble strong {
  color: rgba(255, 255, 255, 0.62);
  font-weight: 600;
  margin-right: 5px;
}

/* ---- Native iOS Call Action Buttons Row ---- */
.call-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 316px;
  padding: 0 12px;
}

.incoming-call .call-actions-row {
  justify-content: space-between;
  max-width: 332px;
  padding: 0 26px;
  gap: 80px;
}

.call-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.15s ease, transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}

.call-action-btn:disabled {
  opacity: 0.42;
  cursor: default;
}

.call-action-btn:not(:disabled):active {
  transform: scale(0.92);
  opacity: 0.8;
}

.call-action-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
  transition: background 0.15s ease;
}

.call-action-icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

.call-action-icon.hangup svg {
  transform: rotate(135deg);
}

.call-action-btn.decline .call-action-icon {
  background: #FF3B30;
  box-shadow: 0 8px 24px rgba(255, 59, 48, 0.35);
}

.call-action-btn.accept .call-action-icon {
  background: #34C759;
  box-shadow: 0 8px 24px rgba(52, 199, 89, 0.35);
}

.call-action-btn small {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: -0.1px;
}

/* Legacy .call-buttons-grid + .call-btn compat (not used in story calls) */
.call-buttons-grid {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.call-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #ffffff;
}

.btn-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.btn-circle svg {
  width: 26px;
  height: 26px;
}

.btn-circle.hangup {
  background: #ff3b30;
}

.call-btn small {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
}

/* ==================== LINE APP ==================== */
.native-line {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

.line-header {
  height: 48px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid #eef0f3;
}

.line-header h2 {
  font-size: 17px;
  font-weight: 700;
}

.line-header-btn {
  color: #06c755;
  font-size: 14px;
  font-weight: 600;
}

.line-search-bar {
  padding: 8px 16px;
  background: #ffffff;
  position: relative;
}

.line-search-bar input {
  width: 100%;
  padding: 8px 12px 8px 34px;
  border-radius: 10px;
  background: #f4f5f7;
  border: 0;
  font-size: 13px;
}

.line-search-icon {
  position: absolute;
  left: 26px;
  top: 17px;
  color: #8e8e93;
}

.line-search-icon svg {
  width: 14px;
  height: 14px;
}

.line-chats-scroll {
  flex: 1;
  overflow-y: auto;
}

.line-chat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #f4f5f7;
  cursor: pointer;
  transition: background 0.15s;
}

.line-chat-item:active {
  background: #f9f9fb;
}

.line-chat-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.line-chat-info {
  flex: 1;
  min-width: 0;
}

.line-chat-title {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.line-chat-title strong {
  font-size: 15px;
  color: #111;
}

.line-chat-time {
  font-size: 11px;
  color: #999;
}

.line-chat-time.unread {
  color: #06c755;
  font-weight: 700;
}

.line-chat-snippet {
  font-size: 13px;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.line-chat-snippet-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.line-unread-tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #06c755;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(6, 199, 85, 0.4);
}

/* LINE Chat Pin Icon */
.line-chat-item.pinned {
  background: rgba(6, 199, 85, 0.035);
}

.line-chat-item.pinned:active {
  background: rgba(6, 199, 85, 0.08);
}

.line-chat-right-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.line-pin-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  color: #7D9B76;
  flex-shrink: 0;
}

.line-pin-icon svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
  transform: rotate(45deg);
}

/* LINE Thread View */
.line-thread-view {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #8499b1;
  overflow: hidden;
}

.line-thread-header {
  height: 48px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-bottom: 1px solid #eef0f3;
}

.line-back-btn,
.line-call-btn {
  color: #06c755;
  display: flex;
}

.line-back-btn svg,
.line-call-btn svg {
  width: 22px;
  height: 22px;
}

.line-thread-title {
  text-align: center;
}

.line-thread-title strong {
  display: block;
  font-size: 15px;
  color: #111;
}

.line-thread-title small {
  font-size: 11px;
  color: #8e8e93;
}

.line-thread-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.line-date-divider {
  align-self: center;
  background: rgba(0, 0, 0, 0.22);
  color: #ffffff;
  font-size: 10px;
  font-weight: 500;
  padding: 3px 12px;
  border-radius: 12px;
  margin: 6px 0;
}

.line-msg-row {
  display: flex;
  gap: 8px;
  max-width: 82%;
}

.line-msg-row.them {
  align-self: flex-start;
}

.line-msg-row.me {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.line-msg-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.line-msg-avatar img.avatar-photo {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.line-msg-content {
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

.line-msg-row.me .line-msg-content {
  flex-direction: row-reverse;
}

.line-bubble {
  padding: 9px 13px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.45;
  word-break: break-word;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.line-msg-row.them .line-bubble {
  background: #ffffff;
  color: #111111;
  border-top-left-radius: 4px;
}

.line-msg-row.me .line-bubble {
  background: #06c755;
  color: #ffffff;
  border-top-right-radius: 4px;
}

.line-msg-avatar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  max-width: 44px;
}

.line-msg-avatar-name {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 44px;
  text-align: center;
  font-weight: 500;
}

.line-msg-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.line-msg-row.me .line-msg-meta {
  justify-content: flex-end;
}

.line-msg-row.them .line-msg-meta {
  justify-content: flex-start;
}

.line-msg-time {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.85);
}

.line-msg-tick {
  display: inline-flex;
  align-items: center;
}

.line-msg-tick .whatsapp-tick {
  width: 14px;
  height: 11px;
}

.line-quick-replies {
  background: rgba(255, 255, 255, 0.95);
  padding: 6px 12px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  border-top: 1px solid #e5e5ea;
}

.quick-chip {
  background: #f0f2f5;
  border: 1px solid #e0e2e8;
  border-radius: 14px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  color: #111;
  white-space: nowrap;
}

.quick-chip:active {
  background: #06c755;
  color: #fff;
}

.line-composer {
  background: #f6f6f6;
  padding: 8px 12px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  border-top: 1px solid #e5e5ea;
}

.line-compose-plus {
  font-size: 22px;
  color: #8e8e93;
  padding-bottom: 4px;
}

.line-input-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
}

.line-input-wrap input,
.line-input-wrap textarea {
  width: 100%;
  padding: 8px 14px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #dcdce0;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.35;
  min-height: 36px;
  max-height: 92px;
  resize: none;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
  outline: none;
  display: block;
}

.line-send-btn {
  color: #06c755;
  display: flex;
  padding-bottom: 7px;
}

.line-send-btn svg {
  width: 20px;
  height: 20px;
}

/* ==================== X (TWITTER) APP ==================== */
.native-x {
  height: 100%;
  background: #000000;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.x-header {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid #1c1c1e;
}

.x-username {
  font-size: 18px;
  font-weight: 700;
}

.x-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 22px;
}

.x-dm-btn {
  display: flex;
}

.x-dm-btn svg {
  width: 22px;
  height: 22px;
}

.x-post-btn {
  background: #1d9bf0;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 700;
}

.x-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
}

.x-profile-top {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-bottom: 14px;
}

.x-avatar-ring {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: linear-gradient(45deg, #4da6ec, #1d9bf0, #0d8bd8);
  padding: 2.5px;
}

.x-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #111;
  border: 2px solid #000;
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.x-stats {
  flex: 1;
  display: flex;
  justify-content: space-around;
}

.x-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.x-stat strong {
  font-size: 16px;
  font-weight: 700;
}

.x-stat small {
  font-size: 12px;
  color: #a8a8a8;
}

.x-bio strong {
  font-size: 14px;
  display: block;
}

.x-bio p {
  font-size: 13px;
  line-height: 1.4;
  color: #e5e5e5;
  margin-top: 4px;
}

.x-actions {
  display: flex;
  gap: 8px;
  margin: 14px 0 16px;
}

.x-btn {
  flex: 1;
  background: #262626;
  border-radius: 8px;
  padding: 7px 0;
  font-size: 13px;
  font-weight: 600;
}

.x-tabs {
  display: flex;
  border-top: 1px solid #262626;
  margin-bottom: 4px;
}

.x-tabs button {
  flex: 1;
  padding: 10px 0;
  display: flex;
  justify-content: center;
  color: #8e8e93;
}

.x-tabs button.active {
  color: #ffffff;
  border-top: 1px solid #ffffff;
}

.x-tabs svg {
  width: 20px;
  height: 20px;
}

.x-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.x-grid-item {
  aspect-ratio: 1;
  display: flex;
  align-items: flex-end;
  padding: 6px;
  cursor: pointer;
}

.x-item-tag {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.45);
  border-radius: 4px;
  padding: 2px 4px;
}

/* ==================== GALLERY APP ==================== */
.native-photos {
  height: 100%;
  background: #0f1115;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.photos-header {
  padding: 12px 16px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 17, 21, 0.95);
  backdrop-filter: blur(12px);
  z-index: 10;
}

.photos-header h1 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.3px;
}

.photos-header small {
  font-size: 11px;
  color: #94a3b8;
}

.gallery-vault-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  color: #f1f5f9;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gallery-vault-toggle svg {
  width: 14px;
  height: 14px;
}

.gallery-vault-toggle.active {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.gallery-unlock-banner,
.gallery-swipe-hint {
  margin: 8px 14px 4px;
  padding: 8px 12px;
  background: rgba(90, 55, 30, 0.35);
  border: 1px solid rgba(200, 170, 120, 0.25);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  color: #D4BFA0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s, transform 0.12s;
}

.gallery-unlock-banner svg,
.gallery-swipe-hint svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.gallery-unlock-banner:active,
.gallery-swipe-hint:active {
  background: rgba(90, 55, 30, 0.55);
  transform: scale(0.98);
}

.photos-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0 14px 18px;
  -webkit-overflow-scrolling: touch;
}

/* Hidden Vault Drawer */
.gallery-vault-drawer {
  margin: 8px 0 16px;
  padding: 14px 12px 14px;
  background: #1C1C1E;
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: none;
}

.vault-section-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  color: #0A84FF;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
  padding-left: 2px;
}

.vault-section-title svg {
  width: 14px;
  height: 14px;
}

.vault-albums-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.vault-album-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 8px;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.vault-album-card:active {
  transform: scale(0.96);
  border-color: rgba(139, 92, 246, 0.5);
  background: rgba(139, 92, 246, 0.08);
}

.vault-album-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: #18181b;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.vault-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vault-count-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 12px;
}

.vault-album-info {
  margin-top: 8px;
  padding: 0 2px;
}

.vault-album-info strong {
  display: block;
  font-size: 12px;
  color: #f1f5f9;
}

.vault-album-caption {
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
  color: #e2e8f0;
  margin-top: 2px;
  line-height: 1.35;
  letter-spacing: -0.1px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Year Sections & Main Grid */
.photos-year-section {
  margin-top: 14px;
}

.photos-year-label {
  font-size: 16px;
  font-weight: 700;
  margin: 6px 0 10px;
  color: #cbd5e1;
  letter-spacing: -0.2px;
}

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

.photo-card {
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #1e222b;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease;
}

.photo-card:active {
  transform: scale(0.97);
}

.photo-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-card-overlay {
  display: none !important;
}

/* Album View (Opened Album) */
.gallery-album-view {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.gallery-album-header {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gallery-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #38bdf8;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.gallery-back-btn svg {
  width: 18px;
  height: 18px;
}

.gallery-album-header h2 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
}

.album-quote-card {
  margin: 10px 14px 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
  color: #e2e8f0;
  line-height: 1.4;
  text-align: center;
}

/* Photo Viewer */
.native-photo-viewer {
  height: 100%;
  background: #000000;
  color: #ffffff;
  display: flex;
  flex-direction: column;
}

.photo-viewer-header {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.photo-viewer-back {
  color: #38bdf8;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.photo-viewer-back svg {
  width: 22px;
  height: 22px;
}

.photo-viewer-counter {
  font-size: 13px;
  font-weight: 600;
  color: #f8fafc;
  letter-spacing: -0.1px;
}

.photo-viewer-date {
  text-align: center;
}

.photo-viewer-date strong {
  display: block;
  font-size: 13px;
  color: #f8fafc;
}

.photo-viewer-date small {
  font-size: 10px;
  color: #94a3b8;
}

.photo-viewer-canvas {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 10px;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.photo-viewer-img-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
}

.photo-viewer-img {
  max-width: 96%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7);
  pointer-events: none;
  transition: transform 0.2s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.photo-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(90, 55, 30, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  font-size: 26px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 6;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s, background 0.15s;
}

.photo-nav-prev {
  left: 8px;
  padding-right: 2px;
}

.photo-nav-next {
  right: 8px;
  padding-left: 2px;
}

.photo-nav-arrow:active {
  transform: translateY(-50%) scale(0.88);
  background: rgba(255, 255, 255, 0.32);
}

.photo-swipe-hint {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 8px;
  letter-spacing: 0.3px;
  text-align: center;
  pointer-events: none;
}

.photo-viewer-caption-bar {
  margin-top: 12px;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  border-radius: 20px;
  font-size: 12px;
  font-style: italic;
  color: #fde047;
  text-align: center;
  border: 1px solid rgba(253, 224, 71, 0.25);
  max-width: 90%;
}

.photo-viewer-toolbar {
  height: 44px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid #1c1c1e;
  background: #0f1115;
}

.photo-viewer-toolbar button {
  color: #38bdf8;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.photo-viewer-toolbar svg {
  width: 20px;
  height: 20px;
}

/* ==================== NOTES APP ==================== */
.native-notes {
  height: 100%;
  background: #f7f7f9;
  display: flex;
  flex-direction: column;
}

.notes-header {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.notes-header h1 {
  font-size: 28px;
  font-weight: 700;
}

.notes-count {
  font-size: 13px;
  color: #8e8e93;
}

.notes-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 10px 16px;
}

.notes-group {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.note-list-card {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f4;
  cursor: pointer;
}

.note-list-card:last-child {
  border-bottom: 0;
}

.note-list-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: #111;
  margin-bottom: 4px;
}

.note-card-meta {
  font-size: 12px;
  color: #8e8e93;
  display: flex;
  gap: 8px;
}

.note-snippet {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.note-paper {
  flex: 1;
  background: #ffffff;
  margin: 12px 16px;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.note-paper-date {
  font-size: 12px;
  color: #a097ad;
  margin-bottom: 10px;
}

.note-paper-title {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  margin-bottom: 14px;
}

.note-paper-body {
  font-size: 15px;
  line-height: 1.7;
  color: #333;
}

.notes-back-btn {
  color: var(--ios-orange);
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==================== WEATHER APP ==================== */
.native-weather {
  height: 100%;
  background: linear-gradient(180deg, #3a7bd5 0%, #3a6073 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
}

.weather-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
}

.weather-hero {
  text-align: center;
  padding: 16px 0;
}

.weather-city {
  font-size: 28px;
  font-weight: 600;
}

.weather-temp {
  font-size: 72px;
  font-weight: 200;
  line-height: 1;
  margin: 4px 0;
}

.weather-cond {
  font-size: 16px;
  font-weight: 500;
}

.weather-highlow {
  font-size: 13px;
  opacity: 0.85;
  margin-top: 4px;
}

.weather-card {
  background: rgba(0, 0, 0, 0.22);
  border-radius: 16px;
  padding: 12px 16px;
  margin-top: 14px;
  backdrop-filter: blur(14px);
}

.weather-card-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
}

.weather-hourly-row {
  display: flex;
  justify-content: space-between;
}

.hourly-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.hourly-col small {
  font-size: 11px;
  opacity: 0.8;
}

.forecast-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.forecast-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.forecast-row span:first-child {
  width: 48px;
}

.temp-bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  position: relative;
}

.temp-bar i {
  position: absolute;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, #00d2ff, #f7bb97);
  border-radius: 2px;
}

/* ==================== SAFARI APP ==================== */
.native-safari {
  height: 100%;
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.safari-header {
  padding: 10px 16px;
  background: #f7f7f8;
  border-bottom: 1px solid #e5e5ea;
}

.safari-url-bar {
  background: #e8e8ed;
  border-radius: 10px;
  padding: 8px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #111;
}

.safari-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.safari-scroll h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.safari-query-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f4;
  cursor: pointer;
}

.safari-clock-icon {
  color: #8e8e93;
}

.safari-clock-icon svg {
  width: 16px;
  height: 16px;
}

.safari-query-text {
  flex: 1;
  font-size: 14px;
  color: #111;
}

.safari-arrow-icon {
  color: #c7c7cc;
}

.safari-favorites {
  margin-top: 24px;
}

.safari-favorites h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
}

.fav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 8px;
}

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

.fav-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: #f0f0f4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #111;
}

.fav-item small {
  font-size: 11px;
  color: #666;
}

.safari-toolbar {
  height: 44px;
  background: #f7f7f8;
  border-top: 1px solid #e5e5ea;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.safari-toolbar button {
  color: var(--ios-blue);
  display: flex;
}

.safari-toolbar svg {
  width: 20px;
  height: 20px;
}

/* ==================== CALENDAR APP ==================== */
.native-calendar {
  height: 100%;
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.calendar-header {
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e5e5ea;
}

.calendar-header h1 {
  font-size: 24px;
  font-weight: 700;
}

.cal-today-btn {
  color: var(--ios-red);
  font-size: 14px;
  font-weight: 600;
}

.calendar-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #8e8e93;
  margin-bottom: 10px;
}

.cal-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px 0;
  text-align: center;
}

.cal-day {
  height: 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  position: relative;
}

.cal-day.today b {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ios-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cal-event-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ios-purple);
  margin-top: 2px;
}

.calendar-event-card {
  margin-top: 24px;
  background: #f7f7f9;
  border-left: 4px solid var(--ios-purple);
  border-radius: 10px;
  padding: 14px 16px;
}

.event-time {
  font-size: 12px;
  font-weight: 600;
  color: var(--ios-purple);
}

.event-details strong {
  display: block;
  font-size: 15px;
  margin: 3px 0 2px;
}

.event-details small {
  font-size: 12px;
  color: #666;
}

/* ==================== CAMERA APP ==================== */
.native-camera {
  height: 100%;
  background: #000000;
  display: flex;
  flex-direction: column;
}

.camera-viewfinder {
  flex: 1;
  margin: 10px 10px 0;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: #111;
}

.camera-simulated-view {
  width: 100%;
  height: 100%;
  background: #000000;
  position: relative;
  overflow: hidden;
}

.camera-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.camera-grid-lines {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to right, transparent 33%, rgba(255, 255, 255, 0.22) 33.3%, transparent 33.6%, transparent 66.3%, rgba(255, 255, 255, 0.22) 66.6%, transparent 67%),
    linear-gradient(to bottom, transparent 33%, rgba(255, 255, 255, 0.22) 33.3%, transparent 33.6%, transparent 66.3%, rgba(255, 255, 255, 0.22) 66.6%, transparent 67%);
}

.camera-focus-bracket {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border: 1.5px solid var(--ios-yellow);
  border-radius: 6px;
  z-index: 3;
  pointer-events: none;
  animation: pulseFocus 2.5s infinite ease-in-out;
}

.camera-sound-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 6;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.15s, background 0.15s;
}

.camera-sound-btn:active {
  transform: scale(0.9);
  background: rgba(0, 0, 0, 0.7);
}

.camera-sound-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.camera-flash-overlay {
  position: absolute;
  inset: 0;
  background: #ffffff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.camera-flash-overlay.flash-active {
  opacity: 0.85;
}

.camera-controls-bottom {
  padding: 16px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.camera-modes {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #8e8e93;
}

.camera-modes span.active {
  color: var(--ios-yellow);
}

.camera-shutter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.camera-recent-thumb {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.camera-shutter-btn {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 4px solid #ffffff;
  padding: 3px;
  background: none;
}

.camera-shutter-btn::after {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 0.1s;
}

.camera-shutter-btn:active::after {
  transform: scale(0.9);
}

.camera-flip-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #222;
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==================== MUSIC APP ==================== */
.native-music {
  height: 100%;
  background: linear-gradient(180deg, #1f1b2e 0%, #121212 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
}

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

.music-header-back {
  display: flex;
  cursor: pointer;
}

.music-header-back svg {
  width: 22px;
  height: 22px;
}

.music-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.music-art-large {
  width: 200px;
  height: 200px;
  border-radius: 20px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  margin-bottom: 24px;
}

.music-art-disc {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1ed760, #14833b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  color: #111;
}

.music-art-disc.spinning {
  animation: spin 5s linear infinite;
}

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

.music-meta {
  width: 100%;
  margin-bottom: 18px;
}

.music-meta h2 {
  font-size: 20px;
  font-weight: 700;
}

.music-meta p {
  font-size: 14px;
  color: #b3b3b3;
}

.music-scrubber {
  width: 100%;
  margin-bottom: 20px;
}

.scrub-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  position: relative;
}

.scrub-bar i {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  background: #ffffff;
  border-radius: 2px;
}

.scrub-times {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #b3b3b3;
  margin-top: 6px;
}

.music-controls-row {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 28px;
}

.music-btn {
  color: #fff;
  display: flex;
}

.music-btn svg {
  width: 26px;
  height: 26px;
}

.music-btn-play {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #ffffff;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

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

.music-playlist-list {
  width: 100%;
}

.music-playlist-list h3 {
  font-size: 14px;
  color: #888;
  margin-bottom: 10px;
}

.track-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.track-row.active strong {
  color: #1ed760;
}

.track-info strong {
  display: block;
  font-size: 14px;
}

.track-info small {
  font-size: 12px;
  color: #888;
}

.track-dur {
  font-size: 12px;
  color: #888;
}

/* ==================== SETTINGS APP ==================== */
.native-settings {
  height: 100%;
  background: #f2f2f7;
  display: flex;
  flex-direction: column;
}

.settings-header {
  padding: 12px 16px;
}

.settings-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: #111;
}

.settings-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px 20px;
}

.settings-profile-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.settings-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ios-purple);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.settings-user strong {
  display: block;
  font-size: 15px;
  color: #111;
}

.settings-user small {
  font-size: 12px;
  color: #8e8e93;
}

.settings-group {
  background: #ffffff;
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
}

.settings-row {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #f0f0f4;
  font-size: 14px;
  color: #111;
}

.settings-row:last-child {
  border-bottom: 0;
}

.set-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #fff;
}

.settings-row span:nth-child(2) {
  flex: 1;
}

.settings-row small {
  color: #8e8e93;
  font-size: 13px;
}

/* ==================== NOTIFICATIONS & TOAST ==================== */
.notification-toast {
  position: absolute;
  top: 14px;
  left: 12px;
  right: 12px;
  z-index: 9500;
  /* above scene-lock (9000) so it's always tappable */
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.notification-toast.toast-slide-down {
  transform: translateY(0);
}

.toast-card {
  background: rgba(28, 28, 30, 0.92);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 0.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  pointer-events: all;
}

.toast-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

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

.toast-text {
  flex: 1;
  min-width: 0;
}

.toast-header {
  display: flex;
  justify-content: space-between;
}

.toast-header strong {
  font-size: 13px;
  color: #fff;
}

.toast-header small {
  font-size: 11px;
  color: #bbb;
}

.toast-text p {
  font-size: 12px;
  color: #ddd;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Realme Android Quick Settings & Notification Shade */
.notification-center {
  position: absolute;
  inset: 0;
  z-index: 18;
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  padding: 54px 14px 32px;
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.2s ease;
}

.nc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.nc-close-btn {
  font-size: 13px;
  color: #1ed760;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.nc-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: none;
}

.nc-list::-webkit-scrollbar {
  display: none;
}

/* Realme Quick Settings Panel */
.rm-qs-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rm-qs-big-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.rm-qs-big-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.11);
  color: #e5e7eb;
  text-align: left;
  transition: background 0.18s ease, transform 0.12s ease;
}

.rm-qs-big-tile:active {
  transform: scale(0.97);
}

.rm-qs-big-tile.active {
  background: #f4f4f5;
  color: #0e0e11;
}

.rm-qs-ico {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rm-qs-big-tile.active .rm-qs-ico {
  background: rgba(0, 0, 0, 0.1);
  color: #0e0e11;
}

.rm-qs-big-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.rm-qs-big-text strong {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.2;
}

.rm-qs-big-text small {
  font-size: 11px;
  opacity: 0.82;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Realme Square-Boxed Spotify Media Player Card */
.rm-media-card {
  background: linear-gradient(135deg, rgba(30, 42, 34, 0.92), rgba(18, 19, 24, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 12px 13px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.rm-media-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rm-media-app {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
}

.rm-media-output {
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.12);
  padding: 3px 9px;
  border-radius: 999px;
}

.rm-media-main {
  display: flex;
  align-items: center;
  gap: 11px;
}

.rm-media-art {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  cursor: pointer;
}

.rm-media-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.rm-media-info strong {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rm-media-info span {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.68);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rm-media-play-sq {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #ffffff;
  color: #111111;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: transform 0.12s ease, background 0.15s ease;
}

.rm-media-play-sq.playing {
  background: #1ed760;
  color: #000000;
}

.rm-media-play-sq:active {
  transform: scale(0.92);
}

.rm-media-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rm-media-ctrl-btn {
  color: rgba(255, 255, 255, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
}

.rm-media-bar {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.rm-media-bar i {
  display: block;
  height: 100%;
  background: #1ed760;
  border-radius: 999px;
}

/* Realme Mini Quick Toggles */
.rm-qs-mini-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}

.rm-qs-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 9.5px;
  font-weight: 600;
}

.rm-qs-circle {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.11);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, transform 0.12s ease;
}

.rm-qs-mini:active .rm-qs-circle {
  transform: scale(0.92);
}

.rm-qs-mini.active .rm-qs-circle {
  background: #f4f4f5;
  color: #0e0e11;
}

/* Realme Brightness & Volume Sliders */
.rm-qs-sliders {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 10px 12px;
}

.rm-qs-slider-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.85);
}

.rm-qs-range {
  flex: 1;
  accent-color: #ffffff;
  height: 5px;
  cursor: pointer;
}

/* ==================== iOS 18 CONTROL CENTER (CAPSULE & CIRCLE LAYOUT) ==================== */
.ios-cc-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 16px;
  margin-bottom: 14px;
}

.ios-cc-card {
  background: rgba(58, 58, 62, 0.56);
  backdrop-filter: blur(32px) saturate(170%);
  -webkit-backdrop-filter: blur(32px) saturate(170%);
  border: 0.5px solid rgba(255, 255, 255, 0.16);
  border-radius: 34px;
  color: #ffffff;
}

/* Row 1: Full-Width Media Player Card */
.ios-cc-media-wide {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.ios-cc-media-art {
  width: 98px;
  height: 98px;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.ios-cc-media-right {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.ios-cc-media-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.ios-cc-media-meta {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.ios-cc-media-meta strong {
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ios-cc-media-meta span {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.ios-cc-airplay-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ios-cc-media-btns {
  display: flex;
  align-items: center;
  justify-content: space-around;
  color: #ffffff;
  padding: 0 6px;
}

.ios-cc-play-btn {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ios-cc-media-progress {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ios-cc-media-bar {
  width: 100%;
  height: 5.5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  overflow: hidden;
}

.ios-cc-media-bar i {
  display: block;
  height: 100%;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
}

.ios-cc-media-times {
  display: flex;
  justify-content: space-between;
  font-size: 9.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
}

/* Row 2: Connectivity Square + Capsule Sliders */
.ios-cc-mid-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ios-cc-conn {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px;
  place-items: center;
  border-radius: 36px;
}

.ios-cc-round {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, transform 0.12s ease;
}

.ios-cc-round:active,
.ios-cc-circle:active,
.ios-cc-pill:active,
.ios-cc-mini-dot:active {
  transform: scale(0.92);
}

.ios-cc-round.active-blue,
.ios-cc-mini-dot.active-blue {
  background: #007AFF;
  color: #ffffff;
}

.ios-cc-round.active-green,
.ios-cc-mini-dot.active-green {
  background: #34C759;
  color: #ffffff;
}

.ios-cc-round.active-orange {
  background: #FF9500;
  color: #ffffff;
}

.ios-cc-mini-grid {
  width: 54px;
  height: 54px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  place-items: center;
}

.ios-cc-mini-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ios-cc-sliders-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ios-cc-vslider {
  position: relative;
  height: 148px;
  border-radius: 999px;
  background: rgba(58, 58, 62, 0.58);
  border: 0.5px solid rgba(255, 255, 255, 0.16);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.ios-cc-vfill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--fill, 75%);
  background: #ffffff;
  pointer-events: none;
  transition: height 0.08s linear;
}

.ios-cc-vico {
  position: relative;
  z-index: 2;
  margin-bottom: 16px;
  pointer-events: none;
  display: flex;
}

.ios-cc-vico-sun {
  color: #F5B800;
}

.ios-cc-vico-vol {
  color: #00A8E8;
}

.ios-cc-vrange {
  position: absolute;
  inset: 0;
  width: 148px;
  height: 100%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  opacity: 0;
  cursor: pointer;
  z-index: 3;
}

/* Row 3: Two Horizontal Capsule Pills */
.ios-cc-pills-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ios-cc-pill {
  height: 66px;
  border-radius: 999px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  transition: background 0.18s ease, transform 0.12s ease;
}

.ios-cc-pill.active-yellow-pill .ios-cc-pill-bat {
  color: #FFCC00;
}

.ios-cc-pill-bat {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.72);
  flex-shrink: 0;
}

.ios-cc-pill-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.ios-cc-pill-text strong {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
}

.ios-cc-pill-text small {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 2px;
}

.ios-cc-focus-ico {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ios-cc-focus-ico.active-moon {
  background: #ffffff;
  color: #6E56CF;
}

.ios-cc-pill-chev {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  padding-right: 2px;
}

/* Rows 4 & 5: 4 Circular Control Buttons per Row */
.ios-cc-circles-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  place-items: center;
}

.ios-cc-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(58, 58, 62, 0.58);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 0.5px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
}

.ios-cc-circle.active-white {
  background: #ffffff;
  color: #007AFF;
}

.ios-cc-circle.active-rot-white {
  background: #ffffff;
  color: #FF453A;
}

.ios-cc-circle.active-red {
  background: #ffffff;
  color: #FF3B30;
}

/* Right-Edge Page Indicator Rail */
.ios-cc-side-rail {
  position: absolute;
  right: -4px;
  top: 46%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.42);
  pointer-events: none;
}

.ios-cc-side-rail span.active {
  color: #ffffff;
}

.rm-notif-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 4px;
}

.nc-card {
  background: rgba(60, 35, 15, 0.55);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(200, 170, 120, 0.2);
  border-radius: 18px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.nc-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

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

.nc-content {
  flex: 1;
}

.nc-head {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #fff;
}

.nc-head small {
  color: #aaa;
}

.nc-content p {
  font-size: 12px;
  color: #ccc;
  margin-top: 2px;
}

/* ==================== HOME INDICATOR ==================== */
.home-indicator {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 136px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 25;
  cursor: pointer;
}

.home-indicator-bar {
  width: 134px;
  height: 5px;
  background: #ffffff;
  border-radius: 999px;
  opacity: 0.92;
  transition: transform 0.18s cubic-bezier(0.2, 0, 0, 1), background 0.2s ease;
}

.home-indicator:active .home-indicator-bar {
  transform: scaleX(1.16);
}

.app-screen:not(.hidden)~.home-indicator .home-indicator-bar {
  background: rgba(140, 140, 148, 0.78);
}

/* Caption underneath phone removed */
.device-caption {
  display: none !important;
}

/* Utility */
.hidden {
  display: none !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ==================== GROUP CHAT SENDER LABEL ==================== */
.line-msg-sender {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 2px;
  padding-left: 2px;
}

/* ==================== iOS ON-SCREEN KEYBOARD ==================== */
/* Authentic Apple iOS Light Keyboard — Large, Responsive & Smooth */
.ios-keyboard {
  flex-shrink: 0;
  width: 100%;
  background: #D1D4DB;
  border-top: 0.5px solid rgba(0, 0, 0, 0.14);
  padding: 10px 4px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  z-index: 10;
  overflow: visible;
  contain: layout style;
}

/* Keyboard rows */
.kb-row {
  display: flex;
  justify-content: center;
  gap: 6px;
  overflow: visible;
}

.kb-row-indent {
  padding: 0 16px;
}

.kb-bottom-row {
  gap: 6px;
  padding: 0 3px;
}

/* Individual iOS keys — larger touch targets for effortless typing */
.kb-key {
  flex: 1;
  min-width: 0;
  height: 46px;
  max-width: 40px;
  background: #ffffff;
  border: none;
  border-radius: 6px;
  color: #000000;
  font-size: 21px;
  font-weight: 400;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.34);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  pointer-events: auto;
  letter-spacing: 0;
  line-height: 1;
  position: relative;
  overflow: visible;
}

.kb-key:active,
.kb-key.kb-flash {
  background: #b8bec8;
}

/* Authentic iOS floating key magnifying popup */
.kb-key[data-label].kb-flash::before,
.kb-key[data-label]:active::before {
  content: attr(data-label);
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 56px;
  background: #ffffff;
  color: #000000;
  border-radius: 10px;
  font-size: 30px;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28), 0 0 0 0.5px rgba(0, 0, 0, 0.1);
  z-index: 40;
  pointer-events: none;
}

.kb-shift:active,
.kb-del:active,
.kb-num:active,
.kb-emoji:active {
  background: #ffffff;
}

.kb-return:active {
  background: #0066d6;
}

/* Special iOS modifier keys */
.kb-shift,
.kb-del {
  flex: 0 0 44px;
  max-width: 48px;
  font-size: 18px;
  background: #AEB4BE;
  color: #000000;
}

.kb-shift.active {
  background: #ffffff;
  color: #000000;
  font-weight: 600;
}

.kb-emoji {
  flex: 0 0 42px;
  max-width: 46px;
  font-size: 20px;
  background: #AEB4BE;
  color: #1c1c1e;
}

/* Space bar */
.kb-space {
  flex: 1;
  max-width: 210px;
  font-size: 15px;
  font-weight: 400;
  background: #ffffff;
  color: #000000;
}

/* Return key */
.kb-return {
  flex: 0 0 84px;
  max-width: 92px;
  font-size: 15px;
  background: #007AFF;
  color: #ffffff;
  font-weight: 500;
}

/* Number key / symbol toggle */
.kb-num,
.kb-sym-toggle {
  flex: 0 0 46px;
  max-width: 50px;
  font-size: 15px;
  font-weight: 500;
  background: #AEB4BE;
  color: #000000;
}

/* iOS bottom Globe + Dictation bar */
.kb-ios-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 16px 2px;
  color: #50555c;
}

.kb-ios-globe,
.kb-ios-mic {
  display: flex;
  align-items: center;
  justify-content: center;
}

.settings-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* ==================== SCENE LOCK ==================== */
/* Non-blocking overlay by default; blocks stray taps during the 18 -> 19 date flip */
.scene-lock {
  position: absolute;
  inset: 0;
  z-index: 9000;
  background: transparent;
  pointer-events: none !important;
  display: none !important;
  cursor: default;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.scene-lock.date-lock-active {
  display: block !important;
  pointer-events: auto !important;
}

/* Thin animated "story playing" strip at top of screen */
.scene-lock::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(139, 92, 246, 0.8) 30%,
      rgba(236, 72, 153, 0.8) 60%,
      transparent 100%);
  background-size: 200% 100%;
  animation: storyProgress 2s linear infinite;
}

@keyframes storyProgress {
  0% {
    background-position: -100% 0;
  }

  100% {
    background-position: 100% 0;
  }
}

/* ==================== OUTGOING TYPING INDICATOR ==================== */
/* Shows as animated dots in composer during simulated typing */
.composer-typing-indicator {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 24px;
  padding: 0 6px;
  opacity: 0.6;
}

.composer-typing-indicator span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  animation: composerDot 0.9s infinite ease-in-out both;
}

.composer-typing-indicator span:nth-child(2) {
  animation-delay: 0.15s;
}

.composer-typing-indicator span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes composerDot {

  0%,
  80%,
  100% {
    transform: scale(0.6);
    opacity: 0.4;
  }

  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Slide-in animation for incoming notification when on home screen */
.toast-slide-down {
  animation: toastSlideIn 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastSlideIn {
  from {
    transform: translateY(-110%);
    opacity: 0;
  }

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

/* Day transition flash (subtle screen dim when date advances) */
@keyframes dateDim {
  0% {
    opacity: 1;
  }

  40% {
    opacity: 0.2;
  }

  100% {
    opacity: 1;
  }
}

.date-transitioning {
  animation: dateDim 1.2s ease-in-out forwards;
}

/* ==================== PIN KEYPAD BUTTONS ==================== */
.pin-key {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: none;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.12s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.pin-key b {
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.5px;
}

.pin-key small {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.5px;
  opacity: 0.72;
  margin-top: 2px;
}

.pin-key:active,
.pin-key.pressed {
  background: rgba(255, 255, 255, 0.42);
}

/* PIN action buttons (Cancel / Emergency) */
.pin-action-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 10px;
  transition: background 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}

.pin-action-btn:not([disabled]):active {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(0.93);
}

.pin-action-btn[disabled] {
  opacity: 0.45;
  cursor: default;
}

/* ==================== DIALPAD KEYPAD BUTTONS ==================== */
.dial-key {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #fff;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.13s ease, transform 0.1s ease, box-shadow 0.13s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
  width: 68px;
  height: 68px;
}

.dial-key b {
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
}

.dial-key small {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 1.5px;
  opacity: 0.5;
  margin-top: 1px;
}

.dial-key:active,
.dial-key.pressed {
  transform: scale(0.87);
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.06);
}

@keyframes dialKeyPop {
  0% {
    transform: scale(1);
  }

  35% {
    transform: scale(0.85);
    background: rgba(255, 255, 255, 0.25);
  }

  65% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

.dial-key.pop {
  animation: dialKeyPop 0.2s ease-out forwards;
}

/* Dial number display */
.dial-number-display {
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 3px;
  text-align: center;
  color: #fff;
  min-height: 40px;
  transition: opacity 0.15s;
}

/* ==================== LINE COMPOSER KEYBOARD ANIMATIONS ==================== */
.line-composer {
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.line-composer-input {
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.line-composer-input:focus {
  border-color: rgba(139, 92, 246, 0.7) !important;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
  outline: none;
}

/* Send button pulse */
@keyframes sendPulse {
  0% {
    transform: scale(1);
  }

  30% {
    transform: scale(0.82);
  }

  60% {
    transform: scale(1.12);
  }

  100% {
    transform: scale(1);
  }
}

.line-send-btn.pop {
  animation: sendPulse 0.22s ease-out forwards;
}

/* Quick reply chip press */
.quick-chip {
  transition: transform 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}

.quick-chip:active {
  transform: scale(0.91);
  background: rgba(139, 92, 246, 0.45) !important;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
}

/* ==================== APP ICON PRESS ==================== */
@keyframes appIconPop {
  0% {
    transform: scale(1);
  }

  35% {
    transform: scale(0.88);
  }

  65% {
    transform: scale(1.06);
  }

  100% {
    transform: scale(1);
  }
}

.app-item:active .app-icon-wrap,
.dock-item:active .app-icon-wrap {
  animation: appIconPop 0.2s ease-out forwards;
}

/* ==================== CALL BUTTON PRESS ==================== */
.call-btn {
  transition: transform 0.12s ease, opacity 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}

.call-btn:not([disabled]):active {
  transform: scale(0.88);
  opacity: 0.75;
}

.call-btn.end-call:active {
  transform: scale(0.84);
}

/* ==================== GALLERY ALBUM PASSCODE SCREEN ==================== */
.gallery-pin-screen {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: #000000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px 20px;
}

.gallery-pin-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.gallery-pin-container.shake {
  animation: shake 0.4s ease;
}

.gallery-pin-lock-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 14px;
}

.gallery-pin-lock-icon svg {
  width: 22px;
  height: 22px;
}

.gallery-pin-title {
  font-size: 19px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}

.gallery-pin-sub {
  font-size: 13px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.7);
  max-width: 280px;
  text-align: center;
  margin-bottom: 26px;
  line-height: 1.35;
}

.gallery-pin-container .pin-dots {
  margin-bottom: 38px;
}

/* ==================== X (TWITTER) APP ==================== */
.native-x {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #000000;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.x-top-header {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
  flex-shrink: 0;
}

.x-header-left {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.x-header-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.x-account-switch-dot {
  position: absolute;
  bottom: 0;
  right: -2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #1d9bf0;
  border: 1.5px solid #000;
}

.x-account-switch-dot.priv {
  background: #7D9B76;
}

.x-header-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.x-logo-svg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: #ffffff;
}

.x-logo-svg svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.x-header-right {
  display: flex;
  align-items: center;
}

.x-account-toggle-btn {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.x-account-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.x-account-toggle-btn.priv-active {
  background: rgba(125, 155, 118, 0.25);
  border-color: #7D9B76;
  color: #D4E8C4;
}

.x-feed-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: #000;
  flex-shrink: 0;
}

.x-feed-tab {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 600;
  color: #71767b;
  position: relative;
  cursor: pointer;
  background: none;
  border: none;
}

.x-feed-tab.active {
  color: #e7e9ea;
}

.x-feed-tab.active span::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: #1d9bf0;
  border-radius: 3px;
}

.x-tweets-scroll {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.x-tweets-scroll::-webkit-scrollbar {
  width: 4px;
}

.x-tweets-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.x-tweet-card {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.15s;
}

.x-tweet-card:hover {
  background: rgba(255, 255, 255, 0.02);
}

.x-tweet-avatar-wrap {
  flex-shrink: 0;
}

.x-tweet-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.x-tweet-content {
  flex: 1;
  min-width: 0;
}

.x-tweet-header {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 3px;
  flex-wrap: wrap;
  line-height: 1.25;
}

.x-tweet-author {
  font-size: 14px;
  font-weight: 700;
  color: #f7f9f9;
}

.x-verified-badge {
  display: inline-flex;
  align-items: center;
}

.x-tweet-handle,
.x-tweet-sep,
.x-tweet-date {
  font-size: 13px;
  color: #71767b;
}

.x-tweet-text {
  font-size: 14px;
  line-height: 1.45;
  color: #e7e9ea;
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 8px;
}

.x-tweet-media {
  margin: 8px 0 10px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  max-height: 240px;
  cursor: pointer;
  background: #16181c;
}

.x-tweet-img {
  width: 100%;
  height: 100%;
  max-height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}

.x-tweet-media:hover .x-tweet-img {
  transform: scale(1.02);
}

.x-tweet-actions {
  display: flex;
  justify-content: space-between;
  max-width: 380px;
  margin-top: 4px;
  color: #71767b;
}

.x-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #71767b;
  background: none;
  border: none;
  padding: 4px 6px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.x-action-btn:hover {
  color: #1d9bf0;
  background: rgba(29, 155, 240, 0.1);
}

.x-action-btn.liked {
  color: #f91880;
}

.x-action-btn.liked svg {
  fill: #f91880;
}

.x-action-btn.liked:hover {
  background: rgba(249, 24, 128, 0.1);
}

/* Private Account Profile Header */
.x-priv-profile-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: #000;
  padding-bottom: 14px;
  overflow: visible;
}

/* Banner */
.x-priv-banner {
  height: 110px;
  background: linear-gradient(135deg, #2C1A0E 0%, #4A3020 50%, #354530 100%);
  position: relative;
  overflow: hidden;
}

.x-priv-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Private Archive Badge */
.x-priv-badge-top {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  font-size: 11px;
  font-weight: 600;
  color: #D4E8C4;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid rgba(125, 155, 118, 0.4);
}

/* Avatar Row */
.x-priv-avatar-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 14px;
  margin-top: -36px;
  margin-bottom: 10px;
  position: relative;
  z-index: 5;
}

/* Profile Picture */
.x-priv-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  position: relative;
  z-index: 6;
}

/* Switch Account Button */
.x-priv-switch-btn {
  font-size: 12px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 20px;
  background: #fff;
  color: #000;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
}

.x-priv-switch-btn:hover {
  opacity: 0.9;
}

.x-priv-info {
  padding: 0 14px;
}

.x-priv-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.x-priv-name {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.x-lock-icon {
  font-size: 14px;
}

.x-priv-handle {
  font-size: 13px;
  color: #71767b;
  margin-bottom: 8px;
}

.x-priv-bio {
  font-size: 13px;
  color: #e7e9ea;
  line-height: 1.4;
  margin-bottom: 10px;
  font-style: italic;
}

.x-priv-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12px;
  color: #71767b;
  margin-bottom: 10px;
}

.x-priv-stats {
  display: flex;
  gap: 14px;
  font-size: 13px;
  color: #71767b;
}

.x-priv-stats strong {
  color: #fff;
}

.x-priv-feed-header {
  padding: 10px 14px;
  font-size: 12px;
  background-image: url('/images/X/banners/2.webp');
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #7D9B76;
  background: rgba(125, 155, 118, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.x-priv-tweet {
  background: rgba(44, 26, 14, 0.18);
}

/* X Sub-Header (Profile & Tweet Detail) */
.x-sub-header {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 12;
  flex-shrink: 0;
}

.x-back-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #eff3f4;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}

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

.x-sub-header-title {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.x-sub-name-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.x-sub-header-title strong {
  font-size: 16px;
  font-weight: 800;
  color: #f7f9f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.x-sub-count {
  font-size: 11px;
  color: #71767b;
}

/* X Profile View */
.x-profile-hero {
  background: #000;
  padding-bottom: 12px;
}

.x-profile-banner {
  height: 115px;
  background: #16181c;
  overflow: hidden;
}

.x-profile-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.x-profile-avatar-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 14px;
  margin-top: -36px;
  margin-bottom: 10px;
  position: relative;
  z-index: 5;
}

.x-profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3.5px solid #000;
  background: #16181c;
}

.x-profile-action-btn {
  font-size: 13px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.x-profile-action-btn.follow {
  background: #eff3f4;
  color: #0f1419;
  border: 1px solid transparent;
}

.x-profile-action-btn.follow:hover {
  background: #d7dbdc;
}

.x-profile-action-btn.following,
.x-profile-action-btn.outline {
  background: transparent;
  color: #eff3f4;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.x-profile-action-btn.following:hover,
.x-profile-action-btn.outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

.x-profile-details {
  padding: 0 14px;
}

.x-profile-name-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.x-profile-name {
  font-size: 18px;
  font-weight: 800;
  color: #f7f9f9;
}

.x-profile-handle {
  font-size: 13px;
  color: #71767b;
  margin-bottom: 8px;
}

.x-profile-bio {
  font-size: 13.5px;
  color: #e7e9ea;
  line-height: 1.4;
  margin: 0 0 8px 0;
}

.x-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: #71767b;
  margin-bottom: 8px;
}

.x-profile-stats {
  display: flex;
  gap: 14px;
  font-size: 13px;
  color: #71767b;
}

.x-profile-stats strong {
  color: #f7f9f9;
}

.x-profile-tabs .x-feed-tab {
  font-size: 13px;
  padding: 11px 0;
}

.x-profile-media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 2px;
}

.x-profile-media-tile {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #16181c;
  cursor: pointer;
}

.x-profile-media-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Interactive Tweet Elements */
.x-tweet-clickable {
  cursor: pointer;
}

.x-tweet-avatar-wrap,
.x-tweet-author,
.x-tweet-handle {
  cursor: pointer;
}

.x-tweet-author:hover {
  text-decoration: underline;
}

.x-mention {
  color: #1d9bf0;
}

.x-action-btn.retweeted {
  color: #00ba7c;
}

.x-action-btn.bookmarked {
  color: #1d9bf0;
}

.x-replying-to {
  font-size: 12.5px;
  color: #71767b;
  margin-bottom: 3px;
}

/* Tweet Detail & Replies Thread */
.x-tweet-detail {
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.x-detail-author-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.x-detail-author-row .x-tweet-avatar {
  cursor: pointer;
}

.x-detail-author-meta {
  display: flex;
  flex-direction: column;
}

.x-detail-name-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.x-detail-text {
  font-size: 16px;
  line-height: 1.45;
  color: #f7f9f9;
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 12px;
}

.x-detail-timestamp {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #71767b;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.x-detail-timestamp strong {
  color: #f7f9f9;
}

.x-detail-stats {
  display: flex;
  gap: 16px;
  padding: 10px 0;
  font-size: 13px;
  color: #71767b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.x-detail-stats strong {
  color: #f7f9f9;
}

.x-detail-actions {
  display: flex;
  justify-content: space-around;
  padding-top: 8px;
}

.x-reply-composer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.x-reply-composer .x-tweet-avatar {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.x-reply-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.x-reply-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: #f7f9f9;
  font-size: 14px;
  font-family: inherit;
}

.x-reply-input::placeholder {
  color: #71767b;
}

.x-reply-submit-btn {
  background: #1d9bf0;
  color: #fff;
  border: none;
  border-radius: 18px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.15s;
}

.x-reply-submit-btn:hover {
  opacity: 0.9;
}

.x-reply-card {
  background: rgba(255, 255, 255, 0.01);
}

.x-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 24px;
  gap: 6px;
}

.x-empty-state strong {
  font-size: 16px;
  color: #f7f9f9;
}

.x-empty-state span {
  font-size: 13px;
  color: #71767b;
  line-height: 1.4;
}

/* ==================== MOBILE / FULL-SCREEN VIEWPORT ==================== */
@media (max-width: 600px),
(max-device-width: 600px) {
  :root {
    --phone-width: 100%;
    --phone-height: 100%;
    --phone-radius: 0px;
    --screen-radius: 0px;
  }

  html.in-app-browser {
    --safe-top: max(env(safe-area-inset-top, 0px), 28px);
    --safe-bottom: max(env(safe-area-inset-bottom, 0px), 48px);
  }

  html,
  body {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    background: #000000;
  }

  .stage {
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    display: block;
    box-sizing: border-box;
    background: #000000;
  }

  .phone {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: 100%;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    flex-grow: 0;
    flex-shrink: 0;
  }

  .side-btn {
    display: none !important;
  }

  .screen {
    border-radius: 0;
    width: 100%;
    height: 100%;
  }

  .status {
    top: calc(12px + var(--safe-top));
    left: 20px;
    right: 20px;
  }

  .island {
    top: calc(10px + var(--safe-top));
  }

  .lock-screen {
    padding-top: calc(64px + var(--safe-top));
  }

  .lock-bottom {
    bottom: calc(44px + var(--safe-bottom));
  }

  .app-screen {
    padding-top: calc(40px + var(--safe-top));
    padding-bottom: calc(24px + var(--safe-bottom));
  }

  .notification-toast {
    top: calc(14px + var(--safe-top));
  }

  .notification-center {
    padding-top: calc(54px + var(--safe-top));
    padding-bottom: calc(32px + var(--safe-bottom));
  }

  .home-indicator {
    bottom: calc(8px + var(--safe-bottom));
  }

  .dock {
    bottom: calc(18px + var(--safe-bottom));
  }

  .search-pill {
    bottom: calc(116px + var(--safe-bottom));
  }

  .home-page-dots {
    bottom: calc(152px + var(--safe-bottom));
  }

  .ios-keyboard {
    padding-bottom: calc(10px + var(--safe-bottom));
  }
}

/* ==================== ANDROID SMOOTH SCROLLING & TRANSITIONS ==================== */
button,
[role="button"],
[data-app],
[data-x-open-tweet],
[data-x-open-profile],
[data-open-chat],
[data-open-note] {
  -webkit-tap-highlight-color: transparent;
}

.app-content,
.x-tweets-scroll,
.home-page,
.chat-messages,
.nc-list,
.recents-list,
.contacts-list,
.line-chat-list,
.notes-list,
.gallery-scroll,
.album-grid-scroll,
.settings-scroll,
.calendar-scroll,
.phone-body,
.ig-scroll {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

.notification-center:not(.hidden) {
  animation: ncSlideDown 0.24s cubic-bezier(0.2, 0, 0, 1);
}

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

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

.app-item,
.dock-item {
  transition: transform 0.18s cubic-bezier(0.2, 0, 0, 1);
}

.app-item:active,
.dock-item:active {
  transform: scale(0.9);
}

/* ==================== APPLE iOS 18 NATIVE APP CHROME & POLISH ==================== */
.app-header {
  height: 36px;
  padding: 0 10px;
  position: relative;
  z-index: 15;
  flex-shrink: 0;
  background: rgba(249, 249, 249, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 0.5px solid rgba(60, 60, 67, 0.18);
}

.app-screen[data-app="x"] .app-header,
.app-screen[data-app="camera"] .app-header,
.app-screen[data-app="clock"] .app-header,
.app-screen[data-app="spotify"] .app-header,
.app-screen[data-app="music"] .app-header,
.app-screen[data-app="youtube"] .app-header,
.app-screen[data-app="weather"] .app-header {
  background: rgba(18, 18, 20, 0.92);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.12);
}

.app-screen[data-app="x"] .app-title,
.app-screen[data-app="camera"] .app-title,
.app-screen[data-app="clock"] .app-title,
.app-screen[data-app="spotify"] .app-title,
.app-screen[data-app="music"] .app-title,
.app-screen[data-app="youtube"] .app-title,
.app-screen[data-app="weather"] .app-title {
  color: #ffffff;
}

.back-btn {
  width: 30px;
  height: 30px;
  position: relative;
  z-index: 16;
  pointer-events: auto;
  border-radius: 50%;
  justify-content: center;
  color: #007AFF;
  transition: opacity 0.15s ease, transform 0.14s ease;
}

.back-btn:hover {
  opacity: 0.72;
}

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

.app-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: #000000;
}

/* ==================== iOS CLOCK APP ==================== */
.native-clock {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #000000;
  color: #ffffff;
}

.ios-clock-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 16px;
}

.ios-clock-list {
  display: flex;
  flex-direction: column;
}

.ios-clock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.14);
}

.ios-clock-city {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ios-clock-city strong {
  font-size: 20px;
  font-weight: 400;
  color: #ffffff;
}

.ios-clock-city small {
  font-size: 12.5px;
  color: #8e8e93;
}

.ios-clock-time {
  font-size: 38px;
  font-weight: 300;
  letter-spacing: -1px;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.ios-clock-time.dim {
  color: #636366;
}

.ios-switch {
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: #39393d;
  padding: 2px;
  display: flex;
  align-items: center;
  transition: background 0.2s ease;
}

.ios-switch i {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.ios-switch.on {
  background: #34C759;
}

.ios-switch.on i {
  transform: translateX(20px);
}

.ios-clock-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 32px;
  gap: 22px;
}

.ios-sw-readout {
  font-size: 56px;
  font-weight: 200;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
}

.ios-clock-btns {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 240px;
}

.ios-clk-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ios-clk-circle.gray {
  background: #333336;
  color: #ffffff;
}

.ios-clk-circle.green {
  background: rgba(52, 199, 89, 0.22);
  color: #34C759;
}

.ios-clk-circle.red {
  background: rgba(255, 59, 48, 0.22);
  color: #FF453A;
}

.ios-clk-circle.orange {
  background: rgba(255, 159, 10, 0.22);
  color: #FF9F0A;
}

.ios-tm-presets {
  display: flex;
  gap: 10px;
}

.ios-tm-chip {
  padding: 6px 14px;
  border-radius: 999px;
  background: #1c1c1e;
  color: #ff9f0a;
  font-size: 13px;
  font-weight: 600;
}

.ios-clock-laps {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.ios-lap-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 4px;
  font-size: 14px;
  color: #e5e5ea;
  border-top: 0.5px solid rgba(255, 255, 255, 0.12);
  font-variant-numeric: tabular-nums;
}

.ios-clock-tabs {
  height: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(20, 20, 22, 0.96);
  border-top: 0.5px solid rgba(255, 255, 255, 0.12);
}

.ios-clock-tabs button {
  font-size: 11px;
  font-weight: 600;
  color: #8e8e93;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ios-clock-tabs button.active {
  color: #FF9F0A;
}

/* Home Screen iOS Widgets */
.widget-calendar,
.widget-cal-preview {
  border-radius: 22px !important;
  background: rgba(255, 255, 255, 0.2) !important;
  border: 0.5px solid rgba(255, 255, 255, 0.28) !important;
  backdrop-filter: blur(28px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(150%) !important;
  transition: transform 0.18s cubic-bezier(0.32, 0.72, 0, 1), box-shadow 0.18s ease;
}

.widget-calendar:active,
.widget-cal-preview:active {
  transform: scale(0.98);
}

/* Phone App — Authentic iOS Segmented Control & Rows */
.phone-tabs-header {
  padding: 8px 16px;
  background: rgba(249, 249, 249, 0.94);
  border-bottom: 0.5px solid rgba(60, 60, 67, 0.18);
}

.phone-segmented-tabs {
  background: rgba(118, 118, 128, 0.12);
  border-radius: 9px;
  padding: 2px;
}

.phone-segmented-tabs button {
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  color: #000000;
}

.phone-segmented-tabs button.active {
  background: #ffffff;
  color: #000000;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px rgba(0, 0, 0, 0.04);
}

.call-row {
  padding: 11px 6px;
  border-radius: 0;
  border-bottom: 0.5px solid rgba(60, 60, 67, 0.16);
}

.call-row:hover {
  background: rgba(0, 0, 0, 0.025);
}

/* Notes App — Authentic Apple Notes */
.native-notes {
  background: #F2F2F7;
}

.notes-group {
  border-radius: 12px;
  background: #ffffff;
  box-shadow: none;
  border: 0.5px solid rgba(60, 60, 67, 0.12);
}

.note-list-card {
  padding: 12px 16px;
  transition: background 0.15s ease;
}

.note-list-card:hover {
  background: #f9f9fb;
}

.note-paper {
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  border: 0.5px solid rgba(60, 60, 67, 0.12);
}

/* Settings App — Authentic iOS 18 Grouped Inset Lists */
.native-settings {
  background: #F2F2F7;
}

.settings-profile-card {
  border-radius: 12px;
  padding: 12px 14px;
  background: #ffffff;
  box-shadow: none;
  border: none;
}

.settings-avatar {
  object-fit: cover;
}

.settings-group {
  border-radius: 12px;
  background: #ffffff;
  box-shadow: none;
  border: none;
}

.ios-settings .set-icon {
  width: 29px;
  height: 29px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.ios-chevron {
  color: rgba(60, 60, 67, 0.35);
  font-size: 18px;
  font-weight: 500;
  margin-left: 4px;
  line-height: 1;
}
}

.settings-row {
  padding: 13px 16px;
  transition: background 0.15s ease;
}

.settings-row:hover {
  background: #f9fafb;
}

.set-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

/* ==================== INSTAGRAM APP ==================== */
.native-ig {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  color: #111111;
  position: relative;
}

.ig-top-bar {
  height: 46px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  flex-shrink: 0;
}

.ig-wordmark {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ig-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ig-icon-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
}

.ig-icon-btn svg {
  width: 20px;
  height: 20px;
}

.ig-scroll {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
}

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

.ig-stories-row {
  display: flex;
  gap: 12px;
  padding: 10px 12px;
  overflow-x: auto;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  scrollbar-width: none;
}

.ig-stories-row::-webkit-scrollbar {
  display: none;
}

.ig-story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  width: 64px;
}

.ig-story-ring {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  padding: 2.5px;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.ig-story-ring.self {
  background: #d1d5db;
}

.ig-story-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  display: block;
}

.ig-story-name {
  font-size: 11px;
  color: #222;
  max-width: 62px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ig-post-card {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding-bottom: 12px;
}

.ig-post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
}

.ig-post-user {
  display: flex;
  align-items: center;
  gap: 9px;
}

.ig-post-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.ig-collab-avatars {
  display: flex;
  align-items: center;
}

.ig-post-avatar.collab {
  margin-left: -10px;
  border: 2px solid #ffffff;
}

.ig-collab-names {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.ig-collab-names .ig-post-username {
  display: inline;
}

.ig-collab-and {
  font-size: 12.5px;
  color: #6b7280;
  font-weight: 400;
}

.ig-post-username {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #111;
}

.ig-post-location {
  font-size: 11px;
  color: #6b7280;
}

.ig-post-more {
  width: 18px;
  height: 18px;
  color: #6b7280;
}

.ig-post-media {
  width: 100%;
  background: #f3f4f6;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ig-post-media.single {
  aspect-ratio: auto;
  max-height: 440px;
  background: #111111;
}

.ig-post-media.carousel {
  aspect-ratio: 4 / 5;
  max-height: 420px;
  background: #111111;
}

.ig-post-img {
  width: 100%;
  height: auto;
  max-height: 440px;
  object-fit: contain;
  display: block;
}

.ig-post-media.carousel .ig-post-img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: contain;
}

.ig-post-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 4px;
}

.ig-post-actions-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ig-act-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
  padding: 2px;
}

.ig-act-btn svg {
  width: 22px;
  height: 22px;
}

.ig-act-btn.saved {
  color: #111;
}

.ig-post-meta {
  padding: 0 12px;
  font-size: 13px;
  line-height: 1.4;
}

.ig-post-likes {
  font-weight: 700;
  margin-bottom: 3px;
}

.ig-post-caption {
  color: #111;
  margin-bottom: 4px;
}

.ig-view-comments-btn {
  font-size: 12.5px;
  color: #6b7280;
  margin-bottom: 4px;
  display: block;
}

.ig-comments-list {
  margin: 4px 0 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ig-comment-row {
  font-size: 12.5px;
  color: #222;
}

.ig-comment-composer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.ig-comment-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 12.5px;
  font-family: inherit;
  background: transparent;
}

.ig-comment-send {
  color: #0095f6;
  font-weight: 700;
  font-size: 12.5px;
}

.ig-post-time {
  font-size: 10px;
  color: #9ca3af;
  margin-top: 4px;
  letter-spacing: 0.2px;
}

.ig-bottom-nav {
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  flex-shrink: 0;
  padding-bottom: 4px;
}

.ig-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  width: 34px;
  height: 34px;
}

.ig-nav-btn.active {
  color: #111;
}

.ig-nav-btn svg {
  width: 22px;
  height: 22px;
}

.ig-nav-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #111;
}

.ig-explore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.ig-grid-tile {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f3f4f6;
  cursor: pointer;
}

.ig-grid-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ig-profile-top {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 16px 10px;
}

.ig-profile-avatar {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.ig-profile-stats {
  flex: 1;
  display: flex;
  justify-content: space-around;
  text-align: center;
}

.ig-profile-stats strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
}

.ig-profile-stats span {
  font-size: 11.5px;
  color: #6b7280;
}

.ig-profile-bio {
  padding: 0 16px 14px;
  font-size: 13px;
  line-height: 1.4;
}

.ig-profile-bio strong {
  display: block;
  margin-bottom: 2px;
}

.ig-profile-bio p {
  margin: 0;
  color: #374151;
}

/* Story Viewer */
.ig-story-viewer {
  background: #000000;
  color: #ffffff;
}

.ig-story-progress {
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  margin: 10px 10px 0;
  border-radius: 3px;
  overflow: hidden;
}

.ig-story-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: #ffffff;
}

.ig-story-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
}

.ig-story-user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.ig-story-user span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.ig-story-top-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.ig-story-close {
  color: #ffffff;
  font-size: 18px;
  padding: 4px 8px;
}

.ig-story-media-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ig-story-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ig-story-ring.seen {
  background: #d1d5db;
}

.ig-story-bars {
  display: flex;
  gap: 4px;
  padding: 10px 10px 0;
}

.ig-story-bar {
  flex: 1;
  height: 2.5px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  overflow: hidden;
}

.ig-story-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: #ffffff;
}

.ig-story-bar.done span,
.ig-story-bar.active span {
  width: 100%;
}

.ig-story-media-wrap {
  position: relative;
}

.ig-story-tap-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 38%;
  background: transparent;
  z-index: 2;
}

.ig-story-tap-zone.left {
  left: 0;
}

.ig-story-tap-zone.right {
  right: 0;
}

.ig-story-caption-pill {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 12.5px;
  backdrop-filter: blur(6px);
  z-index: 3;
}

.ig-story-footer {
  padding: 10px 12px 14px;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ig-story-reactions {
  display: flex;
  justify-content: space-around;
}

.ig-story-react-btn {
  font-size: 20px;
  padding: 2px 6px;
  transition: transform 0.12s ease;
}

.ig-story-react-btn:active {
  transform: scale(1.25);
}

.ig-story-reply-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ig-story-reply-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 20px;
  padding: 7px 12px;
  color: #fff;
  font-size: 12.5px;
  outline: none;
}

.ig-story-reply-input::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

.ig-story-reply-send {
  color: #38bdf8;
  font-weight: 700;
  font-size: 13px;
  padding: 6px 8px;
}

/* Badges & Header */
.ig-badge-wrap {
  position: relative;
}

.ig-red-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  border: 1.5px solid #fff;
}

.ig-dm-badge {
  position: absolute;
  top: -2px;
  right: -4px;
  min-width: 15px;
  height: 15px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 1.5px solid #fff;
}

.ig-sub-header {
  height: 46px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  flex-shrink: 0;
  font-size: 14.5px;
}

.ig-sub-header.dark {
  background: #0f0f10;
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.ig-back-btn {
  font-size: 24px;
  line-height: 1;
  color: #111;
  padding: 4px 8px 4px 0;
}

.ig-verified-badge {
  vertical-align: -2px;
  margin-left: 2px;
}

.ig-post-avatar,
.ig-post-username,
.ig-caption-user,
.ig-comment-avatar,
.ig-comment-user {
  cursor: pointer;
}

/* Carousel */
.ig-post-media {
  position: relative;
}

.ig-carousel-pill {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
}

.ig-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ig-carousel-arrow.prev {
  left: 8px;
}

.ig-carousel-arrow.next {
  right: 8px;
}

.ig-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
}

.ig-carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}

.ig-carousel-dot.active {
  background: #0095f6;
}

/* Post Detail & Comments */
.ig-detail-comments {
  padding: 10px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ig-detail-comment-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ig-detail-comment-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
}

.ig-detail-comment-row.nested {
  margin-left: 34px;
}

.ig-comment-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.ig-comment-avatar.sm {
  width: 22px;
  height: 22px;
}

.ig-comment-body {
  flex: 1;
  line-height: 1.35;
}

.ig-comment-meta {
  display: flex;
  gap: 12px;
  margin-top: 3px;
  font-size: 11px;
  color: #6b7280;
}

.ig-comment-reply-btn {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
}

.ig-empty-comments,
.ig-empty-mini {
  padding: 20px 14px;
  text-align: center;
  font-size: 12.5px;
  color: #6b7280;
}

.ig-detail-comment-bar {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  padding: 8px 12px;
  flex-shrink: 0;
}

.ig-replying-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: #6b7280;
  background: #f3f4f6;
  padding: 4px 10px;
  border-radius: 8px;
  margin-bottom: 6px;
}

/* Profile Extensions */
.ig-profile-avatar-ring.has-story {
  padding: 2.5px;
  border-radius: 50%;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  cursor: pointer;
}

.ig-profile-avatar-ring.has-story img {
  border: 2px solid #fff;
}

.ig-profile-actions {
  display: flex;
  gap: 8px;
  padding: 0 16px 12px;
}

.ig-prof-btn {
  flex: 1;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
}

.ig-prof-btn.primary {
  background: #0095f6;
  color: #fff;
}

.ig-prof-btn.secondary {
  background: #efefef;
  color: #111;
}

.ig-highlights-row {
  display: flex;
  gap: 14px;
  padding: 4px 16px 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.ig-highlights-row::-webkit-scrollbar {
  display: none;
}

.ig-highlight-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.ig-highlight-ring {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  padding: 2px;
  border: 1.5px solid #d1d5db;
}

.ig-highlight-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.ig-highlight-item span {
  font-size: 11px;
  color: #374151;
}

.ig-profile-tabs {
  display: flex;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.ig-prof-tab {
  flex: 1;
  padding: 9px 0;
  font-size: 12.5px;
  font-weight: 600;
  color: #6b7280;
  border-bottom: 2px solid transparent;
}

.ig-prof-tab.active {
  color: #111;
  border-bottom-color: #111;
}

.ig-grid-tile {
  position: relative;
}

.ig-grid-multi {
  position: absolute;
  top: 6px;
  right: 6px;
  color: #fff;
  font-size: 12px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* Search & Explore */
.ig-search-header {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
  flex-shrink: 0;
}

.ig-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #efefef;
  border-radius: 10px;
  padding: 7px 10px;
  color: #6b7280;
}

.ig-search-box svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.ig-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 13px;
  outline: none;
  color: #111;
}

.ig-search-clear {
  font-size: 12px;
  color: #6b7280;
}

.ig-explore-section-title {
  padding: 10px 14px 6px;
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
}

.ig-search-accounts {
  display: flex;
  flex-direction: column;
}

.ig-search-acc-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  text-align: left;
}

.ig-search-acc-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.ig-search-acc-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  font-size: 13px;
}

.ig-search-acc-info span {
  font-size: 12px;
  color: #6b7280;
}

.ig-search-chevron {
  color: #9ca3af;
  font-size: 18px;
}

/* Create Post & Edit Profile */
.ig-share-text-btn {
  color: #0095f6;
  font-weight: 700;
  font-size: 13.5px;
}

.ig-create-body,
.ig-edit-prof-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ig-create-preview {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: #f3f4f6;
}

.ig-create-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ig-create-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ig-create-textarea,
.ig-create-input {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 9px 11px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
}

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

.ig-create-thumb {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 6px;
  border: 2px solid transparent;
}

.ig-create-thumb.selected {
  border-color: #0095f6;
}

.ig-create-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ig-edit-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  font-size: 12.5px;
  color: #0095f6;
  font-weight: 600;
}

.ig-field-label {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
}

/* Reels */
.ig-reels-scroll {
  background: #0f0f10;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 10px;
}

.ig-reel-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  height: 430px;
  flex-shrink: 0;
  color: #fff;
}

.ig-reel-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ig-reel-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, transparent 55%);
}

.ig-reel-play-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.55);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.ig-reel-side-actions {
  position: absolute;
  right: 12px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.ig-reel-act {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #fff;
  font-size: 11px;
}

.ig-reel-act.liked {
  color: #ef4444;
}

.ig-reel-bottom {
  position: absolute;
  left: 12px;
  right: 58px;
  bottom: 16px;
}

.ig-reel-user {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 13px;
  cursor: pointer;
}

.ig-reel-user img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #fff;
}

.ig-reel-caption {
  margin: 0 0 6px;
  font-size: 12.5px;
  line-height: 1.35;
}

.ig-reel-audio {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
}

/* Notifications */
.ig-notif-list {
  display: flex;
  flex-direction: column;
}

.ig-notif-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.ig-notif-row.unread {
  background: rgba(0, 149, 246, 0.06);
}

.ig-notif-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.ig-notif-text {
  font-size: 12.5px;
  line-height: 1.35;
  color: #111;
}

.ig-notif-time {
  color: #6b7280;
  margin-left: 4px;
  font-size: 11.5px;
}

/* Direct Messages & Requests */
.ig-requests-pill {
  font-size: 12.5px;
  font-weight: 700;
  color: #0095f6;
}

.ig-dm-section-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px 4px;
  font-size: 13px;
}

.ig-dm-req-link {
  color: #0095f6;
  font-size: 12.5px;
  font-weight: 600;
}

.ig-dm-list {
  display: flex;
  flex-direction: column;
}

.ig-dm-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  text-align: left;
}

.ig-dm-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.ig-dm-info {
  flex: 1;
  min-width: 0;
}

.ig-dm-name-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.ig-dm-name-row span {
  font-size: 11px;
  color: #6b7280;
}

.ig-req-handle {
  font-weight: 400;
}

.ig-dm-preview {
  font-size: 12px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.ig-dm-row.unread .ig-dm-preview {
  color: #111;
  font-weight: 600;
}

.ig-dm-unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0095f6;
  flex-shrink: 0;
}

.ig-req-count-pill {
  background: #efefef;
  color: #111;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
}

.ig-chat-header-user {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.ig-chat-header-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.ig-chat-header-user strong {
  display: block;
  font-size: 13px;
  line-height: 1.1;
}

.ig-chat-header-user span {
  font-size: 11px;
  color: #6b7280;
}

.ig-chat-scroll {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ig-msg-row {
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

.ig-msg-row.me {
  justify-content: flex-end;
}

.ig-msg-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.ig-msg-bubble {
  max-width: 74%;
  padding: 8px 12px;
  border-radius: 18px;
  font-size: 13px;
  line-height: 1.35;
  background: #efefef;
  color: #111;
}

.ig-msg-row.me .ig-msg-bubble {
  background: #3797f0;
  color: #fff;
}

.ig-msg-bubble.has-photo {
  padding: 4px;
  background: transparent;
}

.ig-msg-photo {
  width: 170px;
  border-radius: 14px;
  display: block;
}

.ig-chat-input-bar {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 8px 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  flex-shrink: 0;
}

.ig-chat-input-bar textarea.ig-comment-input {
  resize: none;
  font-family: inherit;
  line-height: 1.35;
  min-height: 34px;
  max-height: 92px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
  border-radius: 18px;
  padding: 7px 14px;
}

.ig-dm-photo-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 6px 10px;
  background: #f9fafb;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.ig-dm-pick-thumb {
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
}

.ig-dm-pick-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ig-req-notice {
  padding: 10px 14px;
  font-size: 11.5px;
  color: #6b7280;
  background: #f9fafb;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  line-height: 1.35;
}

.ig-req-profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px;
  padding: 10px 12px 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: 6px;
}

.ig-req-big-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 4px;
}

.ig-req-profile-card span {
  font-size: 11.5px;
  color: #6b7280;
}

.ig-req-profile-card small {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 2px;
}

.ig-req-actions-bar {
  display: flex;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  flex-shrink: 0;
}

.ig-req-btn {
  flex: 1;
  padding: 12px 6px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.ig-req-btn:last-child {
  border-right: none;
}

.ig-req-btn.block,
.ig-req-btn.delete {
  color: #ef4444;
}

.ig-req-btn.accept {
  color: #0095f6;
}

.ig-nav-avatar.active {
  border: 2px solid #111;
}

.ig-toast {
  position: absolute;
  bottom: 64px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(17, 17, 17, 0.88);
  color: #fff;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  z-index: 40;
  pointer-events: none;
}

/* ==================== X CLONE: INLINE REPLIES, NAV, EXPLORE, NOTIFS, COMPOSE ==================== */
.x-tweet-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.x-thread-line {
  width: 2px;
  flex: 1;
  min-height: 14px;
  background: rgba(255, 255, 255, 0.16);
  margin-top: 6px;
  border-radius: 2px;
}

.x-inline-replies {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.x-inline-reply-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.x-inline-reply-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  cursor: pointer;
}

.x-inline-reply-body {
  flex: 1;
  min-width: 0;
}

.x-inline-reply-head {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  line-height: 1.2;
}

.x-inline-reply-head .x-tweet-author {
  font-size: 12.5px;
}

.x-inline-reply-head .x-tweet-handle {
  font-size: 12px;
}

.x-inline-reply-text {
  font-size: 13px;
  line-height: 1.35;
  color: #d9dcdf;
  margin-top: 2px;
  word-break: break-word;
}

.x-inline-replies-more {
  align-self: flex-start;
  font-size: 12.5px;
  font-weight: 600;
  color: #1d9bf0;
  padding: 2px 0;
  cursor: pointer;
}

.x-inline-replies-more:hover {
  text-decoration: underline;
}

.x-bottom-nav {
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.96);
  flex-shrink: 0;
  padding-bottom: 4px;
}

.x-bnav-btn {
  color: #71767b;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: color 0.15s, background 0.15s;
}

.x-bnav-btn.active {
  color: #eff3f4;
}

.x-bnav-btn svg {
  width: 21px;
  height: 21px;
}

.x-fab-compose {
  position: absolute;
  right: 14px;
  bottom: 58px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #1d9bf0;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(29, 155, 240, 0.45);
  z-index: 15;
  transition: transform 0.15s ease;
}

.x-fab-compose:active {
  transform: scale(0.92);
}

/* X Explore */
.x-explore-search-bar {
  padding: 8px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.x-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #202327;
  border-radius: 999px;
  padding: 8px 14px;
  color: #71767b;
}

.x-search-input-wrap svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.x-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #eff3f4;
  font-size: 13.5px;
  font-family: inherit;
}

.x-trends-section {
  padding: 12px 14px 4px;
}

.x-trends-title {
  font-size: 17px;
  font-weight: 800;
  color: #eff3f4;
  margin: 0 0 10px 0;
}

.x-trend-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 0;
  cursor: pointer;
}

.x-trend-cat,
.x-trend-count {
  font-size: 11.5px;
  color: #71767b;
}

.x-trend-tag {
  font-size: 14px;
  font-weight: 700;
  color: #eff3f4;
}

.x-trends-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 4px 0;
}

/* X Notifications */
.x-notif-header {
  padding: 12px 14px;
  font-size: 17px;
  font-weight: 800;
  color: #eff3f4;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.x-notif-row {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.x-notif-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.x-notif-icon {
  width: 24px;
  text-align: right;
  font-size: 15px;
  flex-shrink: 0;
}

.x-notif-icon.like {
  color: #f91880;
}

.x-notif-icon.repost {
  color: #00ba7c;
}

.x-notif-icon.reply {
  color: #1d9bf0;
}

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

.x-notif-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}

.x-notif-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.x-notif-time {
  font-size: 12px;
  color: #71767b;
}

.x-notif-text {
  font-size: 13.5px;
  color: #eff3f4;
  margin-bottom: 3px;
}

.x-notif-snippet {
  font-size: 13px;
  color: #71767b;
}

/* X Compose */
.x-compose-header {
  justify-content: space-between;
}

.x-compose-cancel {
  color: #eff3f4;
  font-size: 14px;
  font-weight: 500;
}

.x-compose-body {
  display: flex;
  gap: 12px;
  padding: 14px;
  flex: 1;
}

.x-compose-textarea {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #eff3f4;
  font-size: 16px;
  font-family: inherit;
  resize: none;
  line-height: 1.45;
}


/* ==================== SPOTIFY APP (COMPLETE EXPERIENCE) ==================== */
.native-spotify {
  position: relative;
  height: 100%;
  background: linear-gradient(180deg, #1b2820 0%, #121212 24%, #121212 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.sp-main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sp-scroll {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 18px;
  scrollbar-width: none;
}

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

/* Headers */
.sp-home-header,
.sp-lib-header,
.sp-search-header {
  padding: 12px 14px 8px;
  flex-shrink: 0;
}

.sp-home-top,
.sp-lib-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sp-brand-pill {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sp-avatar-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  flex-shrink: 0;
}

.sp-brand-mark {
  display: flex;
  width: 22px;
  height: 22px;
}

.sp-brand-mark svg {
  width: 22px;
  height: 22px;
}

.sp-filter-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}

.sp-filter-pills::-webkit-scrollbar {
  display: none;
}

.sp-lib-header .sp-filter-pills {
  margin-top: 10px;
}

.sp-pill {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.sp-pill.active {
  background: #1ed760;
  color: #000000;
}

.sp-home-icons {
  display: flex;
  align-items: center;
  gap: 4px;
}

.sp-lib-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sp-lib-title-wrap h1,
.sp-search-header h1 {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.sp-sub-header {
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  flex-shrink: 0;
  background: rgba(18, 18, 18, 0.72);
  backdrop-filter: blur(10px);
}

.sp-sub-title {
  font-size: 14px;
  font-weight: 700;
  max-width: 66%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-icon-btn {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #b3b3b3;
  position: relative;
  border-radius: 50%;
  transition: transform 0.12s ease, color 0.15s ease;
}

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

.sp-icon-btn svg {
  width: 19px;
  height: 19px;
}

.sp-icon-btn.liked,
.sp-icon-btn.active-green {
  color: #1ed760;
}

/* Quick Pick Grid */
.sp-quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px 14px 14px;
}

.sp-quick-card {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  overflow: hidden;
  text-align: left;
  height: 48px;
  transition: background 0.15s ease;
}

.sp-quick-card:active {
  background: rgba(255, 255, 255, 0.16);
}

.sp-quick-art {
  width: 48px;
  height: 48px;
  object-fit: cover;
  flex-shrink: 0;
}

.sp-quick-card span {
  font-size: 11.5px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  padding-right: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sp-liked-grad {
  background: linear-gradient(135deg, #450af5, #8e8ee5 60%, #c4efd9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-liked-grad svg {
  width: 20px;
  height: 20px;
  fill: #ffffff;
}

/* Sections & Carousels */
.sp-section {
  margin-bottom: 18px;
}

.sp-section-hdr {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 14px 10px;
}

.sp-section-hdr h2 {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.25px;
}

.sp-link-btn {
  font-size: 12px;
  font-weight: 700;
  color: #b3b3b3;
}

.sp-hscroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 14px;
  scrollbar-width: none;
}

.sp-hscroll::-webkit-scrollbar {
  display: none;
}

.sp-card-sq {
  width: 124px;
  flex-shrink: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.sp-card-sq img {
  width: 124px;
  height: 124px;
  border-radius: 6px;
  object-fit: cover;
  margin-bottom: 7px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.sp-card-sq strong {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-card-sq span {
  font-size: 11px;
  color: #a7a7a7;
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}

.sp-card-artist {
  width: 108px;
  flex-shrink: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sp-card-artist img {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 7px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.sp-card-artist strong {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.sp-card-artist span {
  font-size: 11px;
  color: #a7a7a7;
}

/* Podcasts */
.sp-podcast-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 14px;
}

.sp-podcast-card {
  display: flex;
  gap: 12px;
  background: #181818;
  border-radius: 8px;
  padding: 10px;
  align-items: center;
}

.sp-podcast-card img {
  width: 62px;
  height: 62px;
  border-radius: 6px;
  flex-shrink: 0;
}

.sp-podcast-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sp-podcast-meta strong {
  font-size: 13.5px;
  font-weight: 700;
}

.sp-pod-ep {
  font-size: 12px;
  color: #d4d4d4;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-podcast-meta small {
  font-size: 11px;
  color: #9e9e9e;
  margin-top: 3px;
}

/* Search */
.sp-search-box {
  margin-top: 10px;
  background: #ffffff;
  color: #121212;
  border-radius: 6px;
  height: 38px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 8px;
}

.sp-search-box svg {
  width: 18px;
  height: 18px;
  color: #121212;
  flex-shrink: 0;
}

.sp-search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: #121212;
}

.sp-search-clear {
  color: #333;
  font-size: 14px;
  font-weight: 700;
  padding: 4px;
}

.sp-chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 14px;
}

.sp-search-chip {
  background: #242424;
  color: #ffffff;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
}

.sp-browse-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 14px;
}

.sp-browse-tile {
  height: 78px;
  border-radius: 6px;
  padding: 12px;
  text-align: left;
  display: flex;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}

.sp-browse-tile span {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

/* List Rows & Track Rows */
.sp-list-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  text-align: left;
}

.sp-list-row:active {
  background: rgba(255, 255, 255, 0.06);
}

.sp-list-art {
  width: 52px;
  height: 52px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.sp-list-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.sp-list-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.sp-list-meta strong {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-list-meta span {
  font-size: 12px;
  color: #a7a7a7;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-dl-badge svg {
  width: 18px;
  height: 18px;
}

.sp-track-list {
  padding-bottom: 10px;
}

.sp-track-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  cursor: pointer;
}

.sp-track-row:active {
  background: rgba(255, 255, 255, 0.06);
}

.sp-track-idx {
  width: 18px;
  text-align: center;
  font-size: 12.5px;
  color: #a7a7a7;
  flex-shrink: 0;
}

.sp-track-row.is-current .sp-track-title,
.sp-track-row.is-current .sp-track-idx {
  color: #1ed760;
}

.sp-track-thumb {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.sp-track-info {
  flex: 1;
  min-width: 0;
}

.sp-track-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-track-sub {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: #a7a7a7;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-explicit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 2px;
  background: #a7a7a7;
  color: #121212;
  font-size: 9px;
  font-weight: 800;
  flex-shrink: 0;
}

.sp-track-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.sp-track-dur {
  font-size: 11.5px;
  color: #a7a7a7;
  margin-right: 4px;
}

/* Equalizer Bars */
.sp-eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.sp-eq i {
  width: 2.5px;
  background: #1ed760;
  border-radius: 1px;
  animation: spEq 0.75s ease-in-out infinite alternate;
}

.sp-eq i:nth-child(2) {
  animation-delay: 0.2s;
}

.sp-eq i:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes spEq {
  0% {
    height: 3px;
  }

  100% {
    height: 12px;
  }
}

/* Playlist / Album / Artist Detail Heroes */
.sp-detail-hero {
  padding: 10px 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.sp-detail-cover {
  width: 176px;
  height: 176px;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55);
  margin-bottom: 14px;
}

.sp-detail-hero h1 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.sp-detail-desc {
  font-size: 12.5px;
  color: #b3b3b3;
  margin-top: 5px;
  line-height: 1.35;
}

.sp-detail-meta {
  font-size: 12px;
  color: #b3b3b3;
  margin-top: 6px;
}

.sp-inline-link {
  color: #ffffff;
  font-weight: 700;
}

.sp-detail-controls {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}

.sp-detail-left-btns,
.sp-detail-right-btns {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sp-green-play {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #1ed760;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(30, 215, 96, 0.3);
}

.sp-green-play svg {
  width: 22px;
  height: 22px;
}

.sp-artist-hero {
  position: relative;
  padding: 14px 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 100%);
}

.sp-artist-banner-img {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  align-self: center;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

.sp-artist-hero-info h1 {
  font-size: 24px;
  font-weight: 800;
  margin-top: 2px;
}

.sp-verified {
  font-size: 11px;
  font-weight: 700;
  color: #4cb3ff;
}

.sp-artist-listeners {
  font-size: 12px;
  color: #b3b3b3;
  margin-top: 2px;
}

.sp-artist-bio {
  font-size: 12px;
  color: #d4d4d4;
  margin-top: 6px;
  line-height: 1.4;
}

.sp-artist-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 16px 16px;
}

.sp-follow-btn {
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
}

.sp-follow-btn.following {
  border-color: #1ed760;
  color: #1ed760;
}

.sp-cat-banner {
  margin: 8px 14px 14px;
  padding: 22px 16px;
  border-radius: 8px;
}

.sp-cat-banner h1 {
  font-size: 22px;
  font-weight: 800;
}

.sp-notif-intro {
  padding: 8px 14px 12px;
  font-size: 12.5px;
  color: #b3b3b3;
}

.sp-empty {
  padding: 36px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #a7a7a7;
  font-size: 12.5px;
}

.sp-empty strong {
  color: #ffffff;
  font-size: 14px;
}

/* Mini-Player */
.sp-mini-player {
  margin: 0 8px 6px;
  background: #282828;
  border-radius: 6px;
  padding: 7px 10px 9px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.sp-mini-art {
  width: 38px;
  height: 38px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.sp-mini-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.sp-mini-info strong {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-mini-info span {
  font-size: 11px;
  color: #b3b3b3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-mini-btns {
  display: flex;
  align-items: center;
  gap: 4px;
}

.sp-mini-play {
  color: #ffffff;
}

.sp-mini-progress {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 2px;
  overflow: hidden;
}

.sp-mini-progress i {
  display: block;
  height: 100%;
  background: #ffffff;
  border-radius: 2px;
}

/* Bottom Tab Bar */
.sp-tab-bar {
  height: 52px;
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.94) 0%, #000000 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-shrink: 0;
}

.sp-tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #b3b3b3;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 14px;
}

.sp-tab-item svg {
  width: 21px;
  height: 21px;
}

.sp-tab-item.active {
  color: #ffffff;
}

/* Full-Screen Now Playing */
.sp-now-playing {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #27362e 0%, #121212 65%);
  padding: 6px 18px 16px;
}

.sp-np-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  flex-shrink: 0;
}

.sp-np-ctx {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 65%;
}

.sp-np-ctx small {
  font-size: 9px;
  letter-spacing: 0.9px;
  color: #b3b3b3;
}

.sp-np-ctx strong {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.sp-np-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
  padding-top: 8px;
}

.sp-np-art-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px 0 10px;
}

.sp-np-art {
  width: 238px;
  height: 238px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
  transition: transform 0.35s ease;
}

.sp-np-art-wrap.playing .sp-np-art {
  transform: scale(1.025);
}

.sp-np-lyrics-box {
  height: 290px;
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.sp-np-lyrics-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.sp-lyrics-close-pill {
  background: rgba(0, 0, 0, 0.34);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.sp-np-lyrics-lines {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 40px;
  scrollbar-width: none;
}

.sp-np-lyrics-lines::-webkit-scrollbar {
  display: none;
}

.sp-lyric-line {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.38;
  letter-spacing: -0.3px;
  color: rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.sp-lyric-line.is-past {
  color: rgba(255, 255, 255, 0.56);
}

.sp-lyric-line.is-active {
  color: #ffffff;
  transform: scale(1.015);
  transform-origin: left center;
}

.sp-lyric-status {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  padding: 8px 0;
}

.sp-lyrics-preview-card {
  margin-top: 14px;
  border-radius: 16px;
  padding: 14px 16px 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
}

.sp-lyrics-preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.sp-lyrics-expand-btn {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  background: rgba(0, 0, 0, 0.32);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 999px;
}

.sp-lyrics-preview-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sp-lyrics-preview-lines .sp-lyric-line {
  font-size: 16px;
  line-height: 1.35;
}

.sp-np-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sp-np-titles {
  min-width: 0;
  flex: 1;
}

.sp-np-titles h2 {
  font-size: 19px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-np-artist {
  font-size: 13.5px;
  color: #b3b3b3;
  font-weight: 600;
  margin-top: 2px;
}

.sp-np-scrubber {
  margin-top: 8px;
}

.sp-np-slider-wrap {
  position: relative;
  height: 18px;
  display: flex;
  align-items: center;
}

.sp-np-track-bg {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 2px;
  overflow: hidden;
}

.sp-np-track-fill {
  height: 100%;
  background: #ffffff;
  border-radius: 2px;
}

.sp-np-range {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  cursor: pointer;
}

.sp-np-times {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #b3b3b3;
}

.sp-np-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 0;
}

.sp-np-skip svg {
  width: 26px;
  height: 26px;
}

.sp-np-play {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #ffffff;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.22);
}

.sp-np-play svg {
  width: 26px;
  height: 26px;
}

.sp-repeat-one {
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 8px;
  font-weight: 800;
  color: #1ed760;
}

.sp-np-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sp-vol-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  max-width: 130px;
}

.sp-vol-range {
  width: 100%;
  accent-color: #1ed760;
  height: 3px;
}

.sp-np-footer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sp-lyrics-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.sp-lyrics-pill svg {
  width: 14px;
  height: 14px;
}

.sp-lyrics-pill.active {
  background: #1ed760;
  color: #000000;
}

.sp-sim-note {
  text-align: center;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 2px;
}

.sp-toast {
  position: absolute;
  bottom: 112px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  color: #121212;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  z-index: 30;
  white-space: nowrap;
}

.sp-playlist-ext-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  margin: 4px 0 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(30, 215, 96, 0.12);
  border: 1px solid rgba(30, 215, 96, 0.32);
  color: #1ed760;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  overflow: hidden;
}

.sp-playlist-ext-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.sp-playlist-ext-link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sp-playlist-ext-link:hover {
  background: rgba(30, 215, 96, 0.22);
  text-decoration: underline;
}

.sp-playlist-credit {
  padding: 14px 16px 22px;
  text-align: center;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.52);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.sp-playlist-credit a {
  color: #1ed760;
  font-weight: 600;
  text-decoration: none;
}

.sp-playlist-credit a:hover {
  text-decoration: underline;
}


/* ==================== YOUTUBE MOBILE APP (DARK THEME) ==================== */
.yt-app {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #0f0f0f;
  color: #f1f1f1;
  position: relative;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Roboto', sans-serif;
}

.yt-topbar {
  height: 46px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0f0f0f;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.yt-brand {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.yt-brand-text {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: #ffffff;
}

.yt-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.yt-icon-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f1f1f1;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.yt-icon-btn:active {
  background: rgba(255, 255, 255, 0.12);
}

.yt-notif-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff0000;
}

.yt-profile-mini {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.yt-profile-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.yt-chips-bar,
.yt-subs-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  overflow-x: auto;
  scrollbar-width: none;
  background: #0f0f0f;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.yt-chips-bar::-webkit-scrollbar,
.yt-subs-strip::-webkit-scrollbar {
  display: none;
}

.yt-chip,
.yt-sub-pill {
  padding: 6px 12px;
  border-radius: 8px;
  background: #272727;
  color: #f1f1f1;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.yt-chip.active,
.yt-sub-pill.active {
  background: #f1f1f1;
  color: #0f0f0f;
}

.yt-sub-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.yt-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 14px;
  scrollbar-width: none;
}

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

.yt-video-card {
  margin-bottom: 16px;
  background: #0f0f0f;
}

.yt-thumb-wrap {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #1c1c1e;
  overflow: hidden;
  text-decoration: none;
}

.yt-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.yt-duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: rgba(0, 0, 0, 0.84);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 5px;
  border-radius: 4px;
}

.yt-ext-pill {
  position: absolute;
  left: 8px;
  bottom: 8px;
  background: rgba(255, 0, 0, 0.88);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.16s ease;
}

.yt-thumb-wrap:hover .yt-ext-pill {
  opacity: 1;
}

.yt-card-meta {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 10px 4px 12px;
}

.yt-ch-avatar-btn {
  padding: 0;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex;
}

.yt-ch-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  background: #272727;
}

.yt-ch-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.yt-ch-avatar-lg {
  width: 56px;
  height: 56px;
  font-size: 18px;
}

.yt-card-text {
  flex: 1;
  min-width: 0;
}

.yt-card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.32;
  color: #f1f1f1;
  text-decoration: none;
}

.yt-card-sub {
  margin-top: 3px;
  font-size: 11.5px;
  color: #aaaaaa;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.yt-ch-link {
  color: #aaaaaa;
  font-size: 11.5px;
  font-weight: 500;
}

.yt-more-btn {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #aaaaaa;
  flex-shrink: 0;
}

/* Shorts Shelf & Grid */
.yt-shorts-shelf {
  padding: 8px 12px 16px;
  border-top: 4px solid #1f1f1f;
  border-bottom: 4px solid #1f1f1f;
  margin-bottom: 14px;
}

.yt-shorts-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.yt-shorts-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.yt-link-all {
  font-size: 12px;
  font-weight: 600;
  color: #3ea6ff;
}

.yt-shorts-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.yt-shorts-row::-webkit-scrollbar {
  display: none;
}

.yt-short-card {
  position: relative;
  flex: 0 0 132px;
  height: 214px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10px;
  text-decoration: none;
  color: #ffffff;
}

.yt-shorts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 12px;
}

.yt-short-card-grid {
  flex: none;
  width: 100%;
  height: 235px;
}

.yt-short-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
}

.yt-short-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.88) 100%);
}

.yt-short-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(255, 0, 0, 0.88);
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 2;
}

.yt-short-info {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.yt-short-info strong {
  font-size: 12px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yt-short-info span {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.78);
}

/* Search, Detail, Channel & Notifications */
.yt-search-bar,
.yt-sub-hdr {
  height: 46px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0f0f0f;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.yt-search-input {
  flex: 1;
  min-width: 0;
  height: 32px;
  background: #272727;
  border: none;
  border-radius: 16px;
  padding: 0 14px;
  color: #ffffff;
  font-size: 13.5px;
  outline: none;
}

.yt-search-input::placeholder {
  color: #9e9e9e;
}

.yt-sub-title {
  flex: 1;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yt-watch-top-btn {
  font-size: 12px;
  font-weight: 700;
  color: #ff4e45;
  text-decoration: none;
  padding: 4px 8px;
}

.yt-section-heading {
  padding: 12px 14px 8px;
  font-size: 13px;
  font-weight: 700;
  color: #aaaaaa;
}

.yt-recent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 12px;
}

.yt-recent-term {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 2px;
  font-size: 13.5px;
  color: #f1f1f1;
  text-align: left;
}

.yt-recent-del {
  color: #888;
  padding: 6px 8px;
  font-size: 12px;
}

.yt-search-ext-btn {
  display: block;
  margin: 10px 12px 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #272727;
  color: #3ea6ff;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.yt-detail-hero {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  text-decoration: none;
}

.yt-detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.yt-detail-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.yt-play-red-btn {
  background: #ff0000;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.yt-detail-body {
  padding: 12px;
}

.yt-detail-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
}

.yt-detail-stats {
  margin-top: 4px;
  font-size: 12px;
  color: #aaaaaa;
}

.yt-detail-channel {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.yt-detail-ch-left {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.yt-detail-ch-left strong {
  display: block;
  font-size: 13.5px;
  color: #ffffff;
}

.yt-detail-ch-left span {
  font-size: 11px;
  color: #aaaaaa;
}

.yt-sub-btn {
  padding: 7px 14px;
  border-radius: 999px;
  background: #ffffff;
  color: #0f0f0f;
  font-size: 12px;
  font-weight: 700;
}

.yt-sub-btn.subscribed {
  background: #272727;
  color: #f1f1f1;
}

.yt-sub-btn-wide {
  width: 100%;
  padding: 9px 16px;
}

.yt-action-pills {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.yt-action-pills::-webkit-scrollbar {
  display: none;
}

.yt-pill {
  padding: 7px 13px;
  border-radius: 999px;
  background: #272727;
  color: #f1f1f1;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.yt-pill.active {
  background: #3ea6ff;
  color: #0f0f0f;
}

.yt-pill-red {
  background: #ff0000;
  color: #ffffff;
}

.yt-desc-box {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #212121;
  font-size: 12.5px;
  line-height: 1.45;
  color: #e5e5e5;
  cursor: pointer;
}

.yt-desc-box p.clamped {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yt-desc-more {
  display: inline-block;
  margin-top: 4px;
  font-weight: 700;
  color: #ffffff;
  font-size: 12px;
}

.yt-comments-box {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: #212121;
}

.yt-comments-hdr {
  font-size: 13px;
  margin-bottom: 10px;
}

.yt-comments-hdr span {
  color: #aaaaaa;
  margin-left: 4px;
}

.yt-comment-compose {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.yt-comment-input {
  flex: 1;
  min-width: 0;
  background: #0f0f0f;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 6px 12px;
  color: #ffffff;
  font-size: 12.5px;
  outline: none;
}

.yt-comment-send {
  padding: 6px 12px;
  border-radius: 16px;
  background: #3ea6ff;
  color: #0f0f0f;
  font-size: 12px;
  font-weight: 700;
}

.yt-comment-row {
  padding: 7px 0;
  border-top: 0.5px solid rgba(255, 255, 255, 0.08);
}

.yt-comment-meta {
  font-size: 11px;
  color: #aaaaaa;
  margin-bottom: 2px;
}

.yt-comment-meta strong {
  color: #f1f1f1;
}

.yt-comment-row p {
  font-size: 12.5px;
  line-height: 1.38;
  color: #f1f1f1;
}

.yt-related-heading {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

/* Channel View & You Tab */
.yt-ch-banner {
  height: 78px;
  width: 100%;
}

.yt-ch-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 6px;
}

.yt-ch-hero-info h2 {
  font-size: 18px;
  font-weight: 700;
}

.yt-ch-hero-info p {
  font-size: 12px;
  color: #aaaaaa;
  margin-top: 2px;
}

.yt-ch-desc {
  padding: 4px 14px 10px;
  font-size: 12.5px;
  color: #cccccc;
  line-height: 1.4;
}

.yt-ch-actions {
  padding: 0 14px 10px;
}

.yt-you-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
}

.yt-you-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.yt-you-profile h2 {
  font-size: 18px;
  font-weight: 700;
}

.yt-you-profile p {
  font-size: 12px;
  color: #aaaaaa;
}

.yt-you-section {
  padding: 6px 14px 14px;
}

.yt-you-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 14px;
}

.yt-you-hdr span {
  font-size: 12px;
  color: #aaaaaa;
}

.yt-h-shelf {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.yt-h-shelf::-webkit-scrollbar {
  display: none;
}

.yt-mini-card {
  flex: 0 0 148px;
  text-decoration: none;
  color: #f1f1f1;
}

.yt-mini-thumb {
  position: relative;
  width: 148px;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #1c1c1e;
}

.yt-mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.yt-mini-card strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12px;
  margin-top: 5px;
  line-height: 1.25;
}

.yt-mini-card span {
  font-size: 11px;
  color: #aaaaaa;
}

.yt-notif-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  color: #f1f1f1;
}

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

.yt-notif-text p {
  font-size: 12.5px;
  line-height: 1.35;
}

.yt-notif-text span {
  font-size: 11px;
  color: #aaaaaa;
}

.yt-notif-thumb {
  width: 58px;
  height: 34px;
  border-radius: 5px;
  object-fit: cover;
  flex-shrink: 0;
}

.yt-empty,
.yt-empty-sm {
  padding: 28px 18px;
  text-align: center;
  font-size: 13px;
  color: #888888;
}

.yt-bottom-nav {
  height: 52px;
  background: #0f0f0f;
  border-top: 0.5px solid rgba(255, 255, 255, 0.12);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  flex-shrink: 0;
}

.yt-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #aaaaaa;
  font-size: 10px;
  font-weight: 500;
}

.yt-nav-btn.active {
  color: #ffffff;
}

.yt-toast {
  position: absolute;
  bottom: 66px;
  left: 50%;
  transform: translateX(-50%);
  background: #f1f1f1;
  color: #0f0f0f;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  z-index: 30;
}


/* ==================== MINIMAL iOS NOTES APP ==================== */
.ios-notes-simple {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #f2f2f7;
  color: #1c1c1e;
  overflow: hidden;
}

.ios-notes-hdr {
  padding: 12px 16px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f2f2f7;
  flex-shrink: 0;
}

.ios-notes-hdr h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: #1c1c1e;
}

.ios-notes-hdr-btns {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ios-notes-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #e0a000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ios-notes-icon-btn.active {
  background: rgba(224, 160, 0, 0.14);
}

.ios-notes-search-row {
  margin: 0 16px 10px;
  padding: 7px 11px;
  background: rgba(118, 118, 128, 0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.ios-notes-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 14px;
  color: #1c1c1e;
  outline: none;
}

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

.ios-notes-search-clear {
  font-size: 12px;
  color: #8e8e93;
  padding: 2px 4px;
}

.ios-notes-list-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 2px 16px 24px;
  -webkit-overflow-scrolling: touch;
}

.ios-notes-list-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
}

.ios-note-item {
  padding: 12px 15px;
  border-bottom: 0.5px solid rgba(60, 60, 67, 0.14);
  cursor: pointer;
}

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

.ios-note-item:active {
  background: #efeff4;
}

.ios-note-item-title {
  font-size: 15px;
  font-weight: 700;
  color: #1c1c1e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ios-note-item-sub {
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #8e8e93;
  white-space: nowrap;
  overflow: hidden;
}

.ios-note-item-date {
  color: #6c6c70;
  flex-shrink: 0;
}

.ios-note-item-preview {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Full-Screen Note Reader & Editor */
.ios-note-editor-view {
  background: #ffffff;
}

.ios-note-nav {
  height: 44px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 0.5px solid rgba(60, 60, 67, 0.12);
  background: #ffffff;
  flex-shrink: 0;
}

.ios-note-back {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #e0a000;
  font-size: 15px;
  font-weight: 600;
}

.ios-note-nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ios-note-del-btn {
  font-size: 14px;
  color: #8e8e93;
}

.ios-note-edit-btn {
  font-size: 15px;
  font-weight: 600;
  color: #e0a000;
}

.ios-note-body-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 14px 18px 32px;
  background: #ffffff;
}

.ios-note-full-date {
  text-align: center;
  font-size: 12px;
  color: #8e8e93;
  margin-bottom: 14px;
}

.ios-note-full-title {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.25;
  color: #1c1c1e;
  margin-bottom: 12px;
  cursor: text;
}

.ios-note-full-content {
  font-size: 15px;
  line-height: 1.6;
  color: #2c2c2e;
  white-space: pre-wrap;
  word-break: break-word;
  cursor: text;
}

.ios-note-title-input {
  width: 100%;
  border: none;
  border-bottom: 0.5px solid rgba(60, 60, 67, 0.16);
  padding: 4px 0 10px;
  margin-bottom: 12px;
  font-size: 21px;
  font-weight: 800;
  font-family: inherit;
  color: #1c1c1e;
  outline: none;
}

.ios-note-body-input {
  width: 100%;
  min-height: 300px;
  border: none;
  resize: none;
  font-size: 15px;
  line-height: 1.6;
  font-family: inherit;
  color: #1c1c1e;
  outline: none;
}

.ios-notes-empty {
  padding: 32px 16px;
  text-align: center;
  font-size: 13.5px;
  color: #8e8e93;
}


/* ==================== IMAGE LOADING & SCROLL PERFORMANCE OPTIMISATION ==================== */
.photo-card,
.vault-album-cover,
.ig-post-media,
.ig-grid-tile,
.x-tweet-media,
.yt-thumb-wrap,
.yt-mini-thumb,
.sp-card-art-wrap {
  background-color: rgba(128, 128, 136, 0.14);
}

.photo-card,
.ig-grid-tile {
  aspect-ratio: 1 / 1;
}

.x-tweet-card[data-x-open-tweet] {
  cursor: pointer;
}