/* ==========================================================================
   Spac2 - Main Design System & UI Styles
   Path: /data/css/main.css
   Optimized for Multi-Device & Mobile-First Performance
   ========================================================================== */

/* 1. Root Variables & Reset */
:root {
  --bg-body: #000000;
  --bg-header-pill: rgba(20, 23, 30, 0.65);
  --bg-btn-icon: rgba(255, 255, 255, 0.08);
  --bg-btn-icon-hover: rgba(255, 255, 255, 0.15);
  --bg-btn-icon-active: rgba(255, 255, 255, 0.05);
  --border-header: rgba(255, 255, 255, 0.12);
  --border-btn: rgba(255, 255, 255, 0.1);
  --border-btn-hover: rgba(255, 255, 255, 0.25);
  --text-primary: #ffffff;
  --text-secondary: #9ea3b0;
  --text-muted: #6b7280;
  --header-max-width: 1440px;
  --radius-header: 9999px;
  --radius-squircle: 22px;
  --radius-round: 50%;
  --transition: all 0.26s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: transform 0.32s cubic-bezier(0.34, 1.45, 0.64, 1), box-shadow 0.26s ease, filter 0.26s ease, border-color 0.26s ease;
  --accent-primary: #ffffff;
  --accent-glow: rgba(255, 255, 255, 0.25);

  /* Wallpaper System Variables */
  --wallpaper-dim: 0.20;
  --wallpaper-blur: 0px;
  --wallpaper-bg-image: radial-gradient(ellipse at 50% 15%, #1c202a 0%, #0c0d11 65%, #050608 100%);
  --wallpaper-bg-color: #000000;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  background-color: #000000;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

html,
body {
  width: 100%;
  min-height: 100%;
  color: var(--text-primary);
  font-family: 'Outfit', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Hide scrollbars globally across Firefox, IE & Edge */
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

/* Hide scrollbars globally for Chrome, Safari, WebKit, iOS, Android */
html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

* {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  background-color: transparent !important;
}

/* ==========================================================================
   2. Wallpaper Desktop Layer (Anti-Bleed & GPU Pipeline)
   ========================================================================== */
.home-wallpaper-layer {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.home-wallpaper-bg {
  position: absolute;
  inset: -24px;
  width: calc(100% + 48px);
  height: calc(100% + 48px);
  background-image: var(--wallpaper-bg-image);
  background-color: var(--wallpaper-bg-color, #000000);
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  filter: blur(var(--wallpaper-blur, 0px));
  -webkit-filter: blur(var(--wallpaper-blur, 0px));
  transform: scale(1.02);
  transition: background-image 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.35s ease, filter 0.2s ease;
  will-change: transform, filter;
}

.home-wallpaper-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, var(--wallpaper-dim, 0.20));
  pointer-events: none;
  transition: background 0.2s ease;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 10;
}

/* ==========================================================================
   3. Top Header Layout (Wide OS Navigation & Sub-Nav Bar)
   ========================================================================== */
.site-header {
  width: 100%;
  max-width: var(--header-max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: max(16px, env(safe-area-inset-top));
  padding-bottom: 8px;
  padding-left: max(18px, env(safe-area-inset-left));
  padding-right: max(18px, env(safe-area-inset-right));
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  pointer-events: none;
  transition: gap 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.sub-nav-collapsed {
  gap: 0;
}

/* Header Capsule / Main Wide Bar */
.header-pill {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-header-pill);
  border: 1px solid var(--border-header);
  border-radius: var(--radius-header);
  padding: 10px 16px;
  min-height: 68px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(36px) saturate(180%);
  -webkit-backdrop-filter: blur(36px) saturate(180%);
  user-select: none;
  position: relative;
  z-index: 2;
  pointer-events: auto;
  transition: background 0.25s ease,
              box-shadow 0.25s ease,
              border-color 0.25s ease,
              transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-pill.header-scrolling-compact {
  background: rgba(14, 16, 22, 0.88);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.18);
}

/* Header Left & Right Groups */
.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Icon Buttons with Optimal Touch Targets */
.header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  background: var(--bg-btn-icon);
  border: 1px solid var(--border-btn);
  border-radius: 9999px;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0;
  outline: none;
  text-decoration: none;
  position: relative;
  transition: var(--transition);
  user-select: none;
  touch-action: manipulation;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-btn:hover {
  background: var(--bg-btn-icon-hover);
  border-color: var(--border-btn-hover);
  transform: translateY(-1px);
}

.header-btn:active {
  transform: scale(0.94);
  background: var(--bg-btn-icon-active);
}

.header-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Brand Capsule Button with Logo + Name */
.header-btn.brand-capsule-btn {
  width: auto;
  min-width: unset;
  height: 48px;
  padding: 0 18px 0 8px;
  gap: 10px;
  border-radius: 9999px;
  text-decoration: none;
  background: var(--bg-btn-icon);
  border: 1px solid var(--border-btn);
}

.brand-capsule-img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 11px;
}

.brand-capsule-text {
  font-size: 16.5px;
  font-weight: 750;
  color: #ffffff;
  letter-spacing: -0.2px;
}

/* Avatar Button */
.header-btn.avatar-btn {
  border-radius: 9999px;
  overflow: hidden;
  padding: 2px;
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--bg-btn-icon);
}

.header-btn.avatar-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9999px;
}

.header-btn.avatar-btn .avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(145deg, #2c303a, #181a1f);
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-btn.avatar-btn .avatar-placeholder svg {
  width: 22px;
  height: 22px;
  stroke: #cbd0df;
}

/* Sub-Navigation Quick Pills Bar */
.sub-nav-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  pointer-events: auto;
  max-height: 54px;
  opacity: 1;
  transform: translateY(0) scale(1);
  transform-origin: center top;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.25s ease,
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              margin 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity, max-height;
}

.site-header.sub-nav-collapsed .sub-nav-bar,
.sub-nav-bar.sub-nav-hidden {
  max-height: 0;
  opacity: 0;
  transform: translateY(-20px) scale(0.94);
  pointer-events: none;
  margin-top: -12px;
  overflow: hidden;
}

.sub-nav-scroll {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow-x: auto;
  max-width: 100%;
  padding: 2px 4px 4px 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 990px) {
  .sub-nav-scroll {
    justify-content: flex-start;
  }
}

.sub-nav-scroll::-webkit-scrollbar {
  display: none;
}

.sub-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 15px;
  background: rgba(20, 23, 30, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: var(--transition);
  cursor: pointer;
  touch-action: manipulation;
  font-family: inherit;
  outline: none;
  user-select: none;
}

.sub-nav-pill svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 2;
  flex-shrink: 0;
}

