/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --linkedin-blue: #0a66c2;
  --linkedin-blue-hover: #004182;
  --linkedin-green: #057642;
  --bg: #e3e0d8;
  --card-bg: #f0eee9;
  --text-primary: rgba(0, 0, 0, 0.9);
  --text-secondary: rgba(0, 0, 0, 0.6);
  --text-tertiary: rgba(0, 0, 0, 0.4);
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.15);
  --nav-height: 52px;
  --card-radius: 8px;
  --shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 2px 3px rgba(0, 0, 0, 0.04);
}

html {
  scroll-behavior: smooth;
}

/* ===== Background Canvas ===== */
#bgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

#linkedinLayer {
  position: relative;
  z-index: 1;
}

#yptoxLayer {
  position: relative;
  z-index: 1;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: var(--linkedin-blue);
}

a:hover {
  text-decoration: underline;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.nav-container {
  max-width: 1128px;
  margin: 0 auto;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo {
  flex-shrink: 0;
}

.nav-search {
  position: relative;
}

.nav-search input {
  width: 280px;
  height: 34px;
  padding: 0 12px 0 36px;
  border: none;
  border-radius: 4px;
  background: #eef3f8;
  font-size: 14px;
  color: var(--text-primary);
  font-family: inherit;
}

.nav-search input:focus {
  outline: 2px solid var(--linkedin-blue);
  background: #fff;
}

.nav-search input::placeholder {
  color: var(--text-secondary);
}

.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 12px;
  height: var(--nav-height);
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 12px;
  min-width: 60px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s;
}

.nav-item:hover {
  color: var(--text-primary);
  text-decoration: none;
}

.nav-item.active {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
}

.nav-home-link {
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
}

.nav-home-link:hover {
  color: var(--text-primary);
}

.nav-home-link .icon-globe { display: none; }
.nav-home-link .icon-house { display: block; }

body.yptox-active .nav-home-link .icon-house { display: none; }
body.yptox-active .nav-home-link .icon-globe { display: block; }

.nav-cv-link .icon-doc { display: block; }
.nav-cv-link .icon-doc-term { display: none; }

body.yptox-active .nav-cv-link .icon-doc { display: none; }
body.yptox-active .nav-cv-link .icon-doc-term { display: block; }

.nav-item span {
  margin-top: 2px;
  white-space: nowrap;
}

.nav-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--linkedin-blue);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.caret {
  font-size: 10px;
}

/* ===== Main Layout ===== */
.main-content {
  max-width: 1128px;
  margin: 0 auto;
  padding: calc(var(--nav-height) + 24px) 16px 40px;
}

.content-layout {
  display: flex;
  flex-direction: column;
  max-width: 720px;
  margin: 0 auto;
  gap: 24px;
}

/* ===== Card Base ===== */
.card {
  background: var(--card-bg);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  margin-bottom: 8px;
  overflow: hidden;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  padding: 24px 24px 0;
  margin-bottom: 12px;
}

/* ===== Profile Card ===== */
.profile-card {
  position: relative;
  padding-bottom: 24px;
}

.banner {
  position: relative;
  height: 200px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  overflow: hidden;
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-edit {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--linkedin-blue);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: background 0.15s;
}

.banner-edit:hover {
  background: #f0f0f0;
}

.profile-header {
  padding: 0 24px;
  margin-top: -40px;
}

.avatar-wrapper {
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}

.avatar-large {
  width: 152px;
  height: 152px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0a66c2, #004182);
  color: #fff;
  font-size: 52px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid var(--card-bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  margin-top: -60px;
}

.avatar-img,
.rec-avatar-img,
.pav-avatar-img,
.conv-avatar-img {
  object-fit: cover;
  object-position: center 30%;
}

.profile-name-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-name-row h1 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
}

.pronouns {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 400;
}

.headline {
  font-size: 16px;
  color: var(--text-primary);
  margin-top: 4px;
  line-height: 1.4;
}

.location {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.connections-info {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.link-text {
  color: var(--linkedin-blue);
  font-weight: 600;
  cursor: pointer;
}

.link-text:hover {
  text-decoration: underline;
}

.profile-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.15s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--linkedin-blue);
  color: #fff;
  border: none;
}

.btn-primary:hover {
  background: var(--linkedin-blue-hover);
}

.btn-primary.connected {
  background: var(--card-bg);
  color: var(--text-secondary);
  border: 1px solid var(--text-secondary);
}

.btn-outline {
  background: transparent;
  color: var(--linkedin-blue);
  border: 1px solid var(--linkedin-blue);
}

.btn-outline:hover {
  background: rgba(10, 102, 194, 0.08);
  border-color: var(--linkedin-blue-hover);
}

