/*
 * UreTech v198 — Portfolio
 * macOS Desktop + Finder + iPhone Home metaphor
 * Depends on uretech.css design tokens
 */


/* ═══════════════════════════════════════════
   PORTFOLIO TOKENS (extend uretech :root)
   ═══════════════════════════════════════════ */
:root {
  --fg: #F5F2EE;
  --pk2: #C8A4F5;
  --pk3: #F5B0EC;
  --plum: #B066A7;
  --glass-bg: rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.08);
  --glass-lt-bg: rgba(255,255,255,0.85);
  --glass-lt-border: rgba(255,255,255,0.5);
  --rm: 12px;
  --rs: 8px;
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}


/* ═══════════════════════════════════════════
   1. MAC DESKTOP CANVAS
   ═══════════════════════════════════════════ */

/* Force dark background on EVERYTHING around the desktop */
body.post-type-archive-uretech_portfolio {
  background: #060510 !important;
}
/* Desktop only: strip Elementor padding/margin to eliminate gaps */
@media (min-width: 1025px) {
  body.post-type-archive-uretech_portfolio .elementor-element,
  body.post-type-archive-uretech_portfolio .elementor-widget-container,
  body.post-type-archive-uretech_portfolio .e-con {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
  }
}

.ure-desktop {
  position: relative;
  width: 100%;
  height: 820px;
  overflow: hidden;
  background: var(--bg);
  --safe-b: 0px;
}

.ure-desktop__wall {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ure-menubar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 28px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  font-size: 13px;
  color: var(--fg);
}

.ure-menubar__logo {
  width: 14px;
  height: 14px;
  opacity: 0.8;
}

.ure-menubar__title {
  font-weight: 600;
}

.ure-menubar__clock {
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
}

.ure-desktop__folder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.2s var(--ease);
}

.ure-desktop__folder:hover {
  transform: translate(-50%, -50%) scale(1.05);
}

/* ── Desktop Icons Grid ── */

.ure-desktop__icons {
  position: absolute;
  top: 80px;
  right: 20px;
  bottom: calc(var(--safe-b) + 80px);
  z-index: 10;
  display: grid;
  grid-template-rows: repeat(auto-fill, 100px);
  grid-template-columns: repeat(2, 90px);
  gap: 4px 8px;
  align-content: start;
  justify-content: end;
}

.ure-desktop__icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  border-radius: var(--rs);
  cursor: pointer;
  transition: transform 0.2s var(--spring), background 0.15s;
  text-align: center;
}

.ure-desktop__icon:hover {
  background: rgba(255,255,255,0.06);
  transform: scale(1.04);
}

.ure-desktop__icon:active {
  transform: scale(0.96);
}

.ure-desktop__icon-img {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ure-desktop__icon-img svg {
  width: 100%;
  height: 100%;
}

.ure-desktop__icon-label {
  font-size: 11px;
  color: var(--fg);
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}

.ure-desktop__icon--trash {
  position: absolute;
  bottom: calc(var(--safe-b) + 70px);
  right: 20px;
  z-index: 11;
}

/* ── Desktop Icon Drag States ── */

.ure-desktop__icon.dragging {
  opacity: 0.4;
  transform: scale(0.9);
}

.ure-desktop__icon.drag-over {
  outline: 2px dashed var(--pk);
  outline-offset: 4px;
  border-radius: 8px;
}

.ure-desktop__icon[draggable="true"] {
  cursor: grab;
}

.ure-desktop__icon[draggable="true"]:active {
  cursor: grabbing;
}



/* ── Centered Portfolio Folder ── */

.ure-desktop__folder-main {
  position: absolute;
  top: calc(50% - var(--safe-b) / 2 + 30px);
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.2s var(--spring);
}

.ure-desktop__folder-main:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

.ure-desktop__folder-main:active {
  transform: translate(-50%, -50%) scale(0.95);
}

.ure-desktop__folder-main .ure-desktop__icon-img {
  width: 64px;
  height: 54px;
}

.ure-desktop__folder-main .ure-desktop__icon-label {
  font-size: 13px;
  font-weight: 500;
  max-width: none;
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}


/* ═══════════════════════════════════════════
   2. FINDER WINDOW
   ═══════════════════════════════════════════ */

.ure-finder {
  position: absolute;
  top: calc(50% - var(--safe-b) / 2 + 36px);
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90vw;
  max-width: 1200px;
  height: 80vh;
  background: rgba(30,28,40,0.92);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--rl);
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 1px rgba(255,255,255,0.1);
  z-index: 50;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ── Finder Chrome (title bar + traffic lights) ── */

.ure-finder__chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
  cursor: grab;
}

.ure-finder__chrome:active {
  cursor: grabbing;
}

.ure-finder__tl {
  display: flex;
  gap: 8px;
}

.ure-finder__tl button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.ure-finder__tl .red    { background: #FF5F57; }
.ure-finder__tl .yellow { background: #FFBD2E; }
.ure-finder__tl .green  { background: #28C840; }
.ure-finder__tl button:hover { opacity: 0.8; }

/* Traffic light icons — visible on parent hover */
.ure-finder__tl button,
.ure-deskwin__tl button {
  display: grid;
  place-items: center;
  font-size: 0;
  line-height: 1;
  overflow: hidden;
}

.ure-finder__tl button::after,
.ure-deskwin__tl button::after {
  content: '';
  font-size: 8px;
  font-weight: 700;
  font-family: -apple-system, system-ui, sans-serif;
  opacity: 0;
  transition: opacity 0.15s;
}

.ure-finder__tl:hover button::after,
.ure-deskwin__tl:hover button::after {
  opacity: 1;
}

.ure-finder__tl .red::after,
.ure-deskwin__tl .red::after {
  content: '\2715';
  color: #4a0002;
  font-size: 7px;
}

.ure-finder__tl .yellow::after,
.ure-deskwin__tl .yellow::after {
  content: '\2013';
  color: #995700;
  font-size: 9px;
  margin-top: -1px;
}

.ure-finder__tl .green::after,
.ure-deskwin__tl .green::after {
  content: '\2922';
  color: #006500;
  font-size: 7px;
}

.ure-finder__title {
  flex: 1;
  text-align: center;
  font-size: 13px;
  color: var(--fg);
  opacity: 0.7;
}

/* ── Finder Body ── */

.ure-finder__body {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* ── Finder Sidebar ── */

.ure-finder__sidebar {
  width: 200px;
  flex-shrink: 0;
  padding: 12px 0;
  border-right: 1px solid rgba(255,255,255,0.06);
  overflow-y: auto;
}

.ure-finder__sidebar-section {
  margin-bottom: 16px;
}

.ure-finder__sidebar-label {
  display: block;
  padding: 4px 16px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.ure-finder__sidebar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--fg);
  opacity: 0.7;
  cursor: pointer;
  border-radius: 6px;
  margin: 1px 8px;
  transition: all 0.15s;
  text-decoration: none;
}

.ure-finder__sidebar-item:hover {
  background: rgba(255,255,255,0.06);
  opacity: 1;
}

.ure-finder__sidebar-item.act {
  background: rgba(234,136,222,0.2);
  color: var(--pk);
  opacity: 1;
}

.ure-finder__sidebar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Finder Main ── */

.ure-finder__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ── Finder Toolbar ── */

.ure-finder__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.ure-finder__breadcrumb {
  font-size: 13px;
  color: var(--fg);
  opacity: 0.7;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ure-finder__breadcrumb span {
  cursor: pointer;
}

.ure-finder__breadcrumb span:hover {
  color: var(--pk);
}

.ure-finder__search {
  width: 180px;
  padding: 5px 10px;
  border-radius: var(--rs);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--fg);
  font-size: 12px;
  outline: none;
  transition: border-color 0.2s;
}

.ure-finder__search:focus {
  border-color: var(--pk);
}

.ure-finder__search::placeholder {
  color: var(--muted);
}

/* ── Finder Content Grid ── */

.ure-finder__content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  position: relative;
}

.ure-finder__folders,
.ure-finder__files {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 24px;
  align-content: start;
}


/* ═══════════════════════════════════════════
   3. DOCK (macOS)
   ═══════════════════════════════════════════ */

.ure-dock {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: 4px 8px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  z-index: 90;
  transition: opacity 0.3s;
}

.ure-dock__item {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s var(--spring), filter 0.2s;
  text-decoration: none;
}

.ure-dock__item:hover {
  transform: translateY(-8px) scale(1.4);
  filter: brightness(1.1);
}

.ure-dock__item svg,
.ure-dock__item img {
  width: 40px;
  height: 40px;
  pointer-events: none;
}

.ure-dock__separator {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.12);
  margin: 0 4px;
  align-self: center;
}

.ure-dock__tooltip {
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.75);
  color: var(--fg);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
}

.ure-dock__item:hover .ure-dock__tooltip {
  opacity: 1;
}

/* Dock magnification (neighbors scale via JS classes) */
.ure-dock__item--near-1 { transform: translateY(-4px) scale(1.2); }
.ure-dock__item--near-2 { transform: translateY(-2px) scale(1.1); }


/* ═══════════════════════════════════════════
   4. CARTELLE E FILE
   ═══════════════════════════════════════════ */

.ure-folder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 12px;
  border-radius: var(--rm);
  transition: transform 0.2s var(--spring), background 0.2s;
}

.ure-folder:hover {
  background: rgba(255,255,255,0.04);
  transform: scale(1.04);
}

.ure-folder__icon {
  width: 72px;
  height: 60px;
  position: relative;
}

.ure-folder__icon svg {
  width: 100%;
  height: 100%;
}