.sub-nav-pill:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
  transform: translateY(-1px);
}

.sub-nav-pill:active {
  transform: scale(0.96);
}

.sub-nav-pill.active {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   4. Main Container & Dynamic Sections (Search, Ecosystem, Tools)
   ========================================================================== */
main.main-container {
  width: 100%;
  max-width: var(--header-max-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: calc(max(16px, env(safe-area-inset-top)) + 152px);
  padding-bottom: clamp(36px, 6vh, 60px);
  padding-left: max(18px, env(safe-area-inset-left));
  padding-right: max(18px, env(safe-area-inset-right));
  gap: 36px;
}

.main-content-flow {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(28px, 5vh, 48px);
}

.home-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* Frosted Capsule Section Badges with H2 */
.section-pill-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 20px;
  background: rgba(30, 26, 22, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  margin-bottom: clamp(16px, 3vh, 24px);
  user-select: none;
}

.section-pill-badge h2 {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.2px;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   4.1 Search Omnibar Section
   ========================================================================== */
/* ==========================================================================
   4.1 Search Omnibar Section (Ultra-Premium Glassmorphism & Halo Glow)
   ========================================================================== */
.search-section {
  width: 100%;
  max-width: 860px;
}

.search-bar-container {
  width: 100%;
  position: relative;
}

.search-bar-container::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 9999px;
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.01) 60%, transparent 80%);
  filter: blur(16px);
  opacity: 0.35;
  pointer-events: none;
  transition: opacity 0.35s ease, filter 0.35s ease;
  z-index: 0;
}

.search-bar-container:focus-within::before {
  opacity: 0.65;
  filter: blur(22px);
}

.search-form {
  width: 100%;
  position: relative;
  z-index: 1;
}

.search-input-wrapper {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  height: 60px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  padding: 0 96px 0 24px;
  color: #ffffff;
  font-size: 16px;
  font-family: inherit;
  font-weight: 500;
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  outline: none;
  transition: all 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.55);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.1px;
}

.search-input:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.search-input:focus {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.65), 
              0 0 0 3px rgba(255, 255, 255, 0.10),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

/* Quick Discovery Tags Cloud (Spacious Filter Pills) */
.search-tags-container {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 0 4px;
  overflow: hidden;
}

.search-tags-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  white-space: nowrap;
  user-select: none;
}

.search-tags-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 6px 2px;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.search-tags-scroll::-webkit-scrollbar {
  display: none !important;
}

.search-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  height: 34px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.search-tag-chip .tag-emoji {
  font-size: 13px;
  line-height: 1;
}

.search-tag-chip:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.search-tag-chip:active {
  transform: scale(0.94);
}

/* Clear Button */
.search-clear-btn {
  position: absolute;
  right: 56px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
  z-index: 2;
}

.search-clear-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: scale(1.08);
}

.search-clear-btn:active {
  transform: scale(0.92);
}

.search-clear-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

/* Submit Circular Button */
.search-submit-btn {
  position: absolute;
  right: 7px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  color: #000000;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  z-index: 2;
}

.search-submit-btn svg {
  width: 18px;
  height: 18px;
  stroke: #000000;
  stroke-width: 2.4;
  transition: transform 0.2s ease;
}

.search-submit-btn:hover {
  background: #f8fafc;
  transform: scale(1.06);
  box-shadow: 0 6px 24px rgba(255, 255, 255, 0.5);
}

.search-submit-btn:hover svg {
  transform: scale(1.08);
}

.search-submit-btn:active {
  transform: scale(0.92);
}

/* Live Search Suggestions Dropdown (Acrylic Glassmorphism) */
.search-suggestions-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: rgba(16, 19, 27, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  padding: 8px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(40px) saturate(190%);
  -webkit-backdrop-filter: blur(40px) saturate(190%);
  z-index: 100;
  max-height: 360px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: dropdownFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 16px;
  color: #ffffff;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.suggestion-item:hover,
.suggestion-item.active {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateX(4px);
}

.suggestion-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.suggestion-icon svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
}

