/* ========================
   Icons Container & Icons Styles
   ======================== */

.icons-container {
  display: grid;
  grid-template-columns: repeat(4, 88px);
  grid-auto-rows: min-content;
  gap: 6px 16px;
  justify-content: center;
  padding: 10px;
  width: fit-content;
  margin: 3px auto;
  user-select: none;

  /* Glassmorphism Effect */
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.2),
    inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  user-select: none;
  height: auto;
  min-height: 115px;
}

body.is-admin .icon-item {
  min-height: 140px;
}

.ios-icon {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  border-radius: 18px;
  background: #ccc center/cover no-repeat;
  box-shadow:
    0 8px 8px rgba(0, 0, 0, 0.6),
    0 5px 10px rgba(0, 0, 0, 0.3),
    inset 0 2px 3px rgba(255, 255, 255, 0.6),
    inset 0 -2px 5px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
  user-select: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 1;
}

@media (hover: hover) {
  .icon-item:hover .ios-icon {
    transform: translateY(-8px) scale(1.05);
    box-shadow:
      0 25px 50px rgba(0, 0, 0, 0.5),
      0 10px 20px rgba(0, 0, 0, 0.3),
      inset 0 2px 3px rgba(255, 255, 255, 0.8);
  }
}

/* --- Glass Reflection Layer --- */
.ios-icon::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.35) 0%,
    rgba(255, 255, 255, 0.1) 100%
  );
  border-radius: 18px 18px 50% 50% / 18px 18px 15% 15%;
  z-index: 2;
  pointer-events: none;
}

/* --- Diagonal Light Streak --- */
.ios-icon::after {
  content: "";
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: linear-gradient(
    45deg,
    transparent 45%,
    rgba(255, 255, 254, 0.3) 50%,
    transparent 55%
  );
  transform: rotate(-15deg);
  z-index: 3;
  pointer-events: none;
  transition: all 0.6s ease;
}

@media (hover: hover) {
  .ios-icon:hover::after {
    top: -50%;
    left: -50%;
    background: linear-gradient(
      45deg,
      transparent 40%,
      rgba(255, 255, 255, 0.6) 50%,
      transparent 60%
    );
  }
}

/* ========================
   Introduction Services Grid
   ======================== */

.intro-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin: 20px 0;
}

@media screen and (max-width: 600px) {
  .intro-services-grid {
    grid-template-columns: repeat(2, 1fr); /* 2x2 grid on mobile */
    gap: 12px;
  }
  .intro-service-card {
    padding: 10px 5px;
  }
  .service-icon {
    font-size: 24px;
    margin-bottom: 5px;
  }
  .service-title {
    font-size: 10px;
    line-height: 1.2;
  }
}

.intro-service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 20px;
  text-decoration: none;
  color: white;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.intro-service-card:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  border-color: #00ffff;
}

.service-icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.service-title {
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.icon-label {
  margin-top: 5px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  user-select: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* ========================
   Gallery & Lightbox
   ======================== */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 4px;
  margin: auto;
  max-width: 1000px;
  box-sizing: border-box;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100% !important;
  /* Force full width to override .icon-item mobile styles */
  min-height: auto !important;
  /* Reset min-height to fit content */
  cursor: pointer;
  position: relative;
  /* For animation positioning */
}

.gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
  cursor: pointer;
  user-select: none;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.3),
    0 4px 6px rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

@media (hover: hover) {
  .gallery img:hover {
    transform: translateY(-10px) scale(1.03) rotate(1deg);
    box-shadow:
      0 25px 45px rgba(0, 0, 0, 0.4),
      0 15px 15px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    z-index: 2;
  }

  .gallery img:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
  }
}

/* --- Product Showcase Images Optimization --- */
.showcase-img {
  border-radius: 16px;
  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.4),
    0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
  display: block;
  margin: 0 auto;
}

@media (hover: hover) {
  .showcase-img:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
  }
}

/* ===== Lightbox ===== */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lightbox.active {
  display: flex;
}

.lightbox img,
.lightbox video {
  max-width: 95%;
  max-height: 90vh;
  object-fit: contain;
  user-select: none;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  border-radius: 8px;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  color: white;
  font-size: 32px;
  line-height: 44px;
  text-align: center;
  cursor: pointer;
  user-select: none;
}