.ure-folder__icon svg .folder-body {
  fill: var(--folder-color, #4A9EF5);
}

.ure-folder__icon svg .folder-flap {
  fill: var(--folder-color, #4A9EF5);
  filter: brightness(1.15);
}

.ure-folder__label {
  font-size: 12px;
  color: var(--fg);
  text-align: center;
  max-width: 100px;
  word-wrap: break-word;
}

.ure-folder__count {
  font-size: 11px;
  color: var(--muted);
}

.ure-folder--open {
  transform: scale(1.08);
}

.ure-folder--open .ure-folder__icon svg .folder-flap {
  transform: rotate(-20deg);
  transform-origin: top left;
}

/* ── File ── */

.ure-file {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 12px;
  border-radius: var(--rm);
  transition: transform 0.3s var(--spring), filter 0.3s;
  text-decoration: none;
  color: var(--fg);
}

.ure-file:hover {
  transform: translateY(-6px) scale(1.04);
  filter: drop-shadow(0 12px 24px rgba(234,136,222,0.2));
}

.ure-file__thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--rs);
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.ure-file__thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block;
}

.ure-file__ext {
  position: absolute;
  bottom: 4px;
  right: 4px;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--pk);
  color: var(--bg);
}

.ure-file__label {
  font-size: 11px;
  text-align: center;
  max-width: 100px;
  word-wrap: break-word;
  line-height: 1.3;
}

/* ── Drag & Drop ── */

.ure-file.dragging,
.ure-folder.dragging {
  opacity: 0.4;
  transform: scale(0.95);
}

.ure-file.drag-over,
.ure-folder.drag-over {
  outline: 2px dashed var(--pk);
  outline-offset: 4px;
  border-radius: var(--rm);
}


/* ═══════════════════════════════════════════
   5. ANIMAZIONI FINDER
   ═══════════════════════════════════════════ */

@keyframes finderOpen {
  0%   { transform: translate(-50%, -50%) scale(0.05); opacity: 0; border-radius: 50%; }
  60%  { transform: translate(-50%, -50%) scale(1.02); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); border-radius: var(--rl); }
}

@keyframes finderClose {
  0%   { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(0.05); opacity: 0; border-radius: 50%; }
}

.ure-finder--opening { animation: finderOpen 0.5s var(--spring) forwards; }
.ure-finder--closing { animation: finderClose 0.3s var(--ease) forwards; pointer-events: none; }

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

.ure-folder--bounce { animation: folderBounce 0.3s var(--spring); }

@keyframes fileHover {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}

@keyframes sidebarSlide {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: none; }
}

.ure-finder__sidebar-item {
  animation: sidebarSlide 0.3s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 50ms);
}

@keyframes dockBounce {
  0%, 100% { transform: translateY(0); }
  30%      { transform: translateY(-16px); }
  50%      { transform: translateY(0); }
  70%      { transform: translateY(-8px); }
}

.ure-dock__item--bounce { animation: dockBounce 0.6s var(--spring); }


/* ═══════════════════════════════════════════
   5b. DESKTOP WINDOWS
   ═══════════════════════════════════════════ */

.ure-deskwin {
  position: absolute;
  top: calc(50% - var(--safe-b) / 2 + 36px);
  left: 50%;
  transform: translate(-50%, -50%);
  width: 520px;
  max-width: 90vw;
  max-height: 70vh;
  background: rgba(30,28,40,0.95);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--rl);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  z-index: 60;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ure-deskwin--opening {
  animation: finderOpen 0.4s var(--spring) forwards;
}

.ure-deskwin--closing {
  animation: finderClose 0.25s var(--ease) forwards;
  pointer-events: none;
}

.ure-deskwin__chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 36px;
  padding: 0 14px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
  cursor: grab;
}

.ure-deskwin__chrome:active {
  cursor: grabbing;
}

.ure-deskwin__tl {
  display: flex;
  gap: 8px;
}

.ure-deskwin__tl button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}

.ure-deskwin__tl .red    { background: #FF5F57; }
.ure-deskwin__tl .yellow { background: #FFBD2E; }
.ure-deskwin__tl .green  { background: #28C840; }

.ure-deskwin__title {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: var(--pk);
  opacity: 0.85;
}

.ure-deskwin__body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--fg);
}

/* TextEdit style */
.ure-deskwin__body--text {
  font-family: 'Courier New', monospace;
  background: var(--cream);
  color: var(--bg);
}

/* Notes/Tips style — Finder-like folder view */
.ure-deskwin__body--notes {
  padding: 0;
  background: rgba(20,18,30,0.6);
}

.ure-tips-file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.15s;
  cursor: default;
}

.ure-tips-file:hover {
  background: rgba(255,255,255,0.04);
}

.ure-tips-file__icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ure-tips-file__info {
  flex: 1;
  min-width: 0;
}

.ure-tips-file__name {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
  margin: 0 0 2px;
}

.ure-tips-file__desc {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ure-tips-file__size {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  flex-shrink: 0;
}

.ure-deskwin__body--notes ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ure-deskwin__body--notes li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Zip/Easter egg style */
.ure-deskwin__body--zip {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ure-deskwin__easter {
  padding: 20px;
}

.ure-deskwin__easter-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
}

.ure-deskwin__easter-code {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(234,136,222,0.15);
  color: var(--pk);
  border-radius: var(--rs);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 12px 0;
}

/* ── Trash Window ── */

.ure-deskwin--trash {
  width: 320px;
}

.ure-deskwin__body--trash {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 24px;
  min-height: 200px;
}

.ure-trash-empty {
  opacity: 0.5;
  margin-bottom: 16px;
}

.ure-trash-msg {
  font-size: 14px;
  color: var(--fg);
  opacity: 0.7;
  margin-bottom: 20px;
}

.ure-trash-items {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.ure-trash-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
  font-size: 13px;
  color: var(--fg);
  cursor: pointer;
  transition: background 0.15s;
}

.ure-trash-item:hover {
  background: rgba(255,255,255,0.1);
}

.ure-trash-item__icon {
  font-size: 18px;
  flex-shrink: 0;
}

.ure-trash-item__name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ure-trash-item__restore {
  font-size: 11px;
  color: var(--pk);
  background: none;
  border: 1px solid var(--pk);
  border-radius: 4px;
  padding: 2px 8px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s;
}
.ure-trash-item__restore:hover {
  background: rgba(234,136,222,0.15);
}

.ure-trash-item:hover .ure-trash-item__restore {
  opacity: 1;
}

.ure-trash-egg {
  font-size: 12px;
  color: var(--pk);
  opacity: 0;
  transition: opacity 0.5s;
  padding: 12px;
  background: rgba(234,136,222,0.08);
  border-radius: var(--rs);
  cursor: default;
}

.ure-trash-egg.show {
  opacity: 1;
}

/* ── Acrobat PDF Viewer ── */

.ure-deskwin--pdf {
  width: 650px;
  height: 80vh;
}

.ure-deskwin__body--acrobat {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ure-acrobat {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ure-acrobat__toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: #323232;
  border-bottom: 1px solid #444;
  font-size: 12px;
  color: #CCC;
  flex-shrink: 0;
}

.ure-acrobat__tool {
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.15s;
}

.ure-acrobat__tool:hover {
  background: rgba(255,255,255,0.1);
}

.ure-acrobat__zoom {
  font-weight: 500;
  min-width: 40px;
  text-align: center;
}

.ure-acrobat__sep {
  width: 1px;
  height: 16px;
  background: #555;
  margin: 0 4px;
}

.ure-acrobat__page {
  margin-left: auto;
  opacity: 0.7;
}

.ure-acrobat__viewer {
  flex: 1;
  overflow-y: auto;
  background: #525659;
  padding: 20px;
  display: flex;
  justify-content: center;
}

.ure-acrobat__page-sheet {
  background: #fff;
  color: #333;
  width: 100%;
  max-width: 500px;
  padding: 60px 50px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  font-family: 'Times New Roman', serif;
  font-size: 13px;
  line-height: 1.8;
  align-self: flex-start;
}

.ure-acrobat__page-sheet h3 {
  text-align: center;
  margin: 0 0 8px;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #1a1a1a;
  color: #111;
}

.ure-acrobat__subtitle {
  text-align: center;
  color: #666;
  margin: 0 0 16px;
  font-size: 12px;
}

.ure-acrobat__page-sheet hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 16px 0;
}

.ure-acrobat__page-sheet p {
  margin: 10px 0;
  color: #333;
}

/* ── Calculator (Apple iOS style) ── */

.ure-deskwin--calc {
  width: 290px;
}
.ure-deskwin--calc .ure-deskwin__tl .green {
  visibility: hidden;
}

.ure-deskwin__body--calc {
  padding: 0;
  overflow: hidden;
  background: #000;
}

.ure-calc__display {
  background: #000;
  color: #fff;
  text-align: right;
  padding: 12px 20px 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  min-height: 90px;
  overflow: hidden;
}

.ure-calc__history {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  font-weight: 400;
  min-height: 18px;
  display: block;
}

.ure-calc__value {
  font-size: 42px;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  word-break: break-all;
}

.ure-calc__keys {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 10px 14px 14px;
  background: #000;
}

.ure-calc__key {
  width: 56px;
  height: 56px;
  border-radius: 50% !important;
  background: #333 !important;
  color: #fff !important;
  font-size: 22px;
  border: none !important;
  cursor: pointer;
  transition: background 0.1s, transform 0.1s;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  padding: 0 !important;
}

.ure-calc__key:hover {
  background: #555 !important;
}

.ure-calc__key:active {
  transform: scale(0.92);
  background: #666 !important;
}

.ure-calc__key--fn {
  background: #A5A5A5 !important;
  color: #000 !important;
}

.ure-calc__key--fn:hover {
  background: #C0C0C0 !important;
}

.ure-calc__key--fn:active {
  background: #D5D5D5 !important;
}

.ure-calc__key--op {
  background: #FF9F0A !important;
  color: #fff !important;
}

.ure-calc__key--op:hover {
  background: #FFB840 !important;
}

.ure-calc__key--op:active,
.ure-calc__key--op.active {
  background: #fff !important;
  color: #FF9F0A !important;
}

/* ── Word ── */

.ure-deskwin--word {
  width: 620px;
  max-height: 80vh;
}

.ure-deskwin__body--word {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ure-word {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.ure-word__toolbar {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 8px 12px;
  background: #2B579A;
  color: #fff;
  flex-shrink: 0;
}

.ure-word__tool {
  padding: 4px 8px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.15s;
}

.ure-word__tool:hover {
  background: rgba(255,255,255,0.15);
}

.ure-word__sep {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.2);
  margin: 0 4px;
}

.ure-word__page {
  background: #fff;
  color: #333;
  min-height: 300px;
  padding: 40px;
  font-family: 'Times New Roman', serif;
  font-size: 14px;
  line-height: 1.8;
  outline: none;
  flex: 1;
  overflow-y: auto;
}

.ure-word__page h2 {
  margin: 0 0 16px;
  font-size: 22px;
  color: #1a1a1a !important;
}

.ure-word__page p {
  margin: 8px 0;
  color: #333 !important;
}

/* ── Excel ── */

.ure-deskwin--excel {
  width: 650px;
  max-height: 80vh;
}

.ure-deskwin__body--excel {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ure-excel {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.ure-excel__formula {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 4px 8px;
  background: #217346;
  color: #fff;
  flex-shrink: 0;
}

.ure-excel__cell-ref {
  background: rgba(255,255,255,0.15);
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 12px;
  min-width: 40px;
  text-align: center;
  font-weight: 500;
}

.ure-excel__formula-input {
  flex: 1;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  padding: 2px 6px;
  font-size: 12px;
  border-radius: 3px;
  outline: none;
}

.ure-excel__formula-input::placeholder {
  color: rgba(255,255,255,0.4);
}

.ure-excel__grid {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  color: #333;
  font-size: 13px;
  flex: 1;
}

.ure-excel__grid th {
  background: #E8E8E8;
  padding: 4px 8px;
  border: 1px solid #CCC;
  font-weight: 500;
  position: sticky;
  top: 0;
  z-index: 1;
}

.ure-excel__grid td {
  border: 1px solid #D4D4D4;
  padding: 4px 8px;
  min-width: 80px;
  height: 24px;
  outline: none;
}

.ure-excel__grid td:focus {
  outline: 2px solid #217346;
  outline-offset: -2px;
  background: #E8F5E9;
}

.ure-excel__row-num {
  background: #E8E8E8;
  color: #666;
  text-align: center;
  font-weight: 500;
  min-width: 32px !important;
  width: 32px;
}

/* ── Chrome Browser ── */

.ure-deskwin--chrome {
  width: 900px;
  max-width: 95vw;
  height: 80vh;
}

.ure-deskwin__body--browser {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ure-browser {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ure-browser__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #292A2D;
  flex-shrink: 0;
}

.ure-browser__nav {
  display: flex;
  gap: 8px;
}

.ure-browser__btn {
  color: #999;
  cursor: default;
  font-size: 14px;
  user-select: none;
}

.ure-browser__url {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #202124;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 13px;
  color: #BDC1C6;
}

.ure-browser__lock {
  flex-shrink: 0;
}

.ure-browser__frame {
  flex: 1;
  border: none;
  background: #fff;
}


/* ═══════════════════════════════════════════
   6. SINGLE PROJECT WIDGETS
   ═══════════════════════════════════════════ */

/* Body class scoping */
body.ure-project {
  background: var(--bg);
}

/* Elementor containers must not clip section orbs */
body.single-uretech_portfolio .e-con:has([data-portfolio-widget="section"]) {
  overflow: visible !important;
}

/* ── Widget: Hero ── */

.ure-project__hero {
  position: relative;
  width: 100%;
  min-height: 85vh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 60px 40px;
}

.ure-project__hero-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  will-change: transform; /* for parallax */
}

.ure-project__hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(6,5,16,1) 0%,
    rgba(6,5,16,1) 18%,
    rgba(6,5,16,0.92) 40%,
    rgba(6,5,16,0.75) 60%,
    rgba(6,5,16,0.55) 80%,
    rgba(6,5,16,0.45) 100%
  );
}

.ure-project__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.ure-project__hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--pk) !important;
  margin: 0 0 16px;
  line-height: 1.1;
}

