:root {
  --bg-deep: #0A0A1A;
  --bg-mid: #12122A;
  --glass-bg: rgba(30, 30, 60, 0.4);
  --glass-bg-hover: rgba(40, 40, 80, 0.55);
  --glass-border: rgba(120, 130, 255, 0.2);
  --glass-border-glow: rgba(140, 150, 255, 0.5);
  --blue-primary: #6B7BFF;
  --blue-light: #A5B4FF;
  --blue-glow: rgba(107, 123, 255, 0.5);
  --text-primary: #F0F0FF;
  --text-secondary: #9095C0;
  --text-muted: #5A5F80;
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  -webkit-tap-highlight-color: transparent;
}

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 0;
  overflow: hidden;
  position: relative;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  -webkit-font-smoothing: antialiased;
}

body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

body::before {
  width: 400px;
  height: 400px;
  background: #4B3AFF;
  top: -150px;
  left: -150px;
}

body::after {
  width: 400px;
  height: 400px;
  background: #3B2BC0;
  bottom: -150px;
  right: -150px;
}

/* ==================== LOADER ==================== */
.page-loader {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, #12122E 0%, #0A0A1A 70%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 26px;
  transition: opacity 0.8s cubic-bezier(0.6, 0, 0.4, 1),
              transform 0.8s cubic-bezier(0.6, 0, 0.4, 1);
  overflow: hidden;
}

.page-loader.hide {
  opacity: 0;
  transform: scale(1.05);
  pointer-events: none;
}

.loader-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.loader-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #A5B4FF;
  border-radius: 50%;
  box-shadow: 0 0 8px #A5B4FF, 0 0 16px rgba(165, 180, 255, 0.5);
  animation: particleFloat 4s ease-in-out infinite;
}

.loader-particle:nth-child(1) { top: 20%; left: 15%; animation-delay: 0s; }
.loader-particle:nth-child(2) { top: 30%; right: 20%; animation-delay: 0.5s; }
.loader-particle:nth-child(3) { bottom: 25%; left: 25%; animation-delay: 1s; }
.loader-particle:nth-child(4) { bottom: 35%; right: 15%; animation-delay: 1.5s; }
.loader-particle:nth-child(5) { top: 50%; left: 10%; animation-delay: 2s; }
.loader-particle:nth-child(6) { top: 60%; right: 25%; animation-delay: 2.5s; }
.loader-particle:nth-child(7) { top: 15%; left: 50%; animation-delay: 3s; }
.loader-particle:nth-child(8) { bottom: 15%; right: 50%; animation-delay: 3.5s; }

@keyframes particleFloat {
  0%, 100% { transform: translate(0, 0); opacity: 0.4; }
  50% { transform: translate(10px, -15px); opacity: 1; }
}