/* Navigation arrows */
.nav-group {
  position: absolute;
  right: 20px;
  bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 10;
}

.nav-btn,
.nav-photo-L,
.nav-photo-R {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  color: white;
  font-size: 36px;
  line-height: 56px;
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition: all 0.3s ease;
}

.nav-btn:hover,
.nav-photo-L:hover,
.nav-photo-R:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

/* ========================
   VIP PC Section Styles
   ======================== */

.comparison-chart-container {
  width: 100%;
  height: 400px;
  margin: 20px 0;
}

.pc-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin: 25px 0;
}

@media screen and (max-width: 600px) {
  .pc-feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-card h4 {
  margin: 0 0 10px 0;
  font-size: 20px;
}

.feature-card p {
  margin: 0;
  font-size: 16px;
  opacity: 0.9;
}

.pc-size-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.pc-size-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  padding: 25px;
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  position: relative;
  transition: all 0.3s ease;
}

.pc-size-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: #00d2ff;
}

.save-badge {
  position: absolute;
  top: -10px;
  right: 20px;
  background: linear-gradient(135deg, #ff6b6b, #ff8e53);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 14px;
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.5);
}

.price-tag {
  font-size: 36px;
  font-weight: bold;
  color: #00ff00;
  margin: 10px 0;
  text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.spec-group {
  display: grid;
  gap: 15px;
  margin: 20px 0;
}

.spec-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 15px;
  border-radius: 10px;
  border-left: 4px solid #00d2ff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.spec-label {
  font-weight: bold;
  color: #00d2ff;
  font-size: 18px;
}

.spec-value {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
}

.policy-card {
  background: rgba(0, 0, 0, 0.3);
  padding: 25px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.payment-badge {
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}

.payment-badge:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.policy-notice {
  margin-top: 20px;
  padding: 15px;
  background: rgba(255, 215, 0, 0.1);
  border-left: 3px solid #ffd700;
  border-radius: 5px;
  font-size: 16px;
}

/* ========================
   Dock Styles (Classic OS X 3D Glass Shelf)
   ======================== */

.dock-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  padding-bottom: 20px;
  background: transparent;
  z-index: 9998;
  pointer-events: none;
  perspective: 800px;
}

.dock-container > * {
  pointer-events: auto;
}

.dock {
  display: flex;
  align-items: flex-end;
  gap: 0;
  /* Remove gap, handle spacing in items */
  padding: 0 40px 10px 40px;
  position: relative;
  /* Determine Dock Width/Shape */
  transform-style: preserve-3d;
}

/* The 3D Glass Shelf Platform */
.dock::before {
  content: "";
  position: absolute;
  bottom: -14px;
  left: 0;
  right: 0;
  height: 60px;
  /* Depth of the shelf */

  /* Milky White Frosted Glass Gradient */
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.9) 50%,
    rgba(255, 255, 255, 0.8) 100%
  );

  /* 3D Perspective Shape */
  transform-origin: bottom center;
  transform: rotateX(60deg);
  /* Adjusted perspective */

  /* Aluminum Thickness Effect via Border & Shadow */
  border-bottom: 6px solid #b0b0b0;
  /* The aluminum thickness */
  border-radius: 12px;
  /* 8px Corners */

  /* Glossy reflection/Highlight on top edge */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 15px 20px rgba(0, 0, 0, 0.3);
  /* Drop shadow */

  z-index: -1;
}

/* Remove old reflection layer if conflicting, or adjust */
.dock::after {
  display: none;
}

.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  cursor: pointer;
  margin-bottom: -14px;
  top: 0;
  transition: none !important;
  position: relative;
  transform-origin: bottom center;
}

/* Remove Scale on Hover & Layout */
.dock-item:hover {
  transform: none;
  margin-bottom: -14px;
  z-index: 10;
}

.dock-icon {
  font-size: 40px;
  /* Strong Reflection */
  -webkit-box-reflect: below 2px
    linear-gradient(to bottom, transparent 70%, rgba(255, 255, 255, 0.5));
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
  transition: none;
}

.dock-label {
  display: none;
}