.ure-project__hero-content p {
  font-size: 1.125rem;
  color: var(--fg);
  opacity: 0.8;
  margin: 0 0 24px;
  line-height: 1.6;
}

.ure-project__hero-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--pk);
  font-size: 14px;
  text-decoration: none;
  transition: gap 0.2s var(--ease);
}

.ure-project__hero-back:hover {
  gap: 12px;
}

/* ── Widget: Info Card ── */

.ure-project__info {
  position: relative;
  z-index: 3;
  margin-top: -60px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--rl);
  padding: 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.ure-project__info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ure-project__info-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.ure-project__info-value {
  font-size: 16px;
  color: var(--fg);
  font-weight: 500;
}

.ure-project__badge {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(234,136,222,0.15);
  color: var(--pk);
}

.ure-project__live-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--pk), var(--pk3));
  color: #fff !important;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none !important;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, filter 0.2s;
}

.ure-project__live-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(234,136,222,0.4);
  filter: brightness(1.08);
  color: #fff !important;
}

/* ── Widget: Section (riutilizzabile x3 — sfida, soluzione, risultati) ── */

.ure-project__section {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  padding: 80px clamp(24px, 5vw, 80px);
  align-items: start;
  position: relative;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.ure-project__section-label {
  font-size: 14px;
  color: var(--muted);
}

.ure-project__section-label span {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--pk);
  margin-top: 8px;
}

.ure-project__section-label em {
  font-style: italic;
  color: var(--pk);
}

.ure-project__section-text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--fg);
  opacity: 0.85;
}

.ure-project__section--cream {
  background: var(--cream);
  color: var(--bg);
}

.ure-project__section--cream .ure-project__section-label span {
  color: var(--pk);
}

.ure-project__section--cream .ure-project__section-text {
  color: var(--bg);
  opacity: 0.8;
}

/* ── Section Orbs ── */

/* Force Elementor containers to not clip orbs */
.ure-project__section-orbs {
  position: absolute;
  inset: -150px 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.25;
  mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
}

/* Elementor parent containers must not clip the orbs */
[data-portfolio-widget="section"] {
  overflow: visible !important;
}

/* In scatter sections orbs stay in viewport (sticky like content) */
.ure-project__section--with-scatter .ure-project__section-orbs {
  position: sticky;
  top: -150px;
  height: calc(100vh + 300px);
  margin-bottom: calc(-100vh - 300px);
  inset: auto;
}

.ure-project__section-orbs .orb,
.ure-project__section-orbs .ure-orb {
  display: block;
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
  animation: ureOrbFloat 25s ease-in-out infinite;
}

@keyframes ureOrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -40px) scale(1.1); }
  50% { transform: translate(-20px, 20px) scale(0.9); }
  75% { transform: translate(40px, 30px) scale(1.05); }
}

.ure-project__section-label,
.ure-project__section-text {
  position: relative;
  z-index: 1;
}

/* ── Widget: Gallery ── */

.ure-project__gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.ure-project__gallery-item {
  border-radius: var(--rm);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  cursor: pointer;
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  transition: all 0.7s var(--ease);
  transition-delay: calc(var(--rd, 0) * 1ms);
}

.ure-project__gallery-item.in {
  opacity: 1;
  transform: none;
}

.ure-project__gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.ure-project__gallery-item:hover img {
  transform: scale(1.05);
}

/* ── Unified Lightbox ── */

.ure-project__lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(6,5,16,0.4);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.ure-project__lightbox.active {
  opacity: 1;
  pointer-events: all;
}

/* Image */
.ure-project__lightbox-img {
  display: none;
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--rm);
  cursor: zoom-in;
  transition: transform 0.25s ease;
  will-change: transform;
}

.ure-project__lightbox.lb-zoomed .ure-project__lightbox-img {
  cursor: zoom-out;
  transition: none;
}

/* Video */
.ure-project__lightbox-video {
  display: none;
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--rm);
  background: #000;
  outline: none;
}

/* Close button — minimal glass */
.ure-project__lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.15) !important;
  background: rgba(255,255,255,0.08) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 50%;
  cursor: pointer;
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, border-color 0.3s;
  z-index: 10;
  padding: 0;
}

.ure-project__lightbox-close svg {
  width: 20px !important;
  height: 20px !important;
  stroke: #fff !important;
}

.ure-project__lightbox-close:hover {
  background: rgba(255,255,255,0.16) !important;
  border-color: rgba(255,255,255,0.25) !important;
}

/* Nav arrows — minimal glass */
.ure-project__lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,0.15) !important;
  background: rgba(255,255,255,0.08) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 50%;
  cursor: pointer;
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, border-color 0.3s;
  z-index: 10;
  padding: 0;
}

.ure-project__lightbox-nav svg {
  width: 24px !important;
  height: 24px !important;
  stroke: #fff !important;
}

.ure-project__lightbox-nav:hover {
  background: rgba(255,255,255,0.16) !important;
  border-color: rgba(255,255,255,0.25) !important;
}

.ure-project__lightbox-prev { left: 20px; }
.ure-project__lightbox-next { right: 20px; }

/* Counter — minimal glass pill */
.ure-project__lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.8) !important;
  font-size: 13px;
  letter-spacing: 0.5px;
  padding: 6px 16px;
  background: rgba(255,255,255,0.08) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.15) !important;
  border-radius: 20px;
  z-index: 10;
}

/* Clickable screens (monitor/phone) */
.ure-project__monitor-screen,
.ure-project__phone-screen {
  cursor: pointer;
}

/* ── Widget: Metrics ── */

.ure-project__metrics-wrap {
  position: relative;
  overflow: hidden;
}