.loader-logo-stage {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader-outer-ring {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 1.5px dashed rgba(140, 150, 255, 0.3);
  animation: rotateCW 12s linear infinite;
}

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

.loader-middle-ring {
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0%, #6B7BFF 30%, #A5B4FF 50%, #6B7BFF 70%, transparent 100%);
  -webkit-mask: radial-gradient(circle, transparent 55px, #000 56px, #000 60px, transparent 61px);
  mask: radial-gradient(circle, transparent 55px, #000 56px, #000 60px, transparent 61px);
  animation: rotateCCW 3s linear infinite;
}

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

.loader-core-wrap {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 26px;
  background: linear-gradient(145deg, #2A2A5A 0%, #15153A 100%);
  border: 1px solid rgba(140, 150, 255, 0.35);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow:
    0 0 50px rgba(107, 123, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -2px 8px rgba(0, 0, 0, 0.4);
  animation: coreMorph 3s ease-in-out infinite;
}

@keyframes coreMorph {
  0%, 100% { border-radius: 26px; transform: scale(1) rotate(0deg); }
  50% { border-radius: 50%; transform: scale(1.05) rotate(180deg); }
}

.loader-core-line {
  position: absolute;
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #A5B4FF, transparent);
  border-radius: 50px;
  animation: lineShift 3s ease-in-out infinite;
}

.loader-core-line.line-2 { animation-delay: 0.3s; transform: rotate(60deg); }
.loader-core-line.line-3 { animation-delay: 0.6s; transform: rotate(-60deg); }

@keyframes lineShift {
  0%, 100% { opacity: 0.3; transform: scale(0.7); }
  50% { opacity: 1; transform: scale(1); }
}

.loader-core-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #E0E5FF 0%, #A5B4FF 40%, #6B7BFF 100%);
  box-shadow:
    0 0 20px rgba(165, 180, 255, 0.9),
    0 0 40px rgba(107, 123, 255, 0.6),
    inset 0 0 8px rgba(255, 255, 255, 0.5);
  animation: dotPulse 1.6s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

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

.loader-brand-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.loader-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: 8px;
  background: linear-gradient(180deg, #FFFFFF 0%, #A5B4FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(140, 150, 255, 0.5);
  padding-left: 8px;
}

.loader-brand-underline {
  width: 60px;
  height: 3px;
  border-radius: 50px;
  background: linear-gradient(90deg, transparent, #A5B4FF, transparent);
  box-shadow: 0 0 12px rgba(165, 180, 255, 0.8);
}

.loader-status {
  font-weight: 500;
  font-size: 0.85rem;
  color: #9095C0;
  letter-spacing: 0.3px;
  min-height: 1.2em;
  text-align: center;
  margin-top: 6px;
}

.loader-progress-wrap {
  width: 78%;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.loader-progress {
  width: 100%;
  height: 8px;
  background: rgba(107, 123, 255, 0.08);
  border: 1px solid rgba(120, 130, 255, 0.25);
  border-radius: 50px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.5);
}

.loader-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4B5BC0 0%, #6B7BFF 50%, #A5B4FF 100%);
  border-radius: 50px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 0 15px rgba(107, 123, 255, 0.9),
    0 0 30px rgba(107, 123, 255, 0.5);
  position: relative;
  overflow: hidden;
}

.loader-progress-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  animation: progressShine 1.8s linear infinite;
}

@keyframes progressShine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.loader-percent {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: #A5B4FF;
  letter-spacing: 2px;
}

/* ==================== APP CONTAINER ==================== */
.app-container {
  width: 100%;
  max-width: 430px;
  height: 100vh;
  padding: 20px 18px;
  position: relative;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.app-container.ready { opacity: 1; }
.app-container::-webkit-scrollbar { width: 0px; }

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

.icon-svg {
  width: 1.2em;
  height: 1.2em;
  fill: currentColor;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ==================== HEADER ==================== */
.header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-shrink: 0;
}

.menu-btn,
.theme-btn {
  width: 48px;
  height: 48px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: var(--blue-light);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.menu-btn::before,
.theme-btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 100%);
  pointer-events: none;
}

.menu-btn .icon-svg,
.theme-btn .icon-svg { width: 22px; height: 22px; position: relative; z-index: 1; }

.menu-btn:active,
.theme-btn:active { transform: scale(0.95); }

.brand-title-wrap { flex: 1; text-align: center; }

.brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 2px;
  background: linear-gradient(180deg, #FFFFFF 0%, #A5B4FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(140, 150, 255, 0.5);
  user-select: none;
}

.brand-subtitle {
  font-weight: 500;
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-top: 2px;
  letter-spacing: 0.5px;
}

.theme-btn .icon-svg {
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.theme-btn:active .icon-svg { transform: rotate(180deg) scale(0.9); }

/* ==================== PROFILE ==================== */
.profile-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 22px;
  flex-shrink: 0;
}

.profile-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 14px;
  overflow: hidden;
  position: relative;
  padding: 4px;
  background: conic-gradient(from 0deg, #6B7BFF, #A5B4FF, #4B5BC0, #6B7BFF);
  box-shadow: 0 0 40px rgba(107, 123, 255, 0.5);
  animation: avatarRingRotate 8s linear infinite;
}

@keyframes avatarRingRotate { to { filter: hue-rotate(360deg); } }

.avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #0A0A1A;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.avatar-spinner {
  position: absolute;
  top: 50%; left: 50%;
  width: 32px; height: 32px;
  margin-top: -16px; margin-left: -16px;
  border: 3px solid rgba(107, 123, 255, 0.2);
  border-top-color: var(--blue-primary);
  border-radius: 50%;
  animation: avatarSpin 0.85s linear infinite;
  z-index: 2;
  transition: opacity 0.4s ease;
}

@keyframes avatarSpin { to { transform: rotate(360deg); } }
.avatar-spinner.hide { opacity: 0; }

.avatar-inner img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
  position: relative;
  z-index: 1;
}

.avatar-inner img.loaded { opacity: 1; }

.profile-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: #C5CCFF;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 8px 24px;
  border-radius: 50px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-glass);
  letter-spacing: 0.3px;
}