/* Active Open Indicator (Dot) at Edge */
.dock-item::after {
  content: "";
  width: 5px;
  height: 5px;
  background: transparent;
  box-shadow: none;
  position: absolute;
  bottom: 2px;
  /* Above the dock shelf platform */
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  border-radius: 50%;
  transition: none;
  z-index: 999;
  /* Very high Z-index to ensure visibility */
  pointer-events: none;
}

.dock-item.active::after {
  background: #00d2ff !important;
  box-shadow: 0 0 8px #00d2ff !important;
  opacity: 1 !important;
}

/* Ensure items don't clip the dot */
.dock-item {
  overflow: visible !important;
  transform-style: preserve-3d;
}

/* ========================
   Details/Summary Styles
   ======================== */

details {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 12px;
  padding: 15px;
  margin: 15px 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 8px 32px 0 rgba(0, 0, 0, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

details[open] {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

summary {
  cursor: pointer;
  font-weight: bold;
  font-size: 20px;
  color: #00ffff;
  padding: 10px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

summary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

details[open] summary {
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Summary as Icon Item with Counter */
summary.icon-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: center !important;
  /* Center the content */
  gap: 15px;
  /* Space between text and counter */
  list-style: none;
  /* Remove default marker */
  min-height: auto !important;
  /* Override global .icon-item min-height */
  width: 100% !important;
  /* Ensure full width */
}

summary.icon-item::-webkit-details-marker {
  display: none !important;
}

summary.icon-item::marker {
  display: none !important;
  content: "" !important;
}

summary.icon-item {
  list-style: none !important;
}

summary.icon-item .click-count {
  display: inline-block;
  margin-top: 0 !important;
  font-family: "Digital Numbers", "Orbitron", sans-serif !important;
  font-size: 18px;
  background: #000000 !important;
  color: #00f2ff !important;
  -webkit-text-fill-color: #00f2ff !important;
  /* Ensure it's not transparent */
  padding: 2px 10px;
  border-radius: 8px;
  border: 1px solid #00f2ff;
  /* Sharper border */
  box-shadow:
    inset 0 0 5px rgba(0, 242, 255, 0.4),
    0 0 10px rgba(0, 0, 0, 0.8) !important;
  text-shadow: 0 0 5px rgba(0, 242, 255, 0.9) !important;
  text-align: center;
  letter-spacing: 2px;
  font-weight: normal;
  opacity: 1 !important;
}

/* ========================
   Introduction Bio Grid (New Visual Layout)
   ======================== */

.intro-bio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 30px;
  width: 100%;
  box-sizing: border-box;
}

.intro-bio-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  height: 320px;
  /* Fixed height for consistency */
}

.intro-bio-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
  border-color: rgba(0, 255, 255, 0.4);
}

.intro-bio-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #00ffff, #ff00ff);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 2;
}

.intro-bio-card:hover::before {
  opacity: 1;
}

.bio-header {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  /* Prevent header from shrinking */
}

.bio-icon-wrapper {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.bio-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.bio-title span {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 2px;
}

.bio-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  /* Take up remaining space */
  overflow-y: auto;
  /* Enable vertical scrolling */
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  /* Smooth scrolling for iOS */
  padding-right: 5px;
  /* Space for scrollbar */
}

.bio-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
}

.bio-row-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
  opacity: 0.8;
}

.tag-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bio-tag {
  background: rgba(0, 255, 255, 0.1);
  color: #e0ffff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  border: 1px solid rgba(0, 255, 255, 0.2);
  transition: all 0.2s;
  user-select: none;
  cursor: default;
}

.bio-tag:hover {
  background: rgba(0, 255, 255, 0.25);
  border-color: rgba(0, 255, 255, 0.5);
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 255, 255, 0.2);
}

/* Color variations for tags based on category */
.personality-tag {
  background: rgba(255, 105, 180, 0.1);
  color: #ffe0f0;
  border-color: rgba(255, 105, 180, 0.2);
}

.personality-tag:hover {
  background: rgba(255, 105, 180, 0.25);
  border-color: rgba(255, 105, 180, 0.5);
  box-shadow: 0 2px 8px rgba(255, 105, 180, 0.2);
}