.btn-sm {
  padding: 4px 12px;
  font-size: 14px;
  border-radius: 14px;
}

.btn-more {
  border-color: var(--text-secondary);
  color: var(--text-secondary);
}

.btn-more:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.btn-static {
  cursor: default;
  user-select: none;
}

/* ===== About Section ===== */
.about-content {
  padding: 0 24px 24px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
  position: relative;
}

.about-hidden {
  display: none;
  margin-top: 12px;
}

.about-hidden.visible {
  display: block;
}

.see-more-btn {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  padding: 0;
  display: inline;
}

.see-more-btn:hover {
  color: var(--linkedin-blue);
}

/* ===== Experience Section ===== */
.experience-list {
  padding: 0 24px 16px;
}

.experience-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.experience-item:last-of-type {
  border-bottom: none;
}

.exp-logo {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
}

.company-logo-placeholder {
  width: 48px;
  height: 48px;
  background: #f0f0f0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.exp-details h3 {
  font-size: 14px;
  font-weight: 600;
}

.exp-company {
  font-size: 14px;
  color: var(--text-primary);
}

.exp-date {
  font-size: 14px;
  color: var(--text-secondary);
}

.exp-location {
  font-size: 14px;
  color: var(--text-secondary);
}

.exp-desc {
  font-size: 14px;
  color: var(--text-primary);
  margin-top: 8px;
  line-height: 1.5;
}

.show-all-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  padding: 12px 0;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  justify-content: center;
  border-top: 1px solid var(--border);
  margin-top: 4px;
  transition: background 0.15s;
}

.show-all-btn:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--linkedin-blue);
}

/* ===== Skills Section ===== */
.skills-grid {
  padding: 0 24px;
}

.skill-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

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

.skill-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--linkedin-blue);
}

.skill-endorsements {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ===== Recommendations ===== */
.rec-count {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 0 24px 12px;
}

.recommendation-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

.rec-tab {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
}

.rec-tab:hover {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.04);
}

.rec-tab.active {
  color: var(--linkedin-green);
  border-bottom-color: var(--linkedin-green);
}

.recommendations-list {
  padding: 0 24px 16px;
}

.recommendation-item {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

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

.rec-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rec-content h4 {
  font-size: 14px;
  font-weight: 600;
}

.rec-title {
  font-size: 13px;
  color: var(--text-secondary);
}

.rec-text {
  font-size: 14px;
  color: var(--text-primary);
  margin-top: 8px;
  line-height: 1.5;
  font-style: italic;
}

/* ===== Activity Section ===== */
.activity-followers {
  font-size: 14px;
  color: var(--linkedin-blue);
  font-weight: 600;
  padding: 0 24px 12px;
}

.activity-grid {
  padding: 0 24px;
}

.activity-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

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

.activity-type {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.activity-text {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.5;
}

.activity-engagement {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 6px;
}

/* ===== Right Sidebar ===== */
.right-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}

.sidebar-card {
  padding: 16px;
  margin-bottom: 8px;
}

.sidebar-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.sidebar-text {
  font-size: 14px;
  color: var(--text-secondary);
}

.sidebar-link {
  font-size: 14px;
  color: var(--linkedin-blue);
}

/* People Also Viewed */
.pav-list {
  margin-top: 8px;
}

.pav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

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

.pav-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #43e97b, #38f9d7);
  color: #1a1a2e;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.pav-name {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pav-title {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Footer ===== */
.footer {
  background: transparent;
  padding: 24px 16px 40px;
}

.footer-container {
  max-width: 1128px;
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: center;
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 12px;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--linkedin-blue);
  text-decoration: underline;
}

.footer-copyright {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* ===== Messaging Widget ===== */
.messaging-widget {
  position: fixed;
  bottom: 0;
  right: 24px;
  width: 320px;
  background: var(--card-bg);
  border-radius: 8px 8px 0 0;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
  z-index: 999;
  overflow: hidden;
  transition: height 0.25s ease;
}

.messaging-widget.collapsed .messaging-body {
  display: none;
}

.messaging-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.messaging-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.messaging-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--linkedin-green);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.messaging-header-right {
  display: flex;
  gap: 4px;
}

.messaging-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: background 0.15s;
}

.messaging-btn:hover {
  background: rgba(0, 0, 0, 0.08);
}

.messaging-toggle svg {
  transition: transform 0.25s;
}

.messaging-widget.collapsed .messaging-toggle svg {
  transform: rotate(180deg);
}

.messaging-body {
  max-height: 400px;
  overflow-y: auto;
}

.messaging-search {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}

.messaging-search input {
  width: 100%;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 13px;
  font-family: inherit;
  background: #f5f5f5;
}