.suggestion-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.suggestion-title {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggestion-sub {
  font-size: 11.5px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggestion-item:hover,
.suggestion-item.active {
  background: rgba(255, 255, 255, 0.08);
}

.suggestion-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.suggestion-icon svg {
  width: 15px;
  height: 15px;
  stroke: #818cf8;
}

.suggestion-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.suggestion-title {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

.suggestion-sub {
  font-size: 11.5px;
  color: var(--text-secondary);
}

/* ==========================================================================
   4.2 Main Ecosystem Apps Grid
   ========================================================================== */
.ecosystem-apps-grid {
  width: 100%;
  max-width: 1020px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: clamp(16px, 2.5vw, 26px);
  justify-items: center;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .ecosystem-apps-grid {
    grid-template-columns: repeat(8, 1fr);
  }
}

.app-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  max-width: 110px;
  user-select: none;
  touch-action: manipulation;
}

.app-card:hover {
  transform: translateY(-5px);
}

.app-card:active {
  transform: scale(0.95);
}

.app-icon-squircle {
  width: clamp(74px, 13.5vw, 86px);
  height: clamp(74px, 13.5vw, 86px);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: var(--transition-spring);
  will-change: transform, box-shadow;
}

.app-icon-squircle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

.app-card:hover .app-icon-squircle {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6), 0 0 24px rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.32);
  transform: scale(1.04);
}

/* Distinct App Icon Styling */
.icon-spac2 {
  background: #ffffff;
  color: #000000;
}

.icon-spac2 .brand-badge-text {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.8px;
  color: #000000;
}

.icon-chat {
  background: #111216;
  color: #ffffff;
}

.icon-chat svg {
  width: 38px;
  height: 38px;
  fill: #ffffff;
}

.icon-workspace {
  background: #ffffff;
}

.workspace-badge-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.workspace-badge-inner .w-letter {
  font-size: 26px;
  font-weight: 900;
  color: #000000;
  background: #000000;
  color: #ffffff;
  padding: 2px 7px;
  border-radius: 6px;
}

.workspace-badge-inner .sub-label {
  font-size: 8.5px;
  font-weight: 800;
  color: #000000;
  margin-top: 3px;
  letter-spacing: -0.3px;
}

.icon-design {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #38bdf8;
}

.icon-design svg {
  width: 32px;
  height: 32px;
  stroke: #38bdf8;
  filter: drop-shadow(0 2px 8px rgba(56, 189, 248, 0.4));
}

.icon-music {
  background: linear-gradient(145deg, #ffffff, #f1f5f9);
  color: #eab308;
}

.icon-music svg {
  width: 36px;
  height: 36px;
  fill: #eab308;
  filter: drop-shadow(0 2px 6px rgba(234, 179, 8, 0.3));
}

.icon-appcenter {
  background: linear-gradient(145deg, #ffffff, #e2e8f0);
  color: #2563eb;
}

.icon-appcenter svg {
  width: 36px;
  height: 36px;
  fill: #2563eb;
  filter: drop-shadow(0 2px 6px rgba(37, 99, 235, 0.3));
}

.icon-game {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #ffffff;
}

.icon-game svg {
  width: 36px;
  height: 36px;
  fill: #ffffff;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.icon-blog {
  background: #ffffff;
}

.blog-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.blog-tag {
  font-size: 10px;
  font-weight: 800;
  color: #ef4444;
  letter-spacing: 0.5px;
}

.blog-mock-lines {
  width: 32px;
  height: 18px;
  background: linear-gradient(180deg, #f87171 0%, #fca5a5 100%);
  border-radius: 4px;
}

.app-title-text {
  font-size: 12.5px;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
  letter-spacing: -0.1px;
}

/* ==========================================================================
   4.2a Popular / Main Apps Grid (Text2 Ecosystem)
   ========================================================================== */
.popular-apps-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-apps-grid {
  width: 100%;
  max-width: 1020px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: clamp(16px, 2.5vw, 26px) clamp(10px, 2vw, 22px);
  justify-items: center;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .main-apps-grid {
    grid-template-columns: repeat(auto-fill, minmax(98px, 1fr));
  }
}

.icon.main-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1), filter 0.26s ease;
  width: 100%;
  max-width: 104px;
  user-select: none;
  touch-action: manipulation;
}

.icon.main-app:hover {
  transform: translateY(-5px);
}

.icon.main-app:active {
  transform: scale(0.95);
}

.icon.main-app img {
  width: clamp(70px, 13.5vw, 84px);
  height: clamp(70px, 13.5vw, 84px);
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  transition: var(--transition-spring);
  will-change: transform, box-shadow;
}

.icon.main-app:hover img {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6), 0 0 24px rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.32);
  transform: scale(1.04);
}

.icon.main-app p {
  font-size: clamp(12px, 2.4vw, 13px);
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  text-align: center;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
  letter-spacing: -0.1px;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  transition: color 0.2s ease;
}

.icon.main-app:hover p {
  color: #60a5fa;
}

/* ==========================================================================
   4.2b All Apps Banner Showcase (Explore 50+ Web Apps)
   ========================================================================== */