/* ==================== LINKS ==================== */
.links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.pill-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 12px 6px;
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  user-select: none;
  -webkit-user-drag: none;
  position: relative;
  overflow: hidden;
}

.pill-btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, transparent 100%);
  pointer-events: none;
}

.pill-btn .icon-svg { width: 15px; height: 15px; color: var(--blue-light); position: relative; z-index: 1; }
.pill-btn span { position: relative; z-index: 1; }
.pill-btn:active { transform: scale(0.96); border-color: var(--glass-border-glow); }

/* ==================== STATS ==================== */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.stat-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 14px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, transparent 100%);
  pointer-events: none;
}

.stat-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, rgba(107, 123, 255, 0.3) 0%, rgba(107, 123, 255, 0.1) 100%);
  border: 1px solid rgba(120, 130, 255, 0.3);
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--blue-light);
  flex-shrink: 0;
}

.stat-icon .icon-svg { width: 18px; height: 18px; }

.stat-content { display: flex; flex-direction: column; min-width: 0; flex: 1; }

.stat-title {
  font-size: 0.6rem;
  color: var(--text-secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: #C5CCFF;
  margin-top: 2px;
  line-height: 1;
  letter-spacing: -0.5px;
}

.stat-loading { display: flex; align-items: center; gap: 5px; margin-top: 4px; }
.stat-loading.hide { display: none; }

.stat-mini-spinner {
  width: 12px; height: 12px;
  border: 2px solid rgba(107, 123, 255, 0.2);
  border-top-color: var(--blue-primary);
  border-radius: 50%;
  animation: miniSpin 0.8s linear infinite;
}

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

/* ==================== MENU GRID ==================== */
.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
  margin-bottom: 20px;
}

.grid-card {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  background: var(--glass-bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
  padding: 8px 6px;
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.grid-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 100%);
  pointer-events: none;
  border-radius: 20px 20px 0 0;
}

.grid-card .icon-wrap {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, rgba(107, 123, 255, 0.25) 0%, rgba(107, 123, 255, 0.08) 100%);
  border: 1px solid rgba(120, 130, 255, 0.25);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.grid-card .icon-svg {
  width: 22px;
  height: 22px;
  color: var(--blue-light);
  transition: all 0.3s ease;
}