body.single-uretech_portfolio .e-con:has(.ure-project__metrics-wrap--cream) {
  background: var(--cream) !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.ure-project__metrics-wrap--cream {
  background: var(--cream);
  padding: 80px 24px;
}

.ure-project__metrics-wrap--cream .ure-project__metric-label {
  color: rgba(6,5,16,0.55);
}

.ure-project__metrics-wrap--cream .ure-project__metric-value {
  color: var(--metric-accent, #EA88DE);
}

.ure-project__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

.ure-project__metric {
  padding: 32px 16px;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.ure-project__metric.in {
  opacity: 1;
  transform: none;
}

/* progress-ring */
.ure-project__metric[data-anim="progress-ring"] {
  position: relative;
}
.ure-project__metric-ring {
  width: 100px;
  height: 100px;
  margin: 0 auto 12px;
  color: var(--pk);
  display: block;
}
.ure-project__metric-ring-fill {
  transition: stroke-dashoffset 1.5s cubic-bezier(.16,1,.3,1);
}
.ure-project__metric[data-anim="progress-ring"] .ure-project__metric-value {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

/* grow-bar */
.ure-project__metric[data-anim="grow-bar"] {
  position: relative;
}
.ure-project__metric-bar {
  width: 60px;
  height: 80px;
  margin: 0 auto 12px;
  color: var(--pk);
  display: block;
}
.ure-project__metric-bar-fill {
  transform: scaleY(0);
  transform-box: fill-box;
  transform-origin: center bottom;
  transition: transform 1.5s cubic-bezier(.16,1,.3,1);
}
.ure-project__metric[data-anim="grow-bar"] .ure-project__metric-value {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

/* ── SVG: Arc Gauge ── */
.ure-project__metric-gauge {
  width: 110px;
  height: 65px;
  margin: 0 auto 12px;
  color: var(--pk);
  display: block;
}
.ure-project__metric-gauge-fill {
  transition: stroke-dashoffset 1.5s cubic-bezier(.16,1,.3,1);
}
.ure-project__metric[data-anim="arc-gauge"] .ure-project__metric-value {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

/* ── SVG: Wave Fill ── */
.ure-project__metric-wave {
  width: 100px;
  height: 100px;
  margin: 0 auto 12px;
  color: var(--pk);
  display: block;
  overflow: visible;
}
.ure-project__metric-wave-level {
  transition: transform 2s cubic-bezier(.16,1,.3,1);
}
.ure-project__metric-wave-a {
  animation: ureWaveA 4s ease-in-out infinite paused;
}
.ure-project__metric-wave-b {
  animation: ureWaveB 3.5s ease-in-out infinite paused;
}
.ure-project__metric.in .ure-project__metric-wave-a,
.ure-project__metric.in .ure-project__metric-wave-b {
  animation-play-state: running;
}
@keyframes ureWaveA {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-30px); }
}
@keyframes ureWaveB {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(25px); }
}
.ure-project__metric[data-anim="wave-fill"] .ure-project__metric-value {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

/* ── SVG: Dot Grid ── */
.ure-project__metric-dots {
  width: 180px;
  height: 20px;
  margin: 0 auto 16px;
  color: var(--pk);
  display: block;
}
.ure-project__metric-dot {
  opacity: 0.12;
  transition: opacity 0.4s ease;
}
.ure-project__metric-dot.filled {
  opacity: 0.85;
}

/* ── SVG: Rising Bars ── */
.ure-project__metric-risebars {
  width: 110px;
  height: 70px;
  margin: 0 auto 12px;
  color: var(--pk);
  display: block;
}
.ure-project__metric-risebar {
  transform: scaleY(0);
  transform-box: fill-box;
  transform-origin: center bottom;
  transition: transform 1.2s cubic-bezier(.16,1,.3,1);
}

/* ── Cream overrides for all SVG elements ── */
.ure-project__metrics-wrap--cream .ure-project__metric-ring,
.ure-project__metrics-wrap--cream .ure-project__metric-bar,
.ure-project__metrics-wrap--cream .ure-project__metric-gauge,
.ure-project__metrics-wrap--cream .ure-project__metric-wave,
.ure-project__metrics-wrap--cream .ure-project__metric-dots,
.ure-project__metrics-wrap--cream .ure-project__metric-risebars {
  color: var(--metric-accent, #EA88DE);
}

.ure-project__metric-value {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--pk);
  font-variant-numeric: tabular-nums;
}

.ure-project__metric-label {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
}

/* ── Widget: Nav ── */

.ure-project__nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
  padding: 60px 0;
  border-top: 1px solid rgba(245,242,238,0.06);
}

.ure-project__nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--fg);
  padding: 14px 20px;
  border-radius: 100px;
  background: rgba(245,242,238,0.03);
  border: 1px solid rgba(245,242,238,0.06);
  transition: transform 0.4s var(--ease), background 0.4s, border-color 0.4s, box-shadow 0.4s;
  position: relative;
  overflow: hidden;
}

.ure-project__nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(234,136,222,0.08), rgba(193,191,230,0.04));
  opacity: 0;
  transition: opacity 0.4s;
  border-radius: inherit;
}

.ure-project__nav-link:hover {
  transform: translateX(-6px);
  border-color: rgba(234,136,222,0.25);
  background: rgba(245,242,238,0.05);
  box-shadow: 0 4px 30px rgba(234,136,222,0.08);
}

.ure-project__nav-link:hover::before {
  opacity: 1;
}

.ure-project__nav-link--next {
  flex-direction: row-reverse;
  text-align: right;
}

.ure-project__nav-link--next:hover {
  transform: translateX(6px);
}

.ure-project__nav-thumb {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(245,242,238,0.08);
  position: relative;
  z-index: 1;
}

.ure-project__nav-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.ure-project__nav-link:hover .ure-project__nav-thumb img {
  transform: scale(1.08);
}

.ure-project__nav-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pk);
  position: relative;
  z-index: 1;
}

.ure-project__nav-title {
  font-size: 14px;
  font-weight: 500;
  margin-top: 2px;
  position: relative;
  z-index: 1;
  transition: color 0.3s;
}

.ure-project__nav-link:hover .ure-project__nav-title {
  color: var(--fg);
}

.ure-project__nav-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 100px;
  background: transparent;
  border: 1px solid rgba(245,242,238,0.12);
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: border-color 0.3s, color 0.3s, background 0.3s, box-shadow 0.3s;
}

.ure-project__nav-back:hover {
  border-color: var(--pk);
  color: var(--pk);
  background: rgba(234,136,222,0.06);
  box-shadow: 0 0 20px rgba(234,136,222,0.08);
}

/* ── Widget: Monitor Video ── */

.ure-project__monitor-section {
  padding: 80px 0 0;
  text-align: center;
  position: relative;
}

.ure-project__monitor-section--has-phone {
  /* Extra height for phone scroll-in; JS sets exact value */
}

.ure-project__monitor-header {
  max-width: 700px;
  margin: 0 auto 60px;
}

.ure-project__monitor-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--fg);
  margin: 16px 0 24px;
}

.ure-project__monitor-header p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--fg);
  opacity: 0.85;
}

.ure-project__monitor-number {
  font-size: 14px;
  color: var(--muted);
  position: relative;
  display: inline-block;
}

.ure-project__monitor-number[data-number]::before {
  content: attr(data-number);
  position: absolute;
  top: -20px;
  left: -10px;
  font-size: 8rem;
  font-weight: 900;
  color: var(--pk);
  opacity: 0.06;
  line-height: 1;
  pointer-events: none;
}

.ure-project__monitor-device {
  --expand: 0;
  width: calc(60% + var(--expand) * 40%);
  max-width: 100%;
  margin: 0 auto;
  will-change: width;
}

.ure-project__monitor-bezel {
  background: #1C1932;
  border-radius: 16px 16px 0 0;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}

.ure-project__monitor-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #252240;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.ure-project__monitor-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.ure-project__monitor-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.ure-project__monitor-dots span:nth-child(1) { background: #FF5F57; }
.ure-project__monitor-dots span:nth-child(2) { background: #FEBC2E; }
.ure-project__monitor-dots span:nth-child(3) { background: #28C840; }

.ure-project__monitor-urlbar {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  font-family: 'SF Pro Text', 'DM Sans', system-ui, sans-serif;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ure-project__monitor-urlbar svg {
  flex-shrink: 0;
  opacity: 0.4;
}

.ure-project__monitor-screen {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #000;
}

.ure-project__monitor-screen video,
.ure-project__monitor-screen iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
}

.ure-project__monitor-stand {
  width: 120px;
  height: 40px;
  margin: 0 auto;
  background: linear-gradient(to bottom, #2A2545, #1A1730);
  clip-path: polygon(10% 0%, 90% 0%, 100% 100%, 0% 100%);
}

/* ── Phone Preview (mobile video over monitor) ── */

.ure-project__phone-preview {
  position: absolute;
  right: 8%;
  bottom: 0;
  z-index: 4;
  transform: translateY(var(--phone-y, 110%));
  will-change: transform;
  transition: transform 0.1s linear;
}

/* Centered mode: when no desktop video, phone is the hero */
.ure-project__phone-preview--centered {
  position: relative;
  right: auto;
  bottom: auto;
  display: flex;
  justify-content: center;
  transform: none;
  will-change: auto;
  transition: none;
}

.ure-project__phone-preview--centered .ure-project__phone-frame {
  width: 260px;
}

.ure-project__phone-preview--centered .ure-project__phone-screen {
  border-radius: 30px;
}

.ure-project__phone-preview--centered .ure-project__phone-frame {
  border-radius: 36px;
  padding: 5px;
}

.ure-project__phone-frame {
  width: 180px;
  background: #111;
  border-radius: 32px;
  border: 2.5px solid rgba(255,255,255,0.15);
  padding: 4px;
  box-shadow:
    0 12px 48px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.04),
    inset 0 0 0 1px rgba(255,255,255,0.06);
  position: relative;
}

/* Notch area: overlays the top of the screen */
.ure-project__phone-notch {
  position: absolute;
  top: 4px;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  pointer-events: none;
}

.ure-project__phone-island {
  width: 62px;
  height: 20px;
  background: #000;
  border-radius: 20px;
}

.ure-project__phone-screen {
  aspect-ratio: 9/19.5;
  overflow: hidden;
  background: #000;
  border-radius: 28px;
  position: relative;
  z-index: 1;
}

.ure-project__phone-screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Home bar indicator — overlays bottom of screen */
.ure-project__phone-homebar {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 32%;
  height: 4px;
  background: rgba(255,255,255,0.35);
  border-radius: 4px;
  z-index: 4;
  pointer-events: none;
}

/* Phone-only section: no monitor, centered phone */
.ure-project__monitor-section--phone-only .ure-project__monitor-header {
  margin-bottom: 40px;
}

/* Phone reveal button (mobile) */
.ure-project__phone-reveal-btn {
  display: block;
  margin: 32px auto 0;
  padding: 14px 32px;
  background: linear-gradient(135deg, rgba(234,136,222,0.12), rgba(193,191,230,0.08));
  border: 1px solid rgba(234,136,222,0.25);
  border-radius: 100px;
  color: var(--pk);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s, transform 0.2s;
}

.ure-project__phone-reveal-btn:hover,
.ure-project__phone-reveal-btn:active {
  background: linear-gradient(135deg, rgba(234,136,222,0.2), rgba(193,191,230,0.12));
  border-color: rgba(234,136,222,0.4);
  box-shadow: 0 4px 24px rgba(234,136,222,0.15);
  transform: translateY(-2px);
}

/* ── Horizontal Gallery ── */

.ure-project__hgallery {
  position: relative;
  /* height set by JS */
}

.ure-project__hgallery-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: var(--bg);
}

/* Grid background inside the sticky viewport */
.ure-project__hgallery-sticky::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: var(--grid-opacity, 0);
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.3s ease;
}