.all-apps-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-pill-badge.pill-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.section-pill-badge.pill-link:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.pill-arrow {
  width: 14px;
  height: 14px;
  stroke: var(--text-secondary);
  transition: transform 0.2s ease, stroke 0.2s ease;
}

.section-pill-badge.pill-link:hover .pill-arrow {
  stroke: #ffffff;
  transform: translateX(3px);
}

.all-apps-banner-card {
  width: 100%;
  max-width: 980px;
  background: rgba(18, 20, 26, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 28px;
  padding: 34px 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: var(--transition);
}

.all-apps-banner-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.all-apps-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 440px;
  gap: 12px;
}

.app-ecosystem-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 11px;
  font-weight: 700;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.app-ecosystem-tag svg {
  width: 13px;
  height: 13px;
  stroke: #94a3b8;
}

.all-apps-heading {
  font-size: clamp(22px, 3.2vw, 28px);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  margin: 0;
  line-height: 1.25;
}

.all-apps-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

.open-app-center-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 10px 20px;
  border-radius: 9999px;
  background: #ffffff;
  color: #000000;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
  transition: var(--transition);
  touch-action: manipulation;
}

.open-app-center-btn svg {
  width: 15px;
  height: 15px;
  stroke: #000000;
  transition: transform 0.2s ease;
}

.open-app-center-btn:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.35);
}

.open-app-center-btn:hover svg {
  transform: translateX(3px);
}

.open-app-center-btn:active {
  transform: scale(0.96);
}

/* Right Mini Apps Grid (2x4) */
.mini-apps-cluster {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 16px;
}

.mini-app-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  user-select: none;
  transition: var(--transition);
  touch-action: manipulation;
}

.mini-app-item:hover {
  transform: translateY(-4px);
}

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

.mini-app-squircle {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: var(--transition-spring);
  will-change: transform, box-shadow;
}

.mini-app-item:hover .mini-app-squircle {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55), 0 0 18px rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  transform: scale(1.05);
}

/* Individual Mini Icon Backgrounds & Accents */
.icon-mini-doc {
  background: #ffffff;
  color: #059669;
}
.icon-mini-doc svg {
  width: 28px;
  height: 28px;
  fill: #059669;
}

.icon-mini-translate {
  background: #ffffff;
  color: #2563eb;
}
.icon-mini-translate svg {
  width: 28px;
  height: 28px;
  fill: #2563eb;
}