.messaging-search input:focus {
  outline: 1px solid var(--linkedin-blue);
  background: #fff;
}

.messaging-conversations {
  padding: 0;
}

.conversation-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid var(--border);
}

.conversation-item:hover {
  background: rgba(0, 0, 0, 0.04);
}

.conversation-item.unread {
  background: #e8f4fd;
}

.conv-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.conv-name {
  font-size: 14px;
  font-weight: 600;
}

.conv-preview {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conv-time {
  font-size: 12px;
  color: var(--text-tertiary);
  flex-shrink: 0;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
}

@media (max-width: 768px) {
  .nav-search {
    display: none;
  }

  .nav-item span {
    display: none;
  }

  .nav-item {
    min-width: 40px;
    padding: 0 8px;
  }

  .nav-right {
    gap: 0;
  }

  .main-content {
    padding-left: 8px;
    padding-right: 8px;
  }

  .profile-header {
    padding: 0 16px;
  }

  .section-title {
    padding: 16px 16px 0;
  }

  .about-content,
  .experience-list,
  .skills-grid,
  .recommendations-list,
  .activity-grid {
    padding-left: 16px;
    padding-right: 16px;
  }

  .rec-count,
  .activity-followers {
    padding-left: 16px;
    padding-right: 16px;
  }

  .recommendation-tabs {
    padding-left: 16px;
    padding-right: 16px;
  }

  .banner {
    height: 140px;
  }

  .avatar-large {
    width: 120px;
    height: 120px;
    font-size: 40px;
  }

  .profile-name-row h1 {
    font-size: 20px;
  }

  .messaging-widget {
    width: 280px;
    right: 8px;
  }
}

@media (max-width: 480px) {
  .profile-actions {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
  }

  .messaging-widget {
    width: calc(100% - 16px);
    right: 8px;
  }
}

/* ===== Animations ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.experience-item,
.recommendation-item,
.activity-item,
.skill-item {
  animation: fadeIn 0.3s ease forwards;
}

/* ===== Notification Dot ===== */
.nav-item.has-notification::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cc1016;
}

/* ===== Scrollbar Styling ===== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.35);
}

/* ===== Tooltip / Dropdown for More ===== */
.more-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  background: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  padding: 8px 0;
  z-index: 100;
  display: none;
}

.more-dropdown.visible {
  display: block;
}

.more-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 16px;
  font-size: 14px;
  color: var(--text-primary);
  transition: background 0.15s;
}

.more-dropdown-item:hover {
  background: rgba(0, 0, 0, 0.06);
}

/* ===== Toast Notification ===== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #333;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  z-index: 10000;
  transition: transform 0.3s ease;
  pointer-events: none;
}

.toast.visible {
  transform: translateX(-50%) translateY(0);
}

/* ===== YPTOX LAYER (hidden by default) ===== */
@property --yptox-bg {
  syntax: "<color>";
  inherits: true;
  initial-value: #0D0208;
}

@property --yptox-fg {
  syntax: "<color>";
  inherits: true;
  initial-value: #00FF41;
}

@property --yptox-accent {
  syntax: "<color>";
  inherits: true;
  initial-value: #008F11;
}

.yptox-layer {
  display: none;
  --yptox-bg: #0D0208;
  --yptox-fg: #00FF41;
  --yptox-accent: #008F11;
  font-family: 'VT323', monospace;
  background: var(--yptox-bg);
  color: var(--yptox-fg);
  min-height: 100vh;
  padding: calc(var(--nav-height) + 40px) 20px 60px;
  font-size: 20px;
  line-height: 1.5;
  transition: --yptox-bg 1.2s ease, --yptox-fg 1.2s ease, --yptox-accent 1.2s ease, background 1.2s ease, color 1.2s ease;
}

.yptox-layer.visible {
  display: block;
}

.yptox-container {
  max-width: 800px;
  margin: 0 auto;
}

.yptox-section {
  border: 2px dashed var(--yptox-fg);
  padding: 20px;
  margin-bottom: 20px;
  transition: border-color 1.2s ease, color 1.2s ease, background-color 1.2s ease;
}

.yptox-section h1,
.yptox-section h2,
.yptox-section h3,
.yptox-section p {
  transition: color 1.2s ease, border-color 1.2s ease;
}