/* Cream overlay that fades on scroll to reveal dark + grid */
.ure-project__hgallery-sticky::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cream);
  opacity: var(--cream-fade, 1);
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.3s ease;
}

.ure-project__hgallery-track {
  display: flex;
  gap: 24px;
  padding: 0 48px;
  will-change: transform;
  position: relative;
  z-index: 1;
}

.ure-project__hgallery-item {
  flex-shrink: 0;
  width: 45vw;
  height: 55vh;
  border-radius: var(--rl);
  overflow: hidden;
  position: relative;
}

.ure-project__hgallery-item img,
.ure-project__hgallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Text Reveal (letter-by-letter on scroll) ── */

.ure-project__section-text,
.ure-project__monitor-header p {
  color: rgba(245,242,238,0.15);
}

.ure-project__section--cream .ure-project__section-text {
  color: rgba(6,5,16,0.15);
}

.ure-char {
  display: inline;
}

/* ── Read More (truncated scatter text + modal) ── */

.ure-project__section-text--truncated {
  overflow: hidden;
  position: relative;
}
.ure-project__section-text--truncated::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -20px;
  right: -20px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, rgba(6,5,16,0.85));
  pointer-events: none;
  z-index: 0;
}
.ure-project__section--cream .ure-project__section-text--truncated::after {
  background: linear-gradient(to bottom, transparent, rgba(245,242,238,0.85));
}

.ure-project__read-more {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 24px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--fg);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
  position: relative;
  z-index: 2;
}
.ure-project__read-more:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.3);
}
.ure-project__section--cream .ure-project__read-more {
  border-color: rgba(6,5,16,0.15);
  background: rgba(6,5,16,0.04);
  color: var(--bg);
}
.ure-project__section--cream .ure-project__read-more:hover {
  background: rgba(6,5,16,0.08);
  border-color: rgba(6,5,16,0.25);
}

/* Text modal */
.ure-project__text-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(6,5,16,0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.ure-project__text-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.ure-project__text-modal-body {
  max-width: 680px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 48px 40px;
  color: var(--fg);
  font-size: 1.125rem;
  line-height: 1.8;
  text-align: left;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}
.ure-project__text-modal-body::-webkit-scrollbar {
  width: 4px;
}
.ure-project__text-modal-body::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
}
.ure-project__text-modal-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--pk);
  margin-bottom: 24px;
}
.ure-project__text-modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px !important;
  height: 40px !important;
  min-width: 0 !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  background: rgba(255,255,255,0.08) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 50% !important;
  cursor: pointer;
  color: #fff !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, border-color 0.3s;
  z-index: 10;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  font-size: 0 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}
.ure-project__text-modal-close:hover {
  background: rgba(255,255,255,0.16) !important;
  border-color: rgba(255,255,255,0.25) !important;
}
.ure-project__text-modal-close svg {
  width: 20px !important;
  height: 20px !important;
  stroke: #fff !important;
  fill: none !important;
}
.ure-project__text-modal-content {
  color: #F5F2EE !important;
}
.ure-project__text-modal-content .ure-project__section-text {
  color: #F5F2EE !important;
  opacity: 0.9 !important;
}
.ure-project__text-modal-content .ure-char {
  color: inherit !important;
}

/* ── Scatter Images (scrolling fly-in) ── */

.ure-project__section--with-scatter {
  display: block;
  position: relative;
  max-width: none;
  padding: 0;
}

.ure-project__section-pinned {
  position: relative;
}

.ure-project__section-content {
  position: sticky;
  top: 20vh;
  z-index: 2;
  max-width: 55%;
  margin: 0 auto;
  text-align: center;
  padding: 40px 24px;
  box-sizing: border-box;
}

.ure-project__scatter {
  position: relative;
  pointer-events: none;
  z-index: 3;
  /* height set by JS */
}

.ure-project__scatter-img {
  position: absolute;
  opacity: 0;
  will-change: transform, opacity;
  transition: transform 0.8s cubic-bezier(.16,1,.3,1), opacity 0.6s ease;
  pointer-events: auto;
  cursor: pointer;
}

.ure-project__scatter-img.in {
  opacity: 1;
}

.ure-project__scatter-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ── Section Watermark Numbers ── */

.ure-project__section-label[data-number] {
  position: relative;
}

.ure-project__section-label[data-number]::before {
  content: attr(data-number);
  position: absolute;
  top: -20px;
  left: -10px;
  font-size: 8rem;
  font-weight: 900;
  color: var(--pk);
  opacity: 0.06;
  line-height: 1;
  pointer-events: none;
}

/* ── Scroll Progress ── */

.ure-project__progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  z-index: 9998;
  background: var(--pk);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.1s linear;
}


/* ═══════════════════════════════════════════
   7. SCROLL CONNECTION CLASSES
   ═══════════════════════════════════════════ */