.icon-mini-magic {
  background: linear-gradient(135deg, #f43f5e 0%, #a855f7 50%, #3b82f6 100%);
  color: #ffffff;
}
.icon-mini-magic .magic-cube-art svg {
  width: 26px;
  height: 26px;
  stroke: #ffffff;
  fill: rgba(255, 255, 255, 0.2);
}

.icon-mini-note {
  background: #ffffff;
  color: #1e3a8a;
}
.icon-mini-note .note-cursive-text {
  font-family: 'Brush Script MT', 'Segoe Script', cursive, sans-serif;
  font-size: 18px;
  font-weight: 700;
  font-style: italic;
  color: #1e3a8a;
  letter-spacing: -0.5px;
}

.icon-mini-camera {
  background: #ffffff;
  color: #ea580c;
}
.icon-mini-camera svg {
  width: 28px;
  height: 28px;
  fill: #ea580c;
}

.icon-mini-mindmap {
  background: #ffffff;
  color: #0284c7;
}
.icon-mini-mindmap svg {
  width: 28px;
  height: 28px;
  stroke: #0284c7;
}

.icon-mini-piano {
  background: #ffffff;
  color: #0f172a;
}
.icon-mini-piano svg {
  width: 28px;
  height: 28px;
  fill: #0f172a;
}

.icon-mini-more {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
}
.icon-mini-more .plus-count {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.mini-app-name {
  font-size: 11px;
  font-weight: 600;
  color: #cbd5e1;
  text-align: center;
  white-space: nowrap;
  letter-spacing: -0.1px;
}

@media (max-width: 768px) {
  .all-apps-banner-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px;
    gap: 22px;
  }

  .all-apps-info {
    max-width: 100%;
  }

  .mini-apps-cluster {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .mini-app-squircle {
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }

  .icon-mini-doc svg,
  .icon-mini-translate svg,
  .icon-mini-camera svg,
  .icon-mini-piano svg,
  .icon-mini-mindmap svg {
    width: 24px;
    height: 24px;
  }

  .icon-mini-magic .magic-cube-art svg {
    width: 22px;
    height: 22px;
  }

  .icon-mini-note .note-cursive-text {
    font-size: 15px;
  }

  .icon-mini-more .plus-count {
    font-size: 13px;
  }
}

/* ==========================================================================
   4.3 Smart Tools & Cloud Utilities
   ========================================================================== */
.tools-grid {
  width: 100%;
  max-width: 980px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.tool-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(20, 23, 30, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  text-decoration: none;
  color: #ffffff;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: var(--transition);
  touch-action: manipulation;
}

.tool-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

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

.tool-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tool-icon-wrap svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

.icon-calendar {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.icon-countday {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
}

.icon-notes {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.icon-services {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.tool-texts {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tool-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.tool-sub {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ==========================================================================
   4.4 Floating Suspended Native Navigation Bar (Home, App, Chat, You)
   ========================================================================== */
/* ==========================================================================
   4.4 Floating Suspended Native Navigation Bar (Home, App, Chat, You)
   ========================================================================== */
.bottom-nav-bar {
  position: fixed;
  bottom: max(20px, env(safe-area-inset-bottom));
  left: 0;
  right: 0;
  z-index: 1200;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  width: 100%;
  padding: 0 16px;
  animation: navFloatIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes navFloatIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.nav-dock-capsule {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(18, 21, 28, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  padding: 6px 8px;
  backdrop-filter: blur(36px) saturate(190%);
  -webkit-backdrop-filter: blur(36px) saturate(190%);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55), 0 4px 14px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  user-select: none;
  transform-origin: center bottom;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.22s ease,
              background 0.2s ease,
              border-color 0.2s ease,
              box-shadow 0.3s ease;
  will-change: transform, opacity;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.nav-dock-capsule:hover {
  background: rgba(22, 26, 36, 0.60);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Dynamic Scroll Physics: Smoothly compact & scale down when user scrolls */
.nav-dock-capsule.nav-scrolling-compact {
  transform: scale(0.92) translateY(6px);
  opacity: 0.85;
  background: rgba(16, 18, 24, 0.55);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.nav-dock-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 74px;
  height: 54px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
  outline: none;
  font-family: inherit;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  user-select: none;
}

.nav-dock-tab .tab-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.nav-dock-tab .tab-icon {
  width: 22px;
  height: 22px;
  stroke: var(--text-secondary);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), stroke 0.22s ease;
}

.nav-dock-tab .tab-label {
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.1px;
  color: var(--text-secondary);
  transition: color 0.22s ease, font-weight 0.22s ease;
}

.nav-dock-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-dock-tab:hover .tab-icon {
  stroke: #ffffff;
  transform: translateY(-1px);
}

.nav-dock-tab:hover .tab-label {
  color: #ffffff;
}

.nav-dock-tab:active {
  transform: scale(0.92);
}

/* Active Highlighted Capsule Pill matching dark luxury obsidian aesthetics */
.nav-dock-tab.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  padding: 6px 18px;
}

.nav-dock-tab.active .tab-icon {
  stroke: #ffffff;
  transform: scale(1.08);
}

.nav-dock-tab.active .tab-label {
  color: #ffffff;
  font-weight: 700;
}

/* Desktop Enlargement (PC & Large Tablets) */
@media (min-width: 768px) {
  .nav-dock-capsule {
    padding: 8px 12px;
    gap: 8px;
  }

  .nav-dock-tab {
    min-width: 84px;
    height: 58px;
    padding: 7px 18px;
  }

  .nav-dock-tab .tab-icon-wrap {
    width: 26px;
    height: 26px;
  }

  .nav-dock-tab .tab-icon {
    width: 24px;
    height: 24px;
  }

  .nav-dock-tab .tab-label {
    font-size: 12px;
  }

  .nav-dock-tab.active {
    padding: 7px 22px;
  }
}

/* Ergonomic Mobile Optimization */
@media (max-width: 480px) {
  .bottom-nav-bar {
    bottom: max(16px, env(safe-area-inset-bottom, 16px));
  }

  .nav-dock-capsule {
    gap: 4px;
    padding: 5px 6px;
    max-width: calc(100vw - 24px);
  }
  
  .nav-dock-tab {
    min-width: 62px;
    height: 48px;
    padding: 4px 10px;
    flex: 1;
  }

  .nav-dock-tab.active {
    padding: 4px 14px;
  }

  .nav-dock-tab .tab-icon {
    width: 20px;
    height: 20px;
  }
  
  .nav-dock-tab .tab-label {
    font-size: 10.5px;
  }
}

@media (max-width: 360px) {
  .nav-dock-capsule {
    gap: 2px;
    padding: 4px;
  }

  .nav-dock-tab {
    min-width: 54px;
    height: 46px;
    padding: 3px 6px;
  }

  .nav-dock-tab .tab-icon {
    width: 18px;
    height: 18px;
  }

  .nav-dock-tab .tab-label {
    font-size: 10px;
  }
}

/* ==========================================================================
   5. Footer Layout
   ========================================================================== */
.site-footer {
  width: 100%;
  max-width: var(--header-max-width);
  margin-top: auto;
  padding-top: 16px;
  padding-bottom: max(96px, calc(env(safe-area-inset-bottom) + 84px));
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.site-footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.site-footer-links a {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  opacity: 0.85;
}

.site-footer-links a:hover {
  color: var(--text-primary);
  opacity: 1;
}

.site-footer-links .footer-dot {
  color: var(--text-muted);
  font-size: 11px;
  opacity: 0.6;
}

.site-footer p {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  opacity: 0.7;
  line-height: 1.5;
}

/* ==========================================================================
   6. Settings Dialog Modal (Dual-View Glassmorphism & Sheet)
   ========================================================================== */
.settings-backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 16px;
  overscroll-behavior: contain;
}

.settings-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.settings-popup {
  width: 100%;
  max-width: 480px;
  max-height: 86vh;
  max-height: 86dvh;
  background: rgba(18, 20, 26, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.94) translateY(12px);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.settings-backdrop.active .settings-popup {
  transform: scale(1) translateY(0);
}

/* Header */
.settings-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  position: relative;
  flex-shrink: 0;
}

.settings-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.settings-title-icon-wrap {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: var(--transition);
}

.settings-title-icon-wrap svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.settings-dialog-header:hover .settings-title-icon-wrap svg {
  transform: rotate(60deg);
}

.settings-title-text {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.settings-sub-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #818cf8;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.settings-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 9999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  outline: none;
  touch-action: manipulation;
}

.settings-done-btn {
  background: #ffffff;
  color: #000000;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
}

.settings-done-btn:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
}

.settings-done-btn:active {
  transform: scale(0.95);
}

.settings-close-btn {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
  touch-action: manipulation;
}

.settings-close-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  transform: scale(1.05);
}

.settings-close-btn:active {
  transform: scale(0.92);
}

.settings-close-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.2;
}

/* Scroll Body */
.settings-scroll-body {
  padding: 16px 20px 24px 20px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.settings-scroll-body::-webkit-scrollbar {
  width: 5px;
}

.settings-scroll-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
}

/* Section Containers */
.settings-section-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
  padding-left: 4px;
}

.settings-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.settings-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 13px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: transparent;
  width: 100%;
  border-left: none;
  border-right: none;
  border-top: none;
  text-align: left;
  color: #ffffff;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  touch-action: manipulation;
}

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

.settings-item-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

.settings-item-row:active {
  background: rgba(255, 255, 255, 0.08);
}

.settings-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.settings-item-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.settings-item-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.icon-purple {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
}

.icon-blue {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.icon-amber {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.icon-emerald {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.settings-item-texts {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.settings-item-title {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

.settings-item-sub {
  font-size: 12px;
  color: var(--text-secondary);
}

.settings-item-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.badge-highlight {
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
}

.badge-success {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.badge-denied {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.settings-mini-thumb {
  width: 34px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.settings-chevron {
  width: 14px;
  height: 14px;
  stroke: var(--text-secondary);
  stroke-width: 2.2;
}

/* Account Banner (Guest / Standalone Placeholder) */
.settings-account-card {
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
}

.settings-account-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.settings-account-avatar {
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2a2d36, #14151a);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd0df;
}

.settings-account-avatar svg {
  width: 20px;
  height: 20px;
}

.settings-account-name {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.settings-account-badge {
  font-size: 11px;
  color: var(--text-secondary);
}

.settings-account-pill {
  font-size: 11px;
  font-weight: 600;
  color: #818cf8;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  padding: 4px 10px;
  border-radius: 9999px;
}

/* Footer Section in Main View */
.settings-footer-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.settings-footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.settings-footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  padding: 4px;
}

.settings-footer-links a:hover {
  color: #ffffff;
}

/* ==========================================================================
   7. Wallpaper Customizer View Details
   ========================================================================== */
.wallpaper-view-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.wallpaper-top-hint {
  font-size: 12px;
  color: var(--text-secondary);
}

.wallpaper-reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  touch-action: manipulation;
}

.wallpaper-reset-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.wallpaper-reset-btn:active {
  transform: scale(0.95);
}

.wallpaper-reset-btn svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
}

/* Live Desktop Mockup Preview Card */
.wallpaper-mockup-frame {
  position: relative;
  width: 100%;
  height: 145px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 12px;
}

.mockup-wallpaper-bg {
  position: absolute;
  inset: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  z-index: 1;
  transition: background 0.3s ease, filter 0.2s ease;
}

.mockup-wallpaper-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  transition: background 0.2s ease;
}

.mockup-header-sim {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mockup-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(18, 19, 22, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  padding: 3px 8px;
  backdrop-filter: blur(8px);
}

.mockup-brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
}

.mockup-pill-text {
  font-size: 10px;
  font-weight: 700;
  color: #ffffff;
}

.mockup-status-badge {
  position: relative;
  z-index: 3;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  backdrop-filter: blur(6px);
  align-self: flex-start;
}

.mockup-footer-sim {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup-card-sim {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 6px 14px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  text-align: center;
}

/* Custom Actions Bar */
.wallpaper-actions-bar {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 8px;
  margin-bottom: 14px;
}

.wallpaper-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #ffffff;
  cursor: pointer;
  transition: var(--transition);
  touch-action: manipulation;
}

.wallpaper-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.wallpaper-action-btn:active {
  transform: scale(0.96);
}

.wallpaper-action-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
}

.wallpaper-url-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 3px 4px 3px 10px;
  transition: var(--transition);
}

.wallpaper-url-box:focus-within {
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(255, 255, 255, 0.07);
}

.wallpaper-url-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 16px; /* 16px prevents iOS Safari auto-zoom */
  font-family: inherit;
  width: 100%;
}

.wallpaper-url-input::placeholder {
  color: var(--text-muted);
  font-size: 12px;
}

.wallpaper-url-btn {
  min-height: 34px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  transition: var(--transition);
  touch-action: manipulation;
}

.wallpaper-url-btn:hover {
  background: #ffffff;
  color: #000000;
}

.wallpaper-url-btn:active {
  transform: scale(0.95);
}

/* Category Filter Chips */
.category-chips-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 12px;
  -webkit-overflow-scrolling: touch;
}

.category-chips-row::-webkit-scrollbar {
  display: none;
}

.category-chip {
  min-height: 32px;
  padding: 6px 13px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  touch-action: manipulation;
}

.category-chip:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.category-chip:active {
  transform: scale(0.95);
}

.category-chip.active {
  background: #ffffff;
  color: #000000;
  font-weight: 700;
  border-color: #ffffff;
}

/* Presets Grid */
.wallpaper-presets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.preset-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  transition: var(--transition);
  touch-action: manipulation;
}

.preset-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition);
}

.preset-card:hover .preset-preview {
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

.preset-card:active .preset-preview {
  transform: scale(0.96);
}

.preset-card.active .preset-preview {
  border-color: #818cf8;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.4), 0 8px 20px rgba(0, 0, 0, 0.6);
}

.preset-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.preset-active-check {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #6366f1;
  color: #ffffff;
  display: none;
  align-items: center;
  justify-content: center;
}

.preset-card.active .preset-active-check {
  display: flex;
}

.preset-active-check svg {
  width: 11px;
  height: 11px;
  stroke: #ffffff;
  stroke-width: 3;
  fill: none;
}

.preset-title {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-left: 2px;
}

.preset-card.active .preset-title {
  color: #ffffff;
  font-weight: 600;
}

/* Sliders */
.wallpaper-sliders-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.slider-label {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
}

.slider-value {
  font-size: 12px;
  font-weight: 700;
  color: #818cf8;
}

.custom-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
  transition: background 0.2s;
  touch-action: pan-x;
  cursor: pointer;
}

.custom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  border: 2.5px solid #6366f1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s ease;
}

.custom-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.custom-slider::-webkit-slider-thumb:active {
  transform: scale(1.25);
}

.custom-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  border: 2.5px solid #6366f1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   8. Multi-Device & Mobile Responsive Optimization
   ========================================================================== */

/* Mobile Bottom-Sheet Mode (<= 680px) */
@media (max-width: 680px) {
  .settings-backdrop {
    padding: 0;
    align-items: flex-end;
  }

  .settings-popup {
    max-width: 100%;
    width: 100%;
    max-height: 88vh;
    max-height: 88dvh;
    border-radius: 28px 28px 0 0;
    border-bottom: none;
    border-left: none;
    border-right: none;
    transform: translateY(100%);
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }

  .settings-backdrop.active .settings-popup {
    transform: translateY(0);
  }

  .settings-popup::before {
    content: '';
    display: block;
    width: 38px;
    height: 4px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 9999px;
    margin: 8px auto -4px auto;
    flex-shrink: 0;
  }

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

  .wallpaper-actions-bar {
    grid-template-columns: 1fr;
  }

  .settings-scroll-body {
    padding: 14px 16px 20px 16px;
    gap: 16px;
  }
}

/* Compact Mobile (<= 380px, e.g. iPhone SE, smaller Androids) */
@media (max-width: 380px) {
  .site-header {
    padding-left: 8px;
    padding-right: 8px;
    gap: 8px;
  }

  .header-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    border-radius: 12px;
  }

  .header-pill {
    padding: 4px 6px;
    border-radius: 24px;
  }

  .brand-capsule-btn {
    padding: 0 10px 0 4px;
    gap: 6px;
    height: 38px;
  }

  .brand-capsule-img {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }

  .brand-capsule-text {
    font-size: 13.5px;
  }

  .sub-nav-pill {
    height: 30px;
    padding: 0 10px;
    font-size: 11px;
    gap: 5px;
  }

  .header-left,
  .header-right {
    gap: 6px;
  }

  .site-footer p {
    font-size: 12px;
  }

  .settings-title-text {
    font-size: 15px;
  }

  .settings-item-title {
    font-size: 13px;
  }

  .settings-item-sub {
    font-size: 11px;
  }
}