.yptox-section h1 {
  font-family: 'VT323', monospace;
  font-size: 3rem;
  font-weight: normal;
  color: var(--yptox-fg);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.yptox-section h2 {
  font-family: 'VT323', monospace;
  font-size: 2.2rem;
  font-weight: normal;
  color: var(--yptox-fg);
  margin-bottom: 1rem;
  border-bottom: 2px dashed var(--yptox-fg);
  padding-bottom: 0.5rem;
}

.yptox-section h3 {
  font-family: 'VT323', monospace;
  font-size: 1.6rem;
  font-weight: normal;
  color: var(--yptox-fg);
  margin-bottom: 0.25rem;
}

.yptox-section p {
  margin-bottom: 0.8rem;
  color: var(--yptox-fg);
}

.yptox-subtitle {
  font-size: 1.8rem;
  color: var(--yptox-accent) !important;
}

.yptox-location {
  font-size: 2rem;
  color: var(--yptox-fg);
  margin-top: 4px;
}

.yptox-meta-line {
  font-size: 1rem;
  color: var(--yptox-accent) !important;
  opacity: 0.8;
}

.yptox-meta-line a {
  color: var(--yptox-accent);
}

.yptox-meta-line a:hover {
  background: var(--yptox-accent);
  color: var(--yptox-bg);
  text-decoration: none;
}

.yptox-tagline {
  font-size: 1.4rem;
  margin-top: 1rem;
  font-style: italic;
}

.yptox-item {
  padding: 12px 0;
  border-bottom: 1px dashed var(--yptox-accent);
  transition: border-color 1.2s ease;
}

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

.yptox-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.yptox-tag {
  background: var(--yptox-fg);
  color: var(--yptox-bg);
  padding: 4px 10px;
  font-family: 'VT323', monospace;
  font-size: 1.1rem;
  transition: color 1.2s ease, background-color 1.2s ease, background 1.2s ease;
}

.yptox-footer-section {
  text-align: center;
  border-style: dashed;
  opacity: 0.7;
}

.yptox-footer-section p {
  margin-bottom: 0.3rem;
}

/* ===== NAVBAR YPTOX MODE ===== */
body.yptox-active .navbar {
  background: var(--yptox-bg, #0D0208);
  border-bottom: none;
  box-shadow: none;
  transition: background 1.2s ease;
}

body.yptox-active .nav-search,
body.yptox-active .nav-right {
  display: none;
}

body.yptox-active .nav-home-link {
  color: var(--yptox-fg, #00FF41);
  transition: color 1.2s ease;
}

body.yptox-active {
  background: var(--yptox-bg, #0D0208);
  transition: background 1.2s ease, color 1.2s ease;
}

/* ===== FRAGMENT OVERLAY ===== */
.fragment-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 900;
  overflow: hidden;
}

.fragment {
  position: absolute;
  overflow: hidden;
  will-change: transform;
}

.fragment-inner {
  position: absolute;
}

@keyframes fragmentFall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(120vh) rotate(var(--rot, 15deg));
    opacity: 0;
  }
}

@keyframes fragmentRise {
  0% {
    transform: translateY(120vh) rotate(var(--rot, 15deg));
    opacity: 0;
  }
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
}

.fragment.falling {
  animation: fragmentFall 0.9s cubic-bezier(0.55, 0, 1, 0.45) forwards;
  animation-delay: var(--delay, 0s);
}

.fragment.rising {
  animation: fragmentRise 0.7s cubic-bezier(0, 0.55, 0.45, 1) forwards;
  animation-delay: var(--delay, 0s);
}

/* ===== IDLE GLITCH EFFECTS ===== */
@keyframes glitchJitter {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-3px, 1px); }
  40%  { transform: translate(2px, -2px); }
  60%  { transform: translate(-1px, 2px); }
  80%  { transform: translate(3px, -1px); }
  100% { transform: translate(0, 0); }
}

@keyframes glitchFlicker {
  0%   { opacity: 1; }
  10%  { opacity: 0.4; }
  20%  { opacity: 1; }
  30%  { opacity: 0.7; }
  40%  { opacity: 1; }
  100% { opacity: 1; }
}

@keyframes rgbSplit {
  0%   { text-shadow: none; }
  25%  { text-shadow: -2px 0 #ff0040, 2px 0 #00ffff; }
  50%  { text-shadow: 2px 0 #ff0040, -2px 0 #00ffff; }
  75%  { text-shadow: -1px 1px #ff0040, 1px -1px #00ffff; }
  100% { text-shadow: none; }
}

@keyframes scanlinePass {
  0%   { top: -4px; }
  100% { top: 100%; }
}

.glitch-jitter {
  animation: glitchJitter 0.15s linear;
}

.glitch-flicker {
  animation: glitchFlicker 0.3s linear;
}

.glitch-rgb {
  animation: rgbSplit 0.4s linear;
}

.glitch-scanline {
  position: relative;
  overflow: hidden;
}

.glitch-scanline::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  z-index: 10;
  pointer-events: none;
  animation: scanlinePass 0.5s linear forwards;
}