[data-portfolio-widget] {
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

[data-portfolio-widget].reveal-up {
  opacity: 0;
  transform: translateY(40px);
}

[data-portfolio-widget].reveal-left {
  opacity: 0;
  transform: translateX(-40px);
}

[data-portfolio-widget].reveal-right {
  opacity: 0;
  transform: translateX(40px);
}

[data-portfolio-widget].reveal-scale {
  opacity: 0;
  transform: scale(0.9);
}

[data-portfolio-widget].in {
  opacity: 1;
  transform: none;
}


/* ═══════════════════════════════════════════
   8. RESPONSIVE — TABLET (max-width: 1024px)
   ═══════════════════════════════════════════ */

@media (max-width: 1024px) {
  .ure-finder__sidebar {
    display: none;
  }

  .ure-finder {
    width: 95vw;
    height: 85vh;
  }

  .ure-dock {
    display: none;
  }

  /* ── Single Project: vertical layout, same animations ── */

  html:has(body.single-uretech_portfolio) {
    overflow-x: clip;
  }

  body.single-uretech_portfolio {
    overflow-x: clip;
    max-width: 100vw;
  }

  /* Kill Elementor default padding + overflow on all single-project containers */
  body.single-uretech_portfolio .e-con {
    padding: 0 !important;
    overflow: visible !important;
    max-width: 100% !important;
  }

  .ure-project__hero {
    min-height: 65vh;
    padding: 48px 24px;
  }

  .ure-project__info {
    grid-template-columns: repeat(2, 1fr);
    margin-left: 20px;
    margin-right: 20px;
  }

  .ure-project__section {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 60px 20px;
  }

  .ure-project__section-content {
    max-width: 90%;
  }

  /* Scatter sections: same as desktop — sticky content, images fly over */
  .ure-project__section--with-scatter .ure-project__section-content {
    position: sticky;
    top: 25vh;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 24px 20px;
    text-align: center;
    box-sizing: border-box;
  }

  .ure-project__section--with-scatter {
    padding: 0;
    overflow-x: clip;
  }

  .ure-project__gallery {
    grid-template-columns: repeat(2, 1fr);
    padding-left: 20px;
    padding-right: 20px;
  }

  .ure-project__monitor-device {
    width: calc(90% + var(--expand) * 10%);
  }

  .ure-project__monitor-bezel {
    border-radius: 12px;
    border: 2px solid rgba(255,255,255,0.12);
  }

  .ure-project__monitor-screen {
    border-radius: 0 0 10px 10px;
  }

  .ure-project__monitor-section {
    padding: 60px 20px 40px;
  }

  /* Phone preview mobile: visible, centered, properly sized */
  .ure-project__phone-preview {
    position: relative !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    will-change: auto !important;
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .ure-project__phone-preview .ure-project__phone-frame {
    width: 200px;
  }

  .ure-project__metrics {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* ── Horizontal Gallery: tablet/mobile sizing ── */
  .ure-project__hgallery-track {
    gap: 16px;
    padding: 0 20px;
  }

  .ure-project__hgallery-item {
    width: 75vw;
    height: 45vh;
  }

  .ure-project__nav {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .ure-project__nav-back {
    order: -1;
    width: 100%;
    text-align: center;
  }

  .ure-project__monitor-header {
    padding-left: 20px;
    padding-right: 20px;
  }

  .ure-project__lightbox-nav {
    width: 40px;
    height: 40px;
  }
  .ure-project__lightbox-nav svg {
    width: 20px !important;
    height: 20px !important;
  }
  .ure-project__lightbox-prev { left: 12px; }
  .ure-project__lightbox-next { right: 12px; }

  .ure-project__lightbox-close {
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
  }

  .ure-project__lightbox-img {
    cursor: default;
  }

  .ure-desktop__icons { display: none; }
  .ure-desktop__icon--trash { display: none; }
  .ure-desktop__folder-main { display: none; }

  .ure-deskwin { display: none !important; }
}


/* ═══════════════════════════════════════════
   9. RESPONSIVE — MOBILE / iPHONE HOME SCREEN
   ═══════════════════════════════════════════ */

/* Show / hide switch — iPhone for mobile+tablet, Desktop for >1024px */
@media (max-width: 1024px) {
  .ure-desktop { display: none !important; }
  .ure-iphone  { display: flex !important; }

  /* Kill Elementor padding on portfolio archive */
  body.post-type-archive-uretech_portfolio .e-con.e-parent {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Footer visible above iPhone on portfolio */
  .elementor-location-footer { z-index: 995 !important; position: relative; }
}

/* ── iPhone Container (hidden on desktop) ── */

.ure-iphone {
  display: none;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: #060510;
  background: var(--bg, #060510);
  position: relative;
  overflow: hidden;
}

/* On mobile+tablet: fixed fullscreen — prevents viewport stretch */
@media (max-width: 1024px) {
  .ure-iphone {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 990;
    overflow: hidden;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: auto;
  }
}

.ure-iphone__wall {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* ── iOS 26 Status Bar ── */

.ure-iphone__status {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px 6px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
  pointer-events: none;
}

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

.ure-iphone__status-icons svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}

/* ── iOS 26 Widget Card — Liquid Glass ── */

.ure-iphone__widget {
  position: relative;
  z-index: 10;
  margin: 44px 20px 0; /* 44px top to clear absolute status bar */
  padding: 14px 16px;
  border-radius: 24px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 0.5px solid rgba(255,255,255,0.2);
  box-shadow:
    0 8px 32px rgba(0,0,0,0.15),
    inset 0 1px 0 rgba(255,255,255,0.15);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}

/* Liquid Glass specular highlight */
.ure-iphone__widget::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, transparent 100%);
  border-radius: 24px 24px 0 0;
  pointer-events: none;
}

.ure-iphone__widget-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ure-iphone__widget-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.ure-iphone__widget-item {
  aspect-ratio: 1;
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 8px 10px;
  text-decoration: none;
  overflow: hidden;
  position: relative;
  border: 0.5px solid rgba(255,255,255,0.1);
}

.ure-iphone__widget-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 50%);
  border-radius: 16px;
}

.ure-iphone__widget-title {
  position: relative;
  z-index: 1;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* ── iOS 26 App Grid ── */

.ure-iphone__grid {
  position: relative;
  z-index: 10;
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 16px;
  padding: 20px 28px;
  align-content: start;
}

/* ── iOS 26 App Icon — Liquid Glass Layers ── */

.ure-iphone__app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.ure-iphone__app-icon {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 0.5px solid rgba(255,255,255,0.18);
  box-shadow:
    0 4px 16px rgba(0,0,0,0.12),
    inset 0 1px 0 rgba(255,255,255,0.15);
  transition: transform 0.2s cubic-bezier(.16,1,.3,1);
}

/* Specular glass highlight on each icon */
.ure-iphone__app-icon::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.18) 0%, transparent 100%);
  pointer-events: none;
  border-radius: 16px 16px 0 0;
}

.ure-iphone__app-icon:active {
  transform: scale(0.88);
}

.ure-iphone__app-icon svg,
.ure-iphone__app-icon img {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
}