/* Ultra-Compact & Foldable Screens (<= 320px) */
@media (max-width: 320px) {
  .header-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
  }

  .header-pill {
    padding: 4px;
  }

  .header-left,
  .header-right {
    gap: 4px;
  }

  .wallpaper-presets-grid {
    grid-template-columns: 1fr;
  }
}

/* Landscape Mode on Mobile Devices */
@media (max-height: 500px) and (orientation: landscape) {
  .site-header {
    padding-top: 6px;
    padding-bottom: 4px;
  }

  .settings-popup {
    max-height: 94vh;
    max-height: 94dvh;
  }

  .wallpaper-mockup-frame {
    height: 110px;
  }

  .settings-scroll-body {
    padding: 10px 16px;
    gap: 12px;
  }
}

/* ==========================================================================
   9. Sidebar Navigation Menu Popup (Exact Reference Match)
   ========================================================================== */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.sidebar-drawer {
  position: fixed;
  top: 14px;
  left: 14px;
  bottom: 14px;
  width: 290px;
  max-width: calc(100vw - 28px);
  background: #111215;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  z-index: 2501;
  overflow: hidden;
  transform: translateX(calc(-100% - 24px));
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.sidebar-backdrop.active .sidebar-drawer {
  transform: translateX(0);
}

/* Sidebar Header */
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 12px 18px;
  flex-shrink: 0;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-brand-img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.sidebar-brand-title {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.sidebar-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd0df;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
  touch-action: manipulation;
}

.sidebar-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  transform: scale(1.05);
}