.hobby-tag {
  background: rgba(255, 215, 0, 0.1);
  color: #fffacd;
  border-color: rgba(255, 215, 0, 0.2);
}

.hobby-tag:hover {
  background: rgba(255, 215, 0, 0.25);
  border-color: rgba(255, 215, 0, 0.5);
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.2);
}

/* ========================
   Responsive Design
   ======================== */

@media screen and (max-width: 480px) {
  .intro-bio-grid {
    grid-template-columns: 1fr;
  }

  .bio-row,
  .bio-row div,
  .bio-row span {
    font-size: 18px !important;
  }

  .bio-tag {
    font-size: 16px;
    /* Slightly smaller for tags to fit better, but still much larger than before */
    padding: 8px 16px;
  }

  .bio-title {
    font-size: 22px;
  }

  .bio-title span {
    font-size: 16px;
  }

  .bio-content div[style*="font-size: 14px"] {
    font-size: 16px !important;
  }

  #skills-card {
    height: auto !important;
  }

  #skills-card .bio-content {
    overflow: visible !important;
  }

  .icons-container {
    grid-template-columns: repeat(4, 72px);
    gap: 8px 20px;
    padding: 10px 12px 5px 12px;
  }

  .ios-icon {
    width: 70px;
    height: 70px;
  }

  .icon-label {
    font-size: 12px;
    width: 72px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .icon-item {
    min-height: 95px;
    width: 72px;
  }

  body.is-admin .icon-item {
    min-height: 140px;
  }

  .section {
    padding: 15px 5px !important;
  }

  .dock {
    gap: 5px;
    padding: 8px 10px;
  }

  .dock-item {
    min-width: 50px;
    padding: 5px;
  }

  .dock-icon {
    font-size: 36px;
  }

  .dock-label {
    font-size: 9px;
  }

  .spec-value {
    text-align: right;
    flex: 1;
    width: 100%;
    margin-top: 5px;
  }

  /* Keep gallery as 4 columns even on mobile */
  .gallery {
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
  }

  .gallery .icon-label {
    font-size: 10px; /* Smaller font on mobile */
  }

  .gallery img {
    border-radius: 8px;
  }
}

/* ========================
   Walking Robot on Dock (Mobile Only)
   ======================== */
.dock-robot-wrapper {
  position: absolute;
  bottom: 85px;
  /* Sits on top of the dock */
  left: 0;
  width: 50px;
  height: 50px;
  z-index: 9990;
  /* Behind tooltip/modals but above dock items if needed, or non-interfering */
  pointer-events: none;
  display: none;
  /* Hidden on desktop */
  opacity: 0.9;
  filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.3));
}

.dock-robot {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: robotBounce 1s infinite alternate ease-in-out;
}

@keyframes robotBounce {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-5px);
  }
}

/* Walking Animation on the container */
@keyframes dockWalkPath {
  0% {
    left: 5%;
    transform: scaleX(1);
  }

  45% {
    left: 85%;
    transform: scaleX(1);
  }

  50% {
    left: 85%;
    transform: scaleX(-1);
  }

  95% {
    left: 5%;
    transform: scaleX(-1);
  }

  100% {
    left: 5%;
    transform: scaleX(1);
  }
}

@media screen and (max-width: 1024px) {
  .dock-robot-wrapper {
    display: block;
    animation: dockWalkPath 24s linear infinite;
  }
}
@media screen and (max-width: 480px) {
  .ios-icon-path-active {
    animation: dockWalkPath 24s linear infinite;
  }
}

/* Admin Counter Visibility Control (Icons) */
.click-count {
    display: none !important;
}

body.is-admin .click-count {
    display: inline-block !important;
}

/* Label Marquee Styles */
.icon-label.scrolling-label {
    text-align: left !important;
    text-overflow: clip !important;
    padding-left: 5px;
    padding-right: 5px;
    display: block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
}

.icon-label.scrolling-label .marquee-inner {
    display: inline-block;
    animation: label-marquee var(--duration, 6s) ease-in-out infinite alternate;
}

@keyframes label-marquee {
    0% { transform: translateX(0); }
    10% { transform: translateX(0); }
    90% { transform: translateX(var(--scroll-dist)); }
    100% { transform: translateX(var(--scroll-dist)); }
}