.ure-iphone__app-label {
  font-size: 11px;
  color: #fff;
  text-align: center;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* ── iOS 26 App Icon Backgrounds — Realistic ── */
.ure-iphone__app--files .ure-iphone__app-icon {
  background: linear-gradient(135deg, #1565C0, #0D47A1);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.ure-iphone__app--chrome .ure-iphone__app-icon {
  background: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.ure-iphone__app-icon--calc {
  background: #1C1C1E !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 0;
}
.ure-iphone__app-icon--calc svg { width: 100%; height: 100%; }
.ure-iphone__app-icon--word {
  background: #185ABD !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 0;
}
.ure-iphone__app-icon--word svg { width: 100%; height: 100%; }
.ure-iphone__app-icon--excel {
  background: #217346 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 0;
}
.ure-iphone__app-icon--excel svg { width: 100%; height: 100%; }
.ure-iphone__app-icon--tips {
  background: #FFCC00 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 0;
}
.ure-iphone__app-icon--tips svg { width: 100%; height: 100%; }
.ure-iphone__app-icon--note {
  background: #FFD54F !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 0;
}
.ure-iphone__app-icon--note svg { width: 100%; height: 100%; }
.ure-iphone__app-icon--zip {
  background: #8E8E93 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 0;
}
.ure-iphone__app-icon--zip svg { width: 100%; height: 100%; }
.ure-iphone__app-icon--pdf {
  background: #fff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 0;
}
.ure-iphone__app-icon--pdf svg { width: 100%; height: 100%; }

/* Remove glass highlight from opaque icons */
.ure-iphone__app-icon--calc::after,
.ure-iphone__app-icon--word::after,
.ure-iphone__app-icon--excel::after,
.ure-iphone__app-icon--tips::after,
.ure-iphone__app-icon--note::after,
.ure-iphone__app-icon--zip::after,
.ure-iphone__app-icon--pdf::after {
  display: none;
}

/* ── iOS 26 Page Dots ── */

.ure-iphone__dots {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 10px 0;
}

.ure-iphone__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  transition: background 0.2s;
}

.ure-iphone__dot.act {
  background: #fff;
}

/* ── iOS 26 Dock — Floating Liquid Glass ── */

.ure-iphone__dock {
  position: relative;
  z-index: 10;
  margin: 0 12px 16px;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding: 10px 16px;
  border-radius: 32px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 0.5px solid rgba(255,255,255,0.15);
  box-shadow:
    0 8px 32px rgba(0,0,0,0.15),
    inset 0 1px 0 rgba(255,255,255,0.12);
}

.ure-iphone__dock-item {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border: 0.5px solid rgba(255,255,255,0.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}

.ure-iphone__dock-item svg {
  width: 28px;
  height: 28px;
  fill: #fff;
  color: #fff;
}

/* iOS Dock item — real app colors */
.ure-iphone__dock-item--phone {
  background: linear-gradient(135deg, #5BF675, #34C759);
}
.ure-iphone__dock-item--safari {
  background: linear-gradient(135deg, #4FC3F7, #2196F3);
}
.ure-iphone__dock-item--messages {
  background: linear-gradient(135deg, #5BF675, #34C759);
}
.ure-iphone__dock-item--mail {
  background: linear-gradient(135deg, #42A5F5, #1E88E5);
}

/* Word toolbar separator */
.ure-mword__sep {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.2);
  margin: 0 6px;
}

.ure-mword__tool--active {
  background: rgba(255,255,255,0.15);
}

/* ── Files App View — iOS 26 Liquid Glass ── */

.ure-iphone__files {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: rgba(6,5,16,0.85);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  display: none;
  flex-direction: column;
  padding-top: 54px;
  transition: transform 0.35s cubic-bezier(.16,1,.3,1);
}

.ure-iphone__files.open {
  display: flex;
  transform: translateX(0);
}

/* Files header removed — search bar is the top element */

/* ── Files Search Bar ── */
.ure-iphone__files-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 16px 8px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.1);
  border-radius: 20px;
  border: none;
}

.ure-iphone__files-search-icon {
  color: rgba(255,255,255,0.4);
  flex-shrink: 0;
}

.ure-iphone__files-search {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 16px;
  letter-spacing: -0.02em;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
}

.ure-iphone__files-search::placeholder {
  color: rgba(255,255,255,0.4);
}

/* Remove webkit search cancel button */
.ure-iphone__files-search::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.ure-iphone__files-list {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 0;
}

.ure-iphone__files-folder {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 0.5px solid rgba(255,255,255,0.04);
}

.ure-iphone__files-folder:active {
  background: rgba(255,255,255,0.06);
}

.ure-iphone__files-folder-icon {
  width: 40px;
  height: 36px;
  flex-shrink: 0;
}

.ure-iphone__files-folder-icon svg {
  width: 100%;
  height: 100%;
}

.ure-iphone__files-folder-name {
  flex: 1;
  font-size: 17px;
  color: #fff;
  letter-spacing: -0.02em;
}

.ure-iphone__files-folder-count {
  font-size: 15px;
  color: rgba(255,255,255,0.35);
}

.ure-iphone__files-folder-arrow {
  color: rgba(255,255,255,0.25);
  font-size: 17px;
  font-weight: 300;
}

.ure-iphone__files-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 20px;
  text-decoration: none;
  color: #fff;
  transition: background 0.15s;
  border-bottom: 0.5px solid rgba(255,255,255,0.04);
}

.ure-iphone__files-item:active {
  background: rgba(255,255,255,0.06);
}

.ure-iphone__files-item-thumb {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
  flex-shrink: 0;
  border: 0.5px solid rgba(255,255,255,0.08);
}

.ure-iphone__files-item-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block;
}

.ure-iphone__files-item-name {
  flex: 1;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.ure-iphone__files-item-ext {
  font-size: 13px;
  color: var(--pk);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ── iOS 26 Animations ── */

@keyframes iosSlideLeft {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}

@keyframes iosSlideRight {
  from { transform: translateX(-30%); }
  to   { transform: translateX(0); }
}

@keyframes iosJiggle {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25%      { transform: rotate(-1.5deg) scale(0.98); }
  75%      { transform: rotate(1.5deg) scale(0.98); }
}

.ure-iphone__app--jiggle {
  animation: iosJiggle 0.25s ease-in-out infinite;
}

.ure-iphone__app--bounce {
  animation: dockBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── iOS 26 Bottom Sheet — Liquid Glass ── */

.ure-iphone__sheet {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: none;
  flex-direction: column;
  justify-content: flex-end;
}

.ure-iphone__sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.35s;
}

.ure-iphone__sheet.open .ure-iphone__sheet-backdrop {
  opacity: 1;
}

.ure-iphone__sheet-content {
  position: relative;
  background: rgba(30,28,40,0.75);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border-radius: 24px 24px 0 0;
  border-top: 0.5px solid rgba(255,255,255,0.15);
  padding: 12px 24px 40px;
  max-height: 60vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(.16,1,.3,1);
  box-shadow: 0 -8px 40px rgba(0,0,0,0.2);
}

.ure-iphone__sheet.open .ure-iphone__sheet-content {
  transform: translateY(0);
}

.ure-iphone__sheet-handle {
  width: 36px;
  height: 5px;
  border-radius: 2.5px;
  background: rgba(255,255,255,0.25);
  margin: 0 auto 16px;
}

.ure-iphone__sheet-body {
  font-size: 15px;
  line-height: 1.7;
  color: #fff;
  letter-spacing: -0.01em;
}

.ure-iphone__sheet-body h3 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.ure-iphone__sheet-body ul {
  margin: 8px 0;
}

.ure-iphone__sheet-body li {
  margin: 6px 0;
}

.ure-iphone__sheet-body p {
  margin: 8px 0;
}

/* ── iOS 26 App Delete Button ── */
.ure-iphone__app {
  position: relative;
}

.ure-iphone__app-delete {
  display: none;
  position: absolute;
  top: -4px;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255,59,48,0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
  z-index: 5;
  cursor: pointer;
  border: 0.5px solid rgba(255,255,255,0.15);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.ure-iphone--editing .ure-iphone__app-delete {
  display: block;
}

.ure-iphone--editing .ure-iphone__app--files .ure-iphone__app-delete,
.ure-iphone--editing .ure-iphone__app--chrome .ure-iphone__app-delete {
  display: none;
}

/* ── iOS 26 Fullscreen App Views — Scale animation ── */
.ure-iphone__appview {
  position: absolute;
  inset: 0;
  z-index: 25;
  background: rgba(6,5,16,0.92);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  display: none;
  flex-direction: column;
  transform: scale(0.88);
  opacity: 0;
  border-radius: 12px;
  transition: transform 0.4s cubic-bezier(.2,.9,.3,1),
              opacity 0.3s ease,
              border-radius 0.4s cubic-bezier(.2,.9,.3,1);
  will-change: transform, opacity;
}

.ure-iphone__appview.open {
  display: flex;
  transform: scale(1);
  opacity: 1;
  border-radius: 0;
  padding-top: 44px; /* clear absolute status bar */
}

/* Calc fullscreen — solid black, no glass */
.ure-iphone__appview--calc {
  background: #000;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Chrome fullscreen — white background for iframe */
.ure-iphone__appview--chrome {
  background: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* ── iOS Home Indicator Bar ── */
.ure-iphone__home-indicator {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0 10px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  /* Larger touch target for swipe gestures on real iOS */
  min-height: 34px;
  touch-action: none;
}

.ure-iphone__home-indicator::after {
  content: '';
  width: 134px;
  height: 5px;
  border-radius: 2.5px;
  background: rgba(255,255,255,0.4);
  transition: background 0.15s;
}

/* Light background apps need dark indicator */
.ure-iphone__appview--phone .ure-iphone__home-indicator::after,
.ure-iphone__appview--messages .ure-iphone__home-indicator::after,
.ure-iphone__appview--mail .ure-iphone__home-indicator::after,
.ure-iphone__appview--excel .ure-iphone__home-indicator::after,
.ure-iphone__appview--word .ure-iphone__home-indicator::after,
.ure-iphone__appview--chrome .ure-iphone__home-indicator::after,
.ure-iphone__appview--safari .ure-iphone__home-indicator::after {
  background: rgba(0,0,0,0.25);
}

/* Legacy — keep for compatibility but no longer used */
.ure-iphone__appview-title {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
}

.ure-iphone__appview-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}

/* ── iOS 26 Mobile Calculator — Real iOS Layout ── */
.ure-mcalc {
  display: flex;
  flex-direction: column;
  flex: 1;
  background: #000 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.ure-mcalc__display {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0 24px 8px;
  font-size: 72px;
  font-weight: 200;
  color: #fff;
  min-height: 80px;
  overflow: hidden;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.ure-mcalc__keys {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 0 12px 24px;
}

.ure-mcalc__key {
  aspect-ratio: 1;
  background: #333 !important;
  color: #fff !important;
  font-size: 26px;
  font-weight: 400;
  padding: 0;
  border: none !important;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.1s;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.ure-mcalc__key:active {
  background: #555 !important;
}

.ure-mcalc__key--fn {
  background: #A5A5A5 !important;
  color: #000 !important;
}

.ure-mcalc__key--fn:active {
  background: #C0C0C0 !important;
}

.ure-mcalc__key--op {
  background: #FF9500 !important;
  color: #fff !important;
}

.ure-mcalc__key--op:active {
  background: #FFB340 !important;
}

.ure-mcalc__key--wide {
  grid-column: span 2;
  aspect-ratio: auto;
  border-radius: 40px;
  padding-left: 28px;
  justify-content: flex-start;
}

/* ── iOS 26 Mobile Word ── */
.ure-mword {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ure-mword__toolbar {
  display: flex;
  gap: 6px;
  padding: 10px 16px;
  background: #2B579A;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  align-items: center;
}

.ure-mword__tool {
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  transition: background 0.15s;
  min-width: 36px;
  text-align: center;
}

.ure-mword__tool:active {
  background: rgba(255,255,255,0.2);
}

.ure-mword__page {
  flex: 1;
  background: #fff;
  color: #333;
  padding: 32px 24px;
  font-family: 'Times New Roman', serif;
  font-size: 15px;
  line-height: 1.8;
  outline: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.ure-mword__page h2 {
  color: #1a1a1a !important;
  margin: 0 0 16px;
  font-size: 20px;
}

.ure-mword__page p {
  margin: 8px 0;
  color: #333 !important;
}

/* ── iOS 26 Mobile Excel — Numbers style ── */
.ure-mexcel {
  display: flex;
  flex-direction: column;
  flex: 1;
  background: #F2F2F7;
}

.ure-mexcel__toolbar {
  display: flex;
  gap: 0;
  padding: 6px 16px;
  background: #F2F2F7;
  flex-shrink: 0;
  border-bottom: 0.5px solid rgba(0,0,0,0.08);
}

.ure-mexcel__tab {
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #8E8E93;
  border-radius: 6px;
  cursor: pointer;
}

.ure-mexcel__tab--active {
  background: #fff;
  color: #000;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.ure-mexcel__formula {
  display: flex;
  gap: 6px;
  padding: 6px 12px;
  background: #fff;
  align-items: center;
  flex-shrink: 0;
  border-bottom: 0.5px solid rgba(0,0,0,0.1);
}

.ure-mexcel__cell-ref {
  background: #F2F2F7;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  color: #333;
  min-width: 30px;
  text-align: center;
  font-weight: 600;
}

.ure-mexcel__fx {
  font-size: 12px;
  font-style: italic;
  color: #8E8E93;
  font-weight: 500;
}

.ure-mexcel__formula-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 4px 4px;
  color: #000;
  font-size: 14px;
  outline: none;
}

.ure-mexcel__scroll {
  flex: 1;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.ure-mexcel__grid {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  color: #000;
  font-size: 14px;
}

.ure-mexcel__grid th {
  background: #F2F2F7;
  padding: 8px 12px;
  border: 0.5px solid #D1D1D6;
  font-weight: 500;
  font-size: 12px;
  color: #8E8E93;
  position: sticky;
  top: 0;
  z-index: 2;
}

.ure-mexcel__corner {
  width: 32px;
  min-width: 32px;
}

.ure-mexcel__grid td {
  border: 0.5px solid #D1D1D6;
  padding: 8px 12px;
  min-width: 80px;
  height: 32px;
  outline: none;
}

.ure-mexcel__grid td:focus {
  outline: 2px solid #007AFF;
  outline-offset: -1px;
  background: #E8F0FE;
}

.ure-mexcel__hdr {
  font-weight: 600;
  background: #F8F8FA;
}

.ure-mexcel__total td {
  border-top: 2px solid #007AFF;
  font-weight: 600;
}

.ure-mexcel__row-num {
  background: #F2F2F7 !important;
  color: #8E8E93;
  text-align: center;
  min-width: 32px !important;
  width: 32px;
  font-size: 12px;
  font-weight: 500;
  padding: 8px 4px !important;
}

/* ── iOS 26 Mobile Chrome — Safari-style bottom bar ── */
.ure-mbrowser {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Bar at BOTTOM like iOS Safari */
.ure-mbrowser__bar {
  order: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 14px;
  background: rgba(245,245,245,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex-shrink: 0;
  border-top: 0.5px solid rgba(0,0,0,0.12);
}

.ure-mbrowser__nav {
  display: flex;
  gap: 4px;
}
.ure-mbrowser__nav svg {
  color: #007AFF;
}

.ure-mbrowser__url {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(0,0,0,0.06);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 14px;
  color: #333;
}

.ure-mbrowser__actions {
  display: flex;
}
.ure-mbrowser__actions svg {
  color: #007AFF;
}

.ure-mbrowser__frame {
  order: 1;
  flex: 1;
  border: none;
  background: #fff;
}

/* ── iOS 26 Mobile PDF Viewer ── */
.ure-mpdf {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ure-mpdf__toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 10px 16px;
  background: rgba(50,50,50,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  flex-shrink: 0;
  border-bottom: 0.5px solid rgba(255,255,255,0.08);
}

.ure-mpdf__viewer {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #525659;
  padding: 20px 16px;
  display: flex;
  justify-content: center;
}

.ure-mpdf__page-sheet {
  background: #fff;
  color: #333;
  width: 100%;
  padding: 48px 28px;
  font-family: 'Times New Roman', serif;
  font-size: 13px;
  line-height: 1.8;
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
  border-radius: 2px;
}

.ure-mpdf__page-sheet h3 {
  color: #1a1a1a !important;
  margin: 0 0 20px;
}

.ure-mpdf__page-sheet p {
  margin: 8px 0;
}

/* ── Safari appview — white bg ── */
.ure-iphone__appview--safari {
  background: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* ── Mobile Phone Dialer ── */
.ure-mphone {
  display: flex;
  flex-direction: column;
  flex: 1;
  background: #F2F2F7;
  padding: 8px 0 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.ure-mphone__number {
  text-align: center;
  font-size: 28px;
  font-weight: 300;
  color: #000 !important;
  min-height: 36px;
  letter-spacing: 0.02em;
  padding: 4px 20px;
  flex-shrink: 0;
}

.ure-mphone__pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 10px 28px;
  flex-shrink: 0;
  max-width: 320px;
  margin: 0 auto;
  width: 100%;
}

.ure-mphone__key {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: none !important;
  background: #D1D1D6 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  max-width: 80px;
  max-height: 80px;
  margin: 0 auto;
}

.ure-mphone__key:active {
  background: #B0B0B5 !important;
}

.ure-mphone__digit {
  font-size: 26px;
  font-weight: 300;
  color: #000 !important;
  line-height: 1;
}

.ure-mphone__letters {
  font-size: 8px;
  font-weight: 600;
  color: #8E8E93 !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  margin-top: 2px;
}

.ure-mphone__actions {
  display: flex;
  justify-content: center;
  padding: 8px 0 12px;
  flex-shrink: 0;
}

.ure-mphone__call-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #34C759 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: none !important;
  box-shadow: 0 2px 8px rgba(52,199,89,0.3);
  transition: transform 0.15s;
  flex-shrink: 0;
}

.ure-mphone__call-btn:active {
  background: #2DA44E !important;
  transform: scale(0.92);
}

.ure-mphone__call-btn svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

/* ── Mobile Messages ── */
.ure-mmsg {
  flex: 1;
  background: #fff;
}

.ure-mmsg__search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 16px;
  padding: 8px 12px;
  background: #F2F2F7;
  border-radius: 10px;
  font-size: 15px;
  color: #8E8E93;
}

.ure-mmsg__thread {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 0.5px solid rgba(0,0,0,0.08);
}

.ure-mmsg__thread:active {
  background: #F2F2F7;
}

.ure-mmsg__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  flex-shrink: 0;
}

.ure-mmsg__info {
  flex: 1;
  min-width: 0;
}

.ure-mmsg__name {
  font-size: 16px;
  font-weight: 600;
  color: #000;
}

.ure-mmsg__preview {
  font-size: 14px;
  color: #8E8E93;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ure-mmsg__time {
  font-size: 14px;
  color: #8E8E93;
  flex-shrink: 0;
}

/* ── Mobile Mail ── */
.ure-mmail {
  flex: 1;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.ure-mmail__header {
  padding: 16px 16px 4px;
  background: #F2F2F7;
}

.ure-mmail__title {
  font-size: 32px;
  font-weight: 700;
  color: #000 !important;
  margin: 0;
  letter-spacing: -0.02em;
}

.ure-mmail__search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 16px 12px;
  padding: 10px 14px;
  background: rgba(118,118,128,0.12);
  border-radius: 20px;
  color: #8E8E93;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.ure-mmail__item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 0.5px solid rgba(0,0,0,0.08);
  align-items: flex-start;
}

.ure-mmail__item:active {
  background: #F2F2F7;
}

.ure-mmail__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

.ure-mmail__item--unread .ure-mmail__dot {
  background: #007AFF;
}

.ure-mmail__content {
  flex: 1;
  min-width: 0;
}

.ure-mmail__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}

.ure-mmail__sender {
  font-size: 16px;
  font-weight: 600;
  color: #000;
}

.ure-mmail__item--unread .ure-mmail__sender {
  font-weight: 700;
}

.ure-mmail__date {
  font-size: 14px;
  color: #8E8E93;
  flex-shrink: 0;
}

.ure-mmail__subject {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 2px;
}

.ure-mmail__excerpt {
  font-size: 14px;
  color: #8E8E93;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Messages/Mail/Phone use light bg */
.ure-iphone__appview--phone,
.ure-iphone__appview--messages,
.ure-iphone__appview--mail {
  background: #F2F2F7;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Word uses white bg */
.ure-iphone__appview--word {
  background: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.ure-iphone__appview--messages .ure-iphone__appview-header,
.ure-iphone__appview--mail .ure-iphone__appview-header,
.ure-iphone__appview--phone .ure-iphone__appview-header {
  background: #F2F2F7;
  border-bottom: 0.5px solid rgba(0,0,0,0.1);
}

.ure-iphone__appview--messages .ure-iphone__appview-title,
.ure-iphone__appview--mail .ure-iphone__appview-title,
.ure-iphone__appview--phone .ure-iphone__appview-title {
  color: #000;
}

.ure-iphone__appview--messages .ure-iphone__appview-back,
.ure-iphone__appview--mail .ure-iphone__appview-back,
.ure-iphone__appview--phone .ure-iphone__appview-back {
  color: #007AFF;
}

/* ── Mobile Single Project — Phone refinements ── */

@media (max-width: 767px) {
  .ure-project__hero {
    min-height: 55vh;
    padding: 36px 20px;
  }

  .ure-project__hero-content h1 {
    font-size: 2rem;
  }

  .ure-project__hero-content p {
    font-size: 1rem;
  }

  .ure-project__info {
    padding: 20px;
    gap: 14px;
  }

  .ure-project__section {
    padding: 40px 16px;
  }

  .ure-project__section-content {
    max-width: 100%;
  }

  .ure-project__section--with-scatter .ure-project__section-content {
    max-width: 100%;
    width: 100%;
    top: 20vh;
    padding: 20px 16px;
    box-sizing: border-box;
  }

  .ure-project__section--with-scatter {
    padding: 0;
  }

  .ure-project__monitor-device {
    width: 95% !important;
  }

  .ure-project__monitor-section {
    padding: 40px 0;
  }

  .ure-project__monitor-header {
    margin-bottom: 32px;
  }

  .ure-project__phone-preview:not(.ure-project__phone-preview--centered) .ure-project__phone-frame {
    width: 160px;
  }

  .ure-project__phone-preview--centered .ure-project__phone-frame {
    width: 200px;
  }

  .ure-project__monitor-urlbar {
    font-size: 10px;
    padding: 4px 8px;
  }

  .ure-project__monitor-toolbar {
    padding: 8px 10px;
    gap: 8px;
  }

  .ure-project__gallery {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ure-project__metrics {
    grid-template-columns: 1fr !important;
  }

  /* ── Horizontal Gallery: phone sizing ── */
  .ure-project__hgallery-track {
    gap: 12px;
    padding: 0 16px;
  }

  .ure-project__hgallery-item {
    width: 85vw;
    height: 40vh;
  }

  .ure-project__section-label[data-number]::before {
    font-size: 5rem;
  }

  .ure-project__monitor-number[data-number]::before {
    font-size: 5rem;
  }

  .ure-project__nav-link {
    padding: 12px 16px;
    gap: 12px;
  }

  .ure-project__nav-thumb {
    width: 38px;
    height: 38px;
  }

  .ure-project__nav-title {
    font-size: 13px;
  }

  .ure-project__live-btn {
    padding: 12px 24px;
    font-size: 13px;
  }
}


/* ═══════════════════════════════════════════
   SPOTLIGHT — Onboarding Guide
   ═══════════════════════════════════════════ */

.ure-spotlight {
  position: absolute;
  inset: 0;
  z-index: 200;
  pointer-events: auto;
  cursor: pointer;
  opacity: 0;
  animation: spotFadeIn 0.8s ease 0.3s forwards;
}

@keyframes spotFadeIn {
  to { opacity: 1; }
}

/* Circle hole — box-shadow creates the dark overlay */
.ure-spotlight__ring {
  position: absolute;
  border-radius: 50%;
  box-shadow: 0 0 0 200vmax rgba(3,2,8,0.78);
  pointer-events: none;
}

/* Pulse ring 1 */
.ure-spotlight__ring::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(234,136,222,0.7);
  animation: spotPulse 2s ease-in-out infinite;
}

/* Pulse ring 2 (offset) */
.ure-spotlight__ring::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(234,136,222,0.4);
  animation: spotPulse 2s ease-in-out 0.6s infinite;
}

@keyframes spotPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50%      { transform: scale(1.3); opacity: 0; }
}

/* Tooltip */
.ure-spotlight__tip {
  position: absolute;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  animation: spotTipIn 0.6s ease 0.8s forwards;
}

@keyframes spotTipIn {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.ure-spotlight__title {
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.ure-spotlight__sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-top: 6px;
}

/* Bouncing hand pointer */
.ure-spotlight__hand {
  display: block;
  margin: 12px auto 0;
  animation: spotHandBounce 1.4s ease-in-out infinite;
}

@keyframes spotHandBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-6px) scale(1.05); }
}

/* Dismiss */
.ure-spotlight--out {
  animation: spotFadeOut 0.45s ease forwards;
  pointer-events: none;
}

@keyframes spotFadeOut {
  to { opacity: 0; }
}

/* Mobile + tablet adjustments */
@media (max-width: 1024px) {
  .ure-spotlight {
    position: absolute;
    z-index: 40;
  }
  .ure-spotlight__title {
    font-size: 16px;
  }
  .ure-spotlight__sub {
    font-size: 12px;
  }
  .ure-spotlight__hand {
    width: 28px;
    height: 28px;
  }
}