.sidebar-close-btn:active {
  transform: scale(0.92);
}

.sidebar-close-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 2.2;
}

/* Sidebar Items List */
.sidebar-menu-list {
  padding: 6px 12px 18px 12px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  scrollbar-width: none;
}

.sidebar-menu-list::-webkit-scrollbar {
  display: none;
}

.sidebar-menu-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: #ffffff;
  transition: background 0.15s ease, transform 0.15s ease;
  touch-action: manipulation;
}

.sidebar-menu-item:hover {
  background: rgba(255, 255, 255, 0.07);
}

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

.sidebar-menu-icon {
  width: 20px;
  height: 20px;
  stroke: #cbd0df;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  transition: stroke 0.15s ease;
}

.sidebar-menu-item:hover .sidebar-menu-icon {
  stroke: #ffffff;
}

.sidebar-menu-text {
  font-size: 14.5px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
}

/* ==========================================================================
   ABOUT SPAC2 SECTION (SEO & ECOSYSTEM OVERVIEW)
   ========================================================================== */
.about-spac2-section {
  width: 100%;
  max-width: 980px;
  margin: 20px auto 40px auto;
  position: relative;
  z-index: 2;
}

.about-card-acrylic {
  position: relative;
  background: rgba(18, 21, 28, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 30px;
  padding: clamp(24px, 4vw, 36px) clamp(20px, 4vw, 32px);
  backdrop-filter: blur(36px) saturate(190%);
  -webkit-backdrop-filter: blur(36px) saturate(190%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.about-card-acrylic:hover {
  background: rgba(22, 26, 36, 0.55);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.65), 0 0 40px rgba(255, 255, 255, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.about-card-glow {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 50%, transparent 70%);
  filter: blur(48px);
  pointer-events: none;
  z-index: 0;
}

.about-header {
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
}

.about-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  margin-bottom: 12px;
}

.about-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  animation: aboutPulseDot 2.2s infinite ease-in-out;
}

@keyframes aboutPulseDot {
  0%, 100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.4;
  }
}