.grid-card span {
  font-weight: 700;
  font-size: 0.65rem;
  text-align: center;
  color: var(--text-primary);
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

.grid-card:active {
  transform: scale(0.96);
  border-color: var(--glass-border-glow);
  box-shadow: 0 0 20px rgba(107, 123, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.grid-card.tiktok .icon-wrap { background: linear-gradient(135deg, #000 0%, #25F4EE 100%); border-color: #25F4EE; }
.grid-card.tiktok .icon-svg { color: #FFF; }
.grid-card.instagram .icon-wrap { background: linear-gradient(135deg, #833AB4 0%, #FD1D1D 50%, #FCB045 100%); border-color: #FD1D1D; }
.grid-card.instagram .icon-svg { color: #FFF; }
.grid-card.youtube .icon-wrap { background: linear-gradient(135deg, #FF0000 0%, #CC0000 100%); border-color: #FF0000; }
.grid-card.youtube .icon-svg { color: #FFF; }

/* ==================== PAGE SECTION ==================== */
.page-section {
  display: none;
  flex-direction: column;
  height: 100%;
}

.page-section.active { display: flex; }

.page-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 16px;
  color: #C5CCFF;
  letter-spacing: 0.5px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 10px 18px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text-primary);
  cursor: pointer;
  margin-bottom: 16px;
  align-self: flex-start;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(20px);
}

.back-btn .icon-svg { width: 14px; height: 14px; color: var(--blue-light); }
.back-btn:active { transform: scale(0.96); }

.input-box {
  width: 100%;
  padding: 16px;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  font-size: 0.9rem;
  font-weight: 500;
  outline: none;
  background: var(--glass-bg);
  margin-bottom: 14px;
  transition: all 0.3s ease;
  color: var(--text-primary);
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(20px);
}

.input-box::placeholder { color: var(--text-muted); font-weight: 500; }
.input-box:focus { border-color: var(--glass-border-glow); box-shadow: 0 0 20px rgba(107, 123, 255, 0.3); }

.input-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 14px;
}

.input-wrapper .input-box {
  margin-bottom: 0;
  padding-right: 100px;
}

.paste-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #6B7BFF 0%, #4B5BC0 100%);
  border: none;
  color: #FFFFFF;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
  box-shadow: 0 4px 15px rgba(107, 123, 255, 0.5);
}

.paste-btn .icon-svg { width: 12px; height: 12px; }
.paste-btn:active { transform: translateY(-50%) scale(0.95); }
.paste-btn.success { background: #10B981; }

.action-btn {
  width: 100%;
  background: linear-gradient(135deg, #6B7BFF 0%, #4B5BC0 100%);
  border: 1px solid rgba(140, 150, 255, 0.4);
  padding: 16px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #FFFFFF;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(107, 123, 255, 0.4);
  letter-spacing: 0.3px;
}

.action-btn .icon-svg { width: 18px; height: 18px; }
.action-btn:active { transform: scale(0.98); }

.action-btn.wa-btn {
  background: linear-gradient(135deg, #25D366 0%, #1DA851 100%);
  border-color: rgba(37, 211, 102, 0.4);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.form-label {
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: block;
}

.form-select, .form-textarea {
  width: 100%;
  padding: 16px;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  font-size: 0.9rem;
  font-weight: 500;
  outline: none;
  background: var(--glass-bg);
  margin-bottom: 14px;
  transition: all 0.3s ease;
  color: var(--text-primary);
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(20px);
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23A5B4FF'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 20px;
  padding-right: 48px;
  cursor: pointer;
}

.form-textarea { min-height: 120px; resize: vertical; line-height: 1.5; }

.result-card {
  margin-top: 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 16px;
  display: none;
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(20px);
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(107, 123, 255, 0.08);
  border: 1px solid rgba(120, 130, 255, 0.15);
  border-radius: 16px;
  margin-bottom: 12px;
}

.profile-header-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(107, 123, 255, 0.2);
  flex-shrink: 0;
}

.profile-header-avatar img { width: 100%; height: 100%; object-fit: cover; }

.profile-header-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }

.profile-header-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-header-username {
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.caption-text {
  font-weight: 500;
  font-size: 0.85rem;
  margin-bottom: 12px;
  line-height: 1.5;
  color: var(--text-primary);
  background: rgba(107, 123, 255, 0.08);
  border: 1px solid rgba(120, 130, 255, 0.15);
  padding: 12px;
  border-radius: 14px;
  border-left: 4px solid var(--blue-primary);
}

.info-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(107, 123, 255, 0.08);
  border: 1px solid rgba(120, 130, 255, 0.15);
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 0;
}

.info-item .icon-svg { width: 16px; height: 16px; color: var(--blue-light); flex-shrink: 0; }
.info-item span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.media-container {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  position: relative;
  margin-bottom: 12px;
  line-height: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.media-container img, .media-container video {
  width: 100%; height: auto;
  display: block;
  object-fit: cover;
}

.slide-badge {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(107, 123, 255, 0.9);
  color: #FFFFFF;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  z-index: 2;
  backdrop-filter: blur(10px);
}

.slide-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 6px;
  padding: 6px;
  background: #000;
  scrollbar-width: none;
}

.slide-carousel::-webkit-scrollbar { display: none; }

.slide-carousel img, .slide-carousel video {
  scroll-snap-align: center;
  flex: 0 0 100%;
  width: 100%; height: auto;
  border-radius: 12px;
  object-fit: cover;
  background: #000;
}

.carousel-wrapper { position: relative; }

.carousel-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 8px 8px;
  background: #000;
}

.carousel-btn {
  flex: 1;
  background: rgba(107, 123, 255, 0.15);
  border: 1px solid rgba(120, 130, 255, 0.25);
  color: #A5B4FF;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.carousel-btn .icon-svg { width: 14px; height: 14px; }
.carousel-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.carousel-counter {
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 8px 14px;
  background: rgba(107, 123, 255, 0.2);
  border: 1px solid rgba(120, 130, 255, 0.25);
  border-radius: 50px;
  white-space: nowrap;
}

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

.dl-btn {
  background: rgba(107, 123, 255, 0.08);
  border: 1px solid rgba(120, 130, 255, 0.2);
  padding: 14px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.85rem;
  text-align: center;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  backdrop-filter: blur(20px);
}

.dl-btn .icon-svg { width: 16px; height: 16px; color: var(--blue-light); }
.dl-btn:active { transform: scale(0.98); border-color: var(--glass-border-glow); }

.dl-btn.primary {
  background: linear-gradient(135deg, #6B7BFF 0%, #4B5BC0 100%);
  border-color: rgba(140, 150, 255, 0.4);
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(107, 123, 255, 0.3);
}

.dl-btn.primary .icon-svg { color: #FFFFFF; }

.stalk-info-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.stalk-info-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 12px 14px;
  background: rgba(107, 123, 255, 0.08);
  border: 1px solid rgba(120, 130, 255, 0.15);
  border-radius: 14px;
}

.stalk-info-item span.label {
  font-weight: 700;
  font-size: 0.65rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 3px;
  letter-spacing: 0.5px;
}

.stalk-info-item span.value {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-primary);
  word-break: break-word;
}

.loader {
  display: none;
  text-align: center;
  font-weight: 600;
  margin: 18px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.spinner-svg { animation: spin 1s linear infinite; color: var(--blue-light); }

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.home-footer {
  text-align: center;
  padding-top: 14px;
  border-top: 1px solid rgba(120, 130, 255, 0.1);
  margin-top: auto;
}

.home-footer p {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

.contact-info-card {
  margin-top: 16px;
  padding: 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(20px);
}

.contact-info-card .label {
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.contact-info-card .value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--blue-light);
  letter-spacing: 0.5px;
}

.contact-desc {
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

/* ==================== SIDEBAR ==================== */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  z-index: 999;
}

.sidebar-overlay.active { display: block; }

.sidebar {
  position: fixed;
  top: 0;
  left: -300px;
  width: 280px;
  height: 100vh;
  background: linear-gradient(180deg, #12122A 0%, #0A0A1A 100%);
  border-right: 1px solid rgba(120, 130, 255, 0.2);
  z-index: 1000;
  padding: 24px 18px;
  transition: left 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  box-shadow: 8px 0 40px rgba(0, 0, 0, 0.5);
}

.sidebar.open { left: 0; }

.sidebar h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  padding-bottom: 12px;
  color: #C5CCFF;
  border-bottom: 1px solid rgba(120, 130, 255, 0.15);
  letter-spacing: 1px;
}

.sidebar a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.sidebar a .icon-svg { width: 18px; height: 18px; color: var(--blue-light); }
.sidebar a:active { transform: scale(0.98); border-color: var(--glass-border-glow); }