.about-badge-text {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.about-title {
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px 0;
  letter-spacing: -0.4px;
  line-height: 1.25;
}

.about-subtitle {
  font-size: 14.5px;
  font-weight: 500;
  color: #94a3b8;
  margin: 0;
  letter-spacing: 0.2px;
}

.about-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-statement,
.about-conclusion {
  font-size: 15px;
  line-height: 1.75;
  color: #cbd5e1;
  margin: 0;
}

.about-statement strong,
.about-conclusion strong {
  color: #ffffff;
  font-weight: 700;
}

.about-statement em,
.about-conclusion em {
  font-style: normal;
  color: #ffffff;
  font-weight: 600;
}

.about-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.6);
  transition: all 0.2s ease;
}

.about-link:hover {
  color: #ffffff;
  border-bottom-style: solid;
}

/* Categories Chips Block */
.about-categories-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
}

.about-categories-label {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #94a3b8;
}

.about-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about-category-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: #e2e8f0;
  text-decoration: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-category-chip svg {
  width: 16px;
  height: 16px;
  stroke: #94a3b8;
  transition: stroke 0.2s ease;
}

.about-category-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.about-category-chip:hover svg {
  stroke: #ffffff;
}

.chip-workspace:hover,
.chip-games:hover,
.chip-music:hover,
.chip-design:hover,
.chip-os:hover,
.chip-ai:hover,
.chip-services:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
}

.chip-workspace:hover svg,
.chip-games:hover svg,
.chip-music:hover svg,
.chip-design:hover svg,
.chip-os:hover svg,
.chip-ai:hover svg,
.chip-services:hover svg {
  stroke: #ffffff;
}

.chip-more {
  cursor: default;
  color: #94a3b8;
  border-style: dashed;
}

/* Domain Transition Visual Block */
.about-domain-transition {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
}

.about-footer-action {
  display: flex;
  justify-content: center;
  margin-top: 6px;
  width: 100%;
}

.about-learn-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  touch-action: manipulation;
}

.about-learn-more-btn:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 255, 255, 0.3);
}

.about-learn-more-btn:hover svg {
  stroke: #000000;
  transform: translateX(3px);
}

.about-learn-more-btn svg {
  transition: transform 0.2s ease, stroke 0.2s ease;
}

.domain-badge-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.domain-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.domain-tag-pill.active-tag {
  color: #34d399;
}

.domain-tag-pill.branch-tag {
  color: #fbbf24;
}

.domain-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.domain-branch-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
}

.domain-link-box {
  display: flex;
  align-items: center;
}

.domain-link {
  font-family: 'Outfit', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: color 0.2s ease;
}

.domain-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.domain-arrow-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

.domain-arrow-wrap svg {
  width: 20px;
  height: 20px;
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
  .about-card-acrylic {
    padding: 24px 20px;
    border-radius: 22px;
  }

  .about-title {
    font-size: 22px;
  }

  .about-domain-transition {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .domain-arrow-wrap {
    transform: rotate(90deg);
    align-self: center;
  }
}




/* ==========================================================================
   High-FPS Smooth Scroll & GPU Compositing Optimization Pipeline
   ========================================================================== */
.home-section {
  width: 100%;
}

.site-header,
.bottom-nav-bar,
.home-wallpaper-layer {
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
