:root {
  --bg-color: #121212;
  --card-bg: #f4f1ea;
  --text-main: #f4f1ea;
  --text-muted: #888888;
  --card-text: #2a2a2a;
  --card-text-muted: #666666;
  --accent: #d4c4a8;
}

html {
  scrollbar-gutter: stable;
  background-color: #121212;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img {
  -webkit-touch-callout: none;
  /* Prevents long-press menu on iOS Safari */
  -webkit-user-select: none;
  /* Prevents text/image selection */
  user-select: none;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

body.fonts-loaded {
  opacity: 1;
}

/* Language Controls */
body.lang-en .lang-zh {
  display: none !important;
}

body.lang-zh .lang-en {
  display: none !important;
}

/* Language Toggle Button */
.lang-toggle {
  background: transparent;
  border: 1px solid rgba(244, 241, 234, 0.4);
  color: var(--text-main);
  padding: 4px 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.lang-toggle:hover {
  background: var(--text-main);
  color: var(--bg-color);
}

.lang-toggle-text,
.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  transition: color 0.3s;
}

.lang-toggle-text:hover,
.nav-link:hover {
  color: var(--accent) !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Playfair Display', 'Noto Serif SC', 'Songti SC', 'STSong', serif;
  font-weight: 400;
}

.master-card-title .lang-zh {
  letter-spacing: 0.15em;
}

/* Views */
.view {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.view.active {
  display: flex;
  opacity: 1;
}

/* Deep link instant load overrides */
.direct-detail-load #gallery-view {
  display: none !important;
  opacity: 0 !important;
}

.direct-detail-load #detail-view {
  display: flex !important;
  opacity: 1 !important;
}

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 100;
  background: var(--bg-color);
  transition: margin-top 1.2s cubic-bezier(0.25, 1, 0.5, 1), opacity 1.2s ease;
}

body.zen-active .site-header {
  margin-top: -120px;
  opacity: 0;
  pointer-events: none;
}

.logo {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--accent);
  display: flex;
  align-items: center;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.logo a {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.logo:hover {
  opacity: 0.8;
}

.site-subtitle {
  font-size: clamp(0.7rem, 0.9vw, 0.8rem);
  color: var(--text-muted);
  letter-spacing: 0.15em;
  margin-left: 1rem;
  font-weight: 400;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  white-space: nowrap;
}

/* Footer */
.site-footer {
  width: 100%;
  padding: 3rem 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: auto;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--accent);
}

/* Gallery View */
#gallery-view,
#journal-view,
#diary-view {
  flex: 1;
  padding: 3rem 4rem;
  gap: 4rem;
}

.sidebar {
  width: 250px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.filter-title {
  font-size: 1.2rem;
  color: var(--text-main);
}

.filter-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-list li {
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.2s;
}

.filter-list li:hover,
.filter-list li.active {
  color: var(--accent);
}

.filter-list li.filter-empty {
  color: rgba(255, 255, 255, 0.25) !important;
  font-size: 0.85rem;
  cursor: default;
  font-style: italic;
  letter-spacing: 0.05em;
}

.filter-list li.filter-empty:hover {
  color: rgba(255, 255, 255, 0.25) !important;
}

.gallery-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  align-content: start;
}

/* Card */
.analog-card {
  background-color: var(--card-bg);
  border-radius: 4px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.6s forwards;
}

.analog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.card-header {
  text-align: center;
}

.card-title {
  color: var(--card-text);
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
  letter-spacing: 0.05em;
}

.card-subtitle {
  color: var(--card-text-muted);
  font-size: 0.8rem;
}

.card-image-container {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background-color: #d8d4c9;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  /* Prevents right-click menu natively */
}

.analog-card:hover .card-image {
  transform: scale(1.03);
}

.card-footer {
  text-align: center;
  color: var(--card-text-muted);
  font-size: 0.65rem;
  font-family: monospace;
  letter-spacing: 0.05em;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Detail View (Cinematic) */
#detail-view {
  flex-direction: column;
  width: 100%;
}

.hero-section {
  width: 100%;
  height: 80vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  transition: height 1.2s cubic-bezier(0.25, 1, 0.5, 1), opacity 1.2s ease;
  overflow: hidden;
}

.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  z-index: 1;
  transition: transform 0.15s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
}

/* Cover immersion: height is transitioned smoothly inside flow */
.hero-section.zen-mode {
  height: 100vh;
  cursor: grab;
}

.hero-section.zen-mode:active {
  cursor: grabbing;
}

/* Lightbox immersion: fixed positioned overlay with cross-fade */
.hero-section.zen-mode.zen-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1500;
  cursor: grab;
  transition: none !important;
  clip-path: inset(0% 0% 0% 0% round 0px);
  animation: zen-fade-in 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.hero-section.zen-mode.zen-fixed:active {
  cursor: grabbing;
}

.hero-section.zen-mode.zen-fixed.zen-exiting {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1500;
  transition: none !important;
  animation: zen-fade-out 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Prevent layout shift when lightbox image goes fixed */
#detail-view::before {
  content: "";
  display: none;
  width: 100%;
  height: 80vh;
  flex-shrink: 0;
}

body.zen-fixed-active #detail-view::before {
  display: block;
}

@media (max-width: 1024px) {
  body.zen-fixed-active #detail-view::before {
    height: 60vh;
  }
}

@media (max-width: 600px) {
  body.zen-fixed-active #detail-view::before {
    height: 50vh;
  }
}

.pan-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 20;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

.pc-hint {
  display: inline-block;
}

.mobile-hint {
  display: none;
}

@media (pointer: coarse) {
  .pc-hint {
    display: none;
  }

  .mobile-hint {
    display: inline-block;
  }
}

.hero-section.zen-mode .pan-hint {
  opacity: 1;
}

.hero-section.zen-mode.has-panned .pan-hint {
  opacity: 0;
}

.hero-overlay,
.back-btn,
.immerse-btn {
  transition: opacity 0.8s ease, background 0.3s ease;
}

.hero-section.zen-mode .hero-overlay,
.hero-section.zen-mode .back-btn,
.hero-section.zen-mode .immerse-btn {
  opacity: 0;
  pointer-events: none;
}

.hero-overlay {
  background: linear-gradient(to top, rgba(18, 18, 18, 1) 0%, rgba(18, 18, 18, 0) 100%);
  width: 100%;
  padding: 4rem;
  padding-top: 10rem;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 4rem;
  color: #fff;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.back-btn {
  position: absolute;
  top: 2rem;
  left: 4rem;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  transition: background 0.3s;
  backdrop-filter: blur(5px);
  z-index: 10;
}

.back-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.immerse-btn {
  position: absolute;
  bottom: 2.5rem;
  right: 4rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  padding: 0.6rem 1.4rem;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 20px;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.immerse-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #000;
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.detail-content {
  padding: 4rem;
  max-width: 1400px;
  margin: 0 auto;
  opacity: 1;
  transition: opacity 1.2s ease;
  width: 100%;
  min-width: 0;
}

body.zen-active .detail-content {
  opacity: 0;
  pointer-events: none;
}

.story-section {
  max-width: 800px;
  margin: 0 auto 6rem auto;
  text-align: center;
}

.story-heading {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.story-title-display {
  font-family: 'Playfair Display', 'Noto Serif SC', 'Songti SC', 'STSong', serif;
  font-size: clamp(1.3rem, 2.2vw, 2.2rem);
  font-weight: 500;
  color: var(--accent);
  margin-top: 1rem;
  margin-bottom: 2.5rem;
  line-height: 1.4;
  letter-spacing: 0.05em;
}

.story-text {
  font-size: 1.1rem;
  line-height: 2.1;
  color: #ccc;
}

.other-perspectives-title {
  text-align: center;
  font-size: 1.2rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  margin-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1rem;
}

.scroll-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-top: 0.8rem;
  font-family: 'Inter', sans-serif;
  text-transform: none;
}

/* Filmstrip Layout for other perspectives */
.masonry-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 2rem;
  overflow-x: auto;
  padding-bottom: 2rem;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  width: 100%;
  min-width: 0;
}

.masonry-grid::-webkit-scrollbar {
  display: none;
}

.masonry-item {
  height: 50vh;
  flex: 0 0 auto;
  cursor: pointer;
  border-radius: 2px;
  overflow: hidden;
}

.masonry-item img {
  height: 100%;
  width: auto;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.masonry-item:hover img {
  transform: scale(1.02);
}

/* Lightbox */
.lightbox {
  visibility: hidden;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.lightbox.show {
  visibility: visible;
  opacity: 1;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease;
}

.lightbox.show .lightbox-content {
  transform: scale(1);
  opacity: 1;
}

.close-lightbox {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  transition: color 0.3s;
  z-index: 1001;
}

.close-lightbox:hover {
  color: var(--accent);
}

.lightbox-immerse-btn {
  position: absolute;
  top: 35px;
  right: 110px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  padding: 0.6rem 1.4rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  cursor: pointer;
  z-index: 1002;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 20px;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.lightbox-immerse-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #000;
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
}



/* =========================================
   HOME PAGE (MAIN SITE) STYLES
   ========================================= */

body.home-body {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  padding: 0;
  gap: 0;
  background-color: var(--bg-color);
}

.home-main-wrapper {
  display: flex;
  flex: 1;
  overflow: hidden;
  padding: 2rem 4rem;
  gap: 4rem;
}

.home-sidebar {
  width: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  flex-shrink: 0;
}

.intro-text {
  color: var(--text-muted);
  margin-top: 1rem;
  margin-bottom: 2rem;
}

/* Poetic Cursive (龙藏体 / 随性手写) */
.intro-text .lang-en {
  font-family: 'La Belle Aurore', cursive;
  font-size: 0.95rem;
  line-height: 1.4;
  letter-spacing: 0.02em;
  opacity: 0.8;
}

.intro-text .lang-zh {
  font-family: 'Long Cang', cursive;
  font-size: 1.0rem;
  line-height: 1.5;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

.home-sidebar-footer {
  display: flex;
  flex-direction: column;
}

.home-nav {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2rem;
}

.home-copyright {
  font-size: 0.65rem;
  color: var(--text-muted);
  opacity: 0.45;
  line-height: 1.4;
  letter-spacing: 0.05em;
}

.home-footer {
  display: none;
}

.home-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  transition: color 0.3s;
  text-transform: uppercase;
}

.home-nav a:hover,
.home-nav a.active {
  color: var(--accent);
}

.master-grid {
  flex: 1;
  display: flex;
  gap: 1rem;
  height: 100%;
}

.master-card {
  flex: 1;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  align-items: flex-end;
  padding: 3rem 1.5rem;
  transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.6s ease;
  filter: grayscale(80%) brightness(0.5);
}

.master-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 1s ease;
  z-index: 1;
}

/* Gradients over the bg */
.master-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(18, 18, 18, 0.9) 0%, rgba(18, 18, 18, 0) 60%);
  z-index: 2;
  transition: background 0.6s ease;
}

#card-voyage .master-card-bg {
  background-image: url('../images/a1.jpg');
}

#card-diary .master-card-bg {
  background-image: url('../images/a2.jpg');
}

#card-journal .master-card-bg {
  background-image: url('../images/a3.jpg');
}

.master-card-content {
  position: relative;
  z-index: 3;
  transform: translateY(20px);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  height: 8.5rem;
  /* Fixed height on desktop to keep title/subtitle baselines aligned */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.master-card-title {
  font-family: 'Playfair Display', 'Noto Serif SC', 'Songti SC', 'STSong', serif;
  font-size: clamp(1.2rem, 2vw, 2.5rem);
  color: #fff;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
  line-height: 1.2;
  min-height: 2.4em;
  /* Align text blocks by reserving space for 2 lines of text */
}

.master-card-subtitle {
  font-size: clamp(0.7rem, 0.8vw, 0.85rem);
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.6s ease;
}

/* Hover Effects */
.master-card:hover {
  flex: 1.6;
  filter: grayscale(0%) brightness(1);
}

.master-card:hover .master-card-bg {
  transform: scale(1.05);
}

.master-card:hover .master-card-content {
  transform: translateY(0);
}

.master-card:hover .master-card-subtitle {
  opacity: 1;
}

.master-grid:hover .master-card:not(:hover) {
  filter: grayscale(100%) brightness(0.2);
}



/* Home Modals */
.home-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.home-modal.show {
  opacity: 1;
  pointer-events: auto;
}

.home-modal-content {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  padding: 3rem;
  position: relative;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.home-modal.show .home-modal-content {
  transform: scale(1) translateY(0);
}

.close-modal {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.3s;
}

.close-modal:hover {
  color: var(--accent);
}

.modal-title {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 2rem;
}

.modal-body {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-main);
}

.modal-body p {
  margin-bottom: 1.5rem;
}

.modal-body p span {
  display: block;
}

/* Contact Redesign Styles */
.contact-modal-content {
  max-width: 500px;
}

.contact-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.contact-intro {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: -1rem;
}

.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.contact-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-platform {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--text-main);
  transition: color 0.3s ease;
}

.contact-card:hover .contact-platform {
  color: var(--accent);
}

.contact-handle {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.contact-arrow {
  color: var(--text-muted);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.contact-card:hover .contact-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

/* =========================================
   RESPONSIVE DESIGN (MOBILE OPTIMIZATIONS)
   ========================================= */

@media (max-width: 1024px) {

  /* Global Header */
  .site-header {
    padding: 1rem 2rem;
  }

  /* Voyage: Gallery View */
  #gallery-view,
  #journal-view,
  #diary-view {
    flex-direction: column;
    padding: 2rem;
    gap: 2.5rem;
  }

  .sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
  }

  .filter-group {
    flex: 1 1 200px;
  }

  .filter-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
  }

  /* Voyage: Detail View */
  .back-btn {
    left: 2rem;
    top: 1.5rem;
    padding: 0.6rem 1.2rem;
  }

  .immerse-btn {
    right: 2rem;
    bottom: 1.5rem;
  }

  .share-btn {
    right: 12.5rem;
    left: auto;
    bottom: 1.5rem;
    width: auto;
    height: auto;
    border-radius: 20px;
    padding: 0.6rem 1.2rem;
  }

  .hero-section {
    height: 50vh;
  }

  .hero-overlay {
    padding: 2rem 2rem 1.5rem 2rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .detail-content {
    padding: 3rem 2rem;
  }

  .masonry-item {
    height: 30vh;
  }

  /* Home Page (Main Site) */
  body.home-body {
    height: auto;
    overflow-y: auto;
  }

  .home-main-wrapper {
    flex-direction: column;
    padding: 1rem 2rem 2rem 2rem;
    gap: 2rem;
  }

  .home-sidebar {
    width: 100%;
    justify-content: flex-start;
    gap: 1rem;
  }

  .intro-text {
    margin-top: 0;
  }

  .home-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 0;
  }

  .master-grid {
    flex-direction: column;
    height: auto;
    gap: 1.5rem;
  }

  .master-card {
    height: 250px;
    padding: 2rem;
    filter: grayscale(0%) brightness(0.85);
  }

  .master-card-subtitle {
    opacity: 1;
  }

  .home-copyright {
    display: none;
  }

  .home-footer {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.4rem 0 0.8rem 0;
    margin-top: -1rem;
  }

  .home-footer p {
    font-size: 0.65rem;
    color: var(--text-muted);
    opacity: 0.45;
    letter-spacing: 0.05em;
  }

  .master-card-content {
    transform: translateY(0);
    height: auto;
  }

  .master-card-title {
    min-height: auto;
  }
}

@media (max-width: 600px) {

  /* Global Header Mobile */
  .site-header {
    padding: 1rem 1.25rem;
    flex-wrap: wrap;
    gap: 0.8rem;
  }

  .logo {
    font-size: 0.95rem;
  }

  .site-subtitle {
    display: none;
    /* Hide subtitle to prevent squeeze on mobile */
  }

  .main-nav {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .lang-toggle-text,
  .nav-link {
    font-size: 0.75rem;
    white-space: nowrap;
  }

  /* Voyage: Gallery View Mobile */
  #gallery-view,
  #journal-view,
  #diary-view {
    padding: 1.5rem 1rem;
    gap: 2rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
  }

  .analog-card {
    padding: 1rem;
  }

  .sidebar {
    gap: 1.5rem;
  }

  .filter-group {
    flex: 1 1 100%;
  }

  /* Voyage: Detail View Mobile */
  .back-btn {
    left: 1rem;
    top: 1rem;
    font-size: 0.7rem;
    padding: 0.5rem 1rem;
  }

  .share-btn {
    right: 9.5rem;
    left: auto;
    bottom: 1.5rem;
    width: auto;
    height: auto;
    border-radius: 20px;
    padding: 0.5rem 1.1rem;
    font-size: 0.7rem;
  }

  .immerse-btn {
    right: 1.5rem;
    bottom: 1.5rem;
    font-size: 0.7rem;
    padding: 0.5rem 1.1rem;
    border-radius: 20px;
  }

  .close-lightbox {
    top: 20px;
    right: 25px;
    font-size: 32px;
  }

  .lightbox-immerse-btn {
    top: auto;
    right: auto;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.65rem 1.4rem;
    font-size: 0.7rem;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  }

  .lightbox-immerse-btn:hover {
    transform: translateX(-50%) translateY(-1px);
  }

  .hero-section {
    height: 45vh;
  }

  .hero-title {
    font-size: 1.8rem;
    margin-bottom: 0.4rem;
    line-height: 1.3;
  }

  .hero-overlay {
    padding: 2.5rem 1.5rem 1.5rem 1.5rem;
    background: linear-gradient(to top, rgba(18, 18, 18, 0.95) 0%, rgba(18, 18, 18, 0) 100%);
  }

  .detail-content {
    padding: 2.5rem 1.5rem;
  }

  .story-section {
    margin-bottom: 3.5rem;
  }

  .story-heading {
    font-size: 0.75rem;
    margin-bottom: 0.8rem;
    letter-spacing: 0.15em;
  }

  .story-title-display {
    font-size: 1.5rem;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
  }

  .story-text {
    font-size: 0.95rem;
    line-height: 1.9;
    color: #ccc;
    text-align: justify;
  }

  .other-perspectives-title {
    font-size: 1.0rem;
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
    padding-bottom: 0.8rem;
  }

  .scroll-hint {
    font-size: 0.65rem;
    margin-top: 0.5rem;
  }

  .masonry-grid {
    gap: 1rem;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
  }

  .masonry-item {
    height: 25vh;
    border-radius: 4px;
  }

  .site-footer {
    padding: 1.5rem 1.5rem;
    border-top: none;
    background: transparent;
  }

  .footer-content {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .footer-content p {
    font-size: 0.65rem;
    color: var(--text-muted);
    opacity: 0.45;
    letter-spacing: 0.05em;
  }

  .footer-links {
    justify-content: center;
    gap: 1.25rem;
    padding: 0;
    margin: 0;
  }

  .footer-links li a {
    font-size: 0.65rem;
    color: var(--text-muted);
    opacity: 0.45;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: opacity 0.3s, color 0.3s;
  }

  .footer-links li a:hover {
    opacity: 1;
    color: var(--accent);
  }

  /* Home Page Mobile */
  .home-main-wrapper {
    padding: 0.75rem 1.25rem 2rem 1.25rem;
    gap: 1.5rem;
  }

  .home-sidebar {
    gap: 0.75rem;
  }

  .home-nav {
    gap: 1.5rem;
  }

  .master-card {
    height: 200px;
    padding: 1.5rem;
    filter: grayscale(0%) brightness(0.85);
  }

  .intro-text {
    font-size: 0.85rem;
    margin-top: 0;
  }

  /* Modals Mobile */
  .home-modal-content {
    padding: 2rem 1.5rem;
    width: 92%;
  }

  .modal-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .modal-body {
    font-size: 0.85rem;
    line-height: 1.6;
  }

  .close-modal {
    top: 1.25rem;
    right: 1.25rem;
  }

  .contact-header {
    margin-bottom: 1.5rem;
  }

  .contact-intro {
    font-size: 0.8rem;
  }

  .contact-card {
    padding: 1rem;
  }

  .contact-platform {
    font-size: 1rem;
  }
}

/* =========================================
   THE JOURNAL (EMPTY STATE) STYLES
   ========================================= */
.journal-empty-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem;
}

.journal-empty-card {
  max-width: 600px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 4rem;
  border-radius: 4px;
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
  transition: border-color 0.5s ease;
}

.journal-empty-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.journal-empty-icon {
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 1.5rem;
  opacity: 0.6;
}

.journal-empty-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: #fff;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.journal-empty-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2.5rem;
  letter-spacing: 0.05em;
}

.journal-empty-loading-bar {
  width: 120px;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.journal-empty-loading-progress {
  width: 50px;
  height: 100%;
  background: var(--accent);
  position: absolute;
  top: 0;
  left: -50px;
  animation: loading-bar-move 2.5s infinite cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes loading-bar-move {
  0% {
    left: -50px;
  }

  100% {
    left: 120px;
  }
}

/* Mobile optimizations for Journal */
@media (max-width: 768px) {
  .journal-empty-container {
    padding: 2rem 1.5rem;
  }

  .journal-empty-card {
    padding: 2.5rem 1.5rem;
  }

  .journal-empty-title {
    font-size: 1.4rem;
  }

  .journal-empty-text {
    font-size: 0.85rem;
    line-height: 1.6;
  }
}

@keyframes zen-fade-in {
  from {
    opacity: 1;
    clip-path: inset(12% 15% 12% 15% round 12px);
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    clip-path: inset(0% 0% 0% 0% round 0px);
    transform: scale(1);
  }
}

@keyframes zen-fade-out {
  from {
    opacity: 1;
    clip-path: inset(0% 0% 0% 0% round 0px);
    transform: scale(1);
  }

  to {
    opacity: 0;
    clip-path: inset(12% 15% 12% 15% round 12px);
    transform: scale(0.9);
  }
}

/* Disable immersive zoom buttons on portrait screen orientation */
@media (orientation: portrait) {
  .immerse-btn {
    display: none !important;
  }

  .lightbox-immerse-btn {
    display: none !important;
  }

  .share-btn {
    right: 1.5rem !important;
    left: auto !important;
    bottom: 1.5rem !important;
    width: 2.4rem !important;
    height: 2.4rem !important;
    border-radius: 50% !important;
    padding: 0 !important;
  }

  .share-btn .detail-share-icon {
    display: block !important;
  }

  .share-btn .share-text {
    display: none !important;
  }
}

/* =========================================
   SEARCH SYSTEM STYLES
   ========================================= */

/* Search Trigger Button */
.search-trigger-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 4px 10px;
}

.search-trigger-btn:hover {
  color: var(--accent) !important;
}

.search-btn-icon {
  margin-top: -1px;
}

/* Search Modal Overlay */
.search-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 10vh;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.search-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.search-modal-content {
  width: 90%;
  max-width: 800px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 0 1rem;
}

.close-search {
  position: absolute;
  top: -4rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 2.5rem;
  cursor: pointer;
  transition: color 0.3s;
}

.close-search:hover {
  color: var(--accent);
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.8rem 0;
  transition: border-color 0.3s;
}

.search-input-wrapper:focus-within {
  border-color: var(--accent);
}

.search-input-icon {
  color: var(--text-muted);
  margin-right: 1rem;
  flex-shrink: 0;
}

.search-input-wrapper:focus-within .search-input-icon {
  color: var(--accent);
}

#search-input {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  font-family: inherit;
  width: 100%;
  outline: none;
}

#search-input::placeholder {
  color: rgba(255, 255, 255, 0.25);
  font-family: inherit;
  font-weight: 300;
}

/* Results Container */
.search-results-container {
  max-height: 65vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 2rem;
  padding-right: 0.5rem;
}

/* Scrollbar styling for results */
.search-results-container::-webkit-scrollbar {
  width: 4px;
}

.search-results-container::-webkit-scrollbar-track {
  background: transparent;
}

.search-results-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.search-results-container::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Search result item */
.search-result-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  cursor: pointer;
}

.search-result-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.search-result-img-container {
  width: 90px;
  height: 65px;
  overflow: hidden;
  border-radius: 2px;
  background-color: #1a1a1a;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.search-result-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.search-result-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.search-result-title {
  font-family: 'Playfair Display', 'Noto Serif SC', serif;
  font-size: 1.15rem;
  color: var(--accent);
  margin: 0;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.search-result-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Sub-site Address Label Tag */
.subsite-label {
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  background: rgba(212, 196, 168, 0.1);
  border: 1px solid rgba(212, 196, 168, 0.3);
  color: var(--accent);
  border-radius: 2px;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
}

/* No results styling */
.search-no-results {
  text-align: center;
  color: var(--text-muted);
  padding: 4rem 0;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

/* Entry Detail Modal overrides */
.entry-detail-modal-content {
  max-width: 700px;
}

.entry-detail-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 1.5rem;
}

.entry-detail-subsite-label {
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.entry-detail-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-family: 'Inter', sans-serif;
}

.entry-detail-image-wrapper {
  width: 100%;
  max-height: 350px;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.entry-detail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.entry-detail-text {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #ccc;
  text-align: justify;
}

.entry-detail-exif {
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2rem;
  text-align: right;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1rem;
}

@media (max-width: 768px) {
  .search-modal-overlay {
    padding-top: 4rem;
    align-items: flex-start;
  }
  
  .search-modal-content {
    width: 92%;
    gap: 1.5rem;
    padding: 0;
  }

  .close-search {
    position: fixed;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    z-index: 2100;
  }

  #search-input {
    font-size: 1.2rem; /* Comfortable size, prevents auto-zoom on iOS */
  }

  .search-input-wrapper {
    padding: 0.6rem 0;
  }

  .search-results-container {
    max-height: calc(100vh - 160px);
    gap: 1rem;
  }

  .search-result-item {
    padding: 0.8rem;
    gap: 0.8rem;
  }

  .search-result-img-container {
    width: 70px;
    height: 50px;
  }

  .search-result-title {
    font-size: 0.95rem;
    white-space: normal;
    line-height: 1.4;
  }

  .search-result-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
  }

  .search-result-meta {
    font-size: 0.75rem;
  }

  .search-result-excerpt {
    font-size: 0.8rem;
    -webkit-line-clamp: 2;
  }

  .search-trigger-btn {
    gap: 0;
    padding: 4px 6px;
  }

  .search-trigger-btn span {
    display: none !important;
  }
}

/* =========================================
   PRIVATE VAULT (EASTER EGG) STYLES
   ========================================= */
.private-vault-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 3000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.private-vault-overlay.show {
  opacity: 1;
  visibility: visible;
}

.private-vault-content {
  width: 90%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: 2.5rem;
  background: rgba(20, 20, 20, 0.6);
  border: 1px solid rgba(212, 196, 168, 0.2);
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 0 40px rgba(212, 196, 168, 0.05);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  overflow: hidden;
}

.private-vault-overlay.show .private-vault-content {
  transform: scale(1) translateY(0);
}

/* Gold vault glow scanner line */
.private-vault-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 196, 168, 0.05), transparent);
  transform: skewX(-25deg);
  animation: vault-scan 6s infinite linear;
}

@keyframes vault-scan {
  0% { left: -100%; }
  100% { left: 200%; }
}

.vault-header {
  text-align: center;
  border-bottom: 1px solid rgba(212, 196, 168, 0.15);
  padding-bottom: 1.5rem;
}

.vault-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

.vault-title {
  font-family: 'Playfair Display', 'Noto Serif SC', serif;
  font-size: 2rem;
  color: #fff;
  letter-spacing: 0.1em;
  margin: 0;
  text-shadow: 0 0 10px rgba(212, 196, 168, 0.3);
}

.vault-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
}

.vault-card {
  background: rgba(30, 30, 30, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.4s ease;
  position: relative;
  cursor: default;
}

.vault-card:hover {
  border-color: var(--accent);
  background: rgba(212, 196, 168, 0.03);
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.vault-card-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.5rem;
}

.vault-card-title {
  font-family: 'Playfair Display', 'Noto Serif SC', serif;
  font-size: 1.15rem;
  color: var(--accent);
  margin: 0 0 0.3rem 0;
}

.vault-card-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
}

.vault-card-body {
  font-size: 0.88rem;
  line-height: 1.8;
  color: #bbb;
  text-align: justify;
}

.vault-card-footer {
  margin-top: auto;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: monospace;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.5rem;
}

.lock-vault-btn {
  align-self: center;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.8rem 2.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s;
  text-transform: uppercase;
  margin-top: 1rem;
}

.lock-vault-btn:hover {
  background: var(--accent);
  color: #121212;
  box-shadow: 0 0 15px rgba(212, 196, 168, 0.4);
}

/* Unlock animation effect classes */
.search-input-wrapper.vault-unlocked-glow {
  border-color: var(--accent) !important;
  box-shadow: 0 0 15px rgba(212, 196, 168, 0.5);
  animation: pulse-glow 1.5s infinite alternate;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 5px rgba(212, 196, 168, 0.2); }
  100% { box-shadow: 0 0 20px rgba(212, 196, 168, 0.6); }
}

/* Unlock error shake animation classes */
@keyframes vaultShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.vault-error-shake {
  animation: vaultShake 0.4s ease-in-out;
  border-color: #ff3333 !important;
  box-shadow: 0 0 15px rgba(255, 51, 51, 0.4) !important;
}

.error-placeholder::placeholder {
  color: #ff5555 !important;
}

/* L2 Verification Modal Styles */
.vault-l2-overlay {
  align-items: center !important;
  padding-top: 0 !important;
}

.vault-l2-content {
  max-width: 440px !important;
  background: rgba(18, 18, 18, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  padding: 2.5rem 2rem !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6) !important;
  gap: 1.5rem !important;
}

.vault-l2-content .search-trigger-btn {
  padding: 0.6rem 1.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.vault-l2-content .search-trigger-btn:hover {
  opacity: 0.8;
}

/* Decryption Success Animation */
.search-modal-overlay.vault-decrypt-success {
  background-color: #121212 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: background-color 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.vault-decrypt-success .vault-l2-content,
.vault-decrypt-success .search-modal-content {
  animation: vaultUnlock 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes vaultUnlock {
  0% {
    transform: scale(1);
    filter: blur(0);
    opacity: 1;
  }
  100% {
    transform: scale(1.05);
    filter: blur(8px);
    opacity: 0;
  }
}

/* =========================================
   PRIVATE VAULT NEW BLOCK LAYOUT STYLES
   ========================================= */
.vault-page-container {
  flex: 1;
  width: 90%;
  max-width: 1000px;
  margin: 8rem auto 4rem auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 0 1.5rem;
}

.vault-blocks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem 4rem;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .vault-blocks-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.vault-block-item {
  display: flex;
  flex-direction: column;
  background: transparent !important;
  border: 1px solid rgba(212, 196, 168, 0.12) !important;
  padding: 2.5rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

a.vault-block-item:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 196, 168, 0.4) !important;
  box-shadow: 0 10px 30px rgba(212, 196, 168, 0.03);
}

.vault-block-meta {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--accent);
  margin-bottom: 1rem;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.vault-block-title {
  font-family: 'Playfair Display', 'Noto Serif SC', serif;
  font-size: 1.8rem;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  color: var(--text-main);
  transition: color 0.3s ease;
}

.vault-block-item:hover .vault-block-title {
  color: var(--accent);
}

.vault-block-description {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.vault-block-action {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: auto;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

a.vault-block-item:hover .vault-block-action {
  transform: translateX(6px);
  text-shadow: 0 0 10px rgba(212, 196, 168, 0.3);
}

.vault-block-item:not(a) {
  cursor: default;
  opacity: 0.5;
}

.vault-block-item:not(a) .vault-block-action {
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

/* =========================================
   MATHEMATICAL WORKBENCH STYLES
   ========================================= */
body.math-body {
  background-color: var(--bg-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  opacity: 1 !important;
}

.math-page-container {
  flex: 1;
  width: 90%;
  max-width: 1200px;
  margin: 8rem auto 4rem auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.math-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.math-intro h2 {
  font-family: 'Playfair Display', 'Noto Serif SC', serif;
  font-size: 2.2rem;
  color: var(--accent);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.math-intro p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 300;
}

/* Grid Layout for Tools */
.math-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

@media (max-width: 1024px) {
  .math-tools-grid {
    grid-template-columns: 1fr;
  }
}

.math-tool-card {
  background: rgba(18, 18, 18, 0.4);
  border: 1px solid rgba(212, 196, 168, 0.12);
  border-radius: 8px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.math-tool-card:hover {
  border-color: rgba(212, 196, 168, 0.3);
  box-shadow: 0 15px 35px rgba(212, 196, 168, 0.03);
}

.tool-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 1rem;
}

.tool-title {
  font-family: 'Playfair Display', 'Noto Serif SC', serif;
  font-size: 1.4rem;
  color: var(--text-main);
  margin-bottom: 0.4rem;
  letter-spacing: 0.05em;
}

.tool-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.8;
}

/* Styling Common Elements */
.math-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.math-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--text-main);
  text-transform: uppercase;
}

.math-input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 0.8rem 1rem;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.math-input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(212, 196, 168, 0.02);
}

.math-input.monospace {
  font-family: 'Fira Code', 'Courier New', monospace;
}

.math-btn {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.8rem 1.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.math-btn:hover {
  background: var(--accent);
  color: #121212;
  box-shadow: 0 0 10px rgba(212, 196, 168, 0.3);
}

.math-result {
  background: rgba(0, 0, 0, 0.2);
  border: 1px dashed rgba(212, 196, 168, 0.2);
  padding: 1rem;
  border-radius: 4px;
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 0.85rem;
  color: var(--accent);
  word-break: break-all;
  min-height: 3rem;
  display: flex;
  align-items: center;
}

/* Plotter Canvas Styles */
.canvas-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
}

#plotter-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}

#plotter-canvas:active {
  cursor: grabbing;
}

.plotter-controls {
  display: flex;
  gap: 0.5rem;
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 5;
}

.plotter-btn {
  background: rgba(18, 18, 18, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 4px;
  font-family: monospace;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.plotter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.plotter-coords {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(18, 18, 18, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
  font-family: 'Fira Code', monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  pointer-events: none;
}

/* Matrix Grid Styles */
.matrix-tabs {
  display: flex;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.5rem;
}

.matrix-tab {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.3s;
  text-transform: uppercase;
}

.matrix-tab.active {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
}

.matrix-grid {
  display: grid;
  gap: 0.5rem;
  max-width: 200px;
  margin: 1rem 0;
}

.matrix-grid.dim-2 {
  grid-template-columns: repeat(2, 1fr);
}

.matrix-grid.dim-3 {
  grid-template-columns: repeat(3, 1fr);
}

.matrix-cell {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 0.5rem;
  text-align: center;
  font-family: 'Fira Code', monospace;
  font-size: 0.9rem;
  border-radius: 4px;
}

.matrix-cell:focus {
  outline: none;
  border-color: var(--accent);
}

.matrix-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Base Converter & Bitwise Styles */
.converter-outputs {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  background: rgba(0, 0, 0, 0.1);
  padding: 1rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.conv-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Fira Code', monospace;
  font-size: 0.8rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

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

.conv-label {
  color: var(--accent);
  font-weight: 500;
}

.conv-val {
  color: #fff;
  word-break: break-all;
  text-align: right;
}

.bitwise-sandbox {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  padding-top: 1.2rem;
}

.bitwise-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.bitwise-op-select {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 0.5rem;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
}

.bitwise-op-select:focus {
  outline: none;
  border-color: var(--accent);
}

.bitwise-visual {
  font-family: 'Fira Code', monospace;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-muted);
  background: #0d0d0d;
  padding: 0.8rem;
  border-radius: 4px;
  white-space: pre;
  overflow-x: auto;
}

/* Cryptographic Sandbox Styles */
.crypto-tab-btns {
  display: flex;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.5rem;
}

.crypto-panel {
  display: none;
  flex-direction: column;
  gap: 1rem;
}

.crypto-panel.active {
  display: flex;
}

/* =========================================
   SHARE FUNCTIONALITY STYLES
   ========================================= */

/* Navigation Header Share Icon styling */
.nav-share-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  vertical-align: middle;
}

.nav-share-link:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #000 !important;
  border-color: #fff;
  transform: translateY(-1px);
}

.nav-share-icon {
  stroke: currentColor;
}

/* Detail View Share Button (Text Button on Desktop/Landscape, Icon Button on Mobile Portrait) */
.share-btn {
  position: absolute;
  bottom: 2.5rem;
  right: 14.5rem; /* Next to immerse-btn which is at right: 4rem */
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  padding: 0.6rem 1.4rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 20px;
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.share-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #000;
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.share-btn .detail-share-icon {
  display: none;
}

.share-btn .share-text {
  display: inline;
}

.detail-share-icon {
  stroke: currentColor;
}

.hero-section.zen-mode .share-btn {
  opacity: 0;
  pointer-events: none;
}

/* Entry Detail Modal Share Button (Diary & Journal) */
.entry-share-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  padding: 0.4rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
  align-self: flex-start;
}

.entry-share-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.share-popup-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.share-popup-modal.show {
  display: flex;
  opacity: 1;
}

/* Modal Content Container */
.share-popup-content {
  background: #161616;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  width: 90%;
  max-width: 780px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8);
  position: relative;
  overflow: hidden;
  animation: modalSlideUp 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes modalSlideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Close Button */
.share-close-btn {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 10;
  transition: color 0.2s;
}

.share-close-btn:hover {
  color: #fff;
}

/* Share Layout */
.share-layout {
  display: flex;
  width: 100%;
}

/* Left: Poster Preview (takes 53%) */
.share-preview-column {
  flex: 53;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: #0f0f0f;
  padding: 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  box-sizing: border-box;
}

/* Right: Share Controls (takes 47%) */
.share-controls-column {
  flex: 47;
  padding: 3.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  background: #161616;
}

/* Share Controls Texts */
.share-modal-title {
  font-family: 'Playfair Display', 'Noto Serif SC', serif;
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.share-modal-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2.2rem;
}

/* Action Buttons Container */
.share-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Share Action Buttons */
.share-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 0.9rem 1.5rem;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  letter-spacing: 0.05em;
}

.share-action-btn.copy-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.4);
}

.share-action-btn.image-btn {
  background: var(--accent);
  color: #121212;
  border-color: var(--accent);
}

.share-action-btn.image-btn:hover {
  background: #fff;
  border-color: #fff;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(229, 193, 88, 0.25);
}

.share-action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-icon {
  flex-shrink: 0;
}

/* Toast Message */
.share-toast {
  position: fixed;
  bottom: 2.5rem;
  left: 50%;
  transform: translate(-50%, 20px);
  background: #0d0d0d;
  border: 1px solid var(--accent);
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.share-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Spin animation for button loader */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* =========================================
   POSTER CARD COMPONENT STYLES
   ========================================= */

.share-poster-card {
  background: #121212;
  box-sizing: border-box;
  width: 100%;
  color: #fff;
  font-family: 'Inter', sans-serif;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Double Frame Border */
.share-poster-card .poster-inner-frame {
  border: 1px solid rgba(229, 193, 88, 0.35); /* Gold outer border */
  outline: 1px solid rgba(255, 255, 255, 0.04); /* White inner border offset */
  outline-offset: -8px;
  padding: 30px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Category Label */
.share-poster-card .poster-category {
  margin-bottom: 20px;
  text-align: left;
}

.share-poster-card .poster-category-primary {
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--accent, #e5c158);
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.share-poster-card .poster-category-secondary {
  font-size: 9px;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  margin-top: 4px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Image Container */
.share-poster-card .poster-image-container {
  width: 100%;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}

.share-poster-card .poster-image {
  width: 100%;
  display: block;
}

/* Text Art placeholder for text-only posters */
.share-poster-card .poster-text-art {
  width: 100%;
  aspect-ratio: 1.5;
  border: 1px dashed rgba(229, 193, 88, 0.12);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  background: radial-gradient(circle, rgba(229, 193, 88, 0.02) 0%, transparent 75%);
  margin-bottom: 20px;
  position: relative;
  box-sizing: border-box;
}

.share-poster-card .poster-quote-mark {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  line-height: 1;
  color: rgba(229, 193, 88, 0.04);
  position: absolute;
  top: 5px;
  left: 15px;
}

.share-poster-card .poster-art-title {
  font-family: 'Playfair Display', 'Noto Serif SC', serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.4;
  padding: 0 10px;
}

.share-poster-card .poster-art-sub {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--accent, #e5c158);
  text-transform: uppercase;
}

/* Titles and Metadata */
.share-poster-card .poster-details {
  margin-bottom: 15px;
  text-align: left;
}

.share-poster-card .poster-title-en {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
  color: #ffffff;
  margin: 0 0 6px 0;
}

.share-poster-card .poster-title-zh {
  font-family: 'Noto Serif SC', serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--accent, #e5c158);
  margin: 0 0 12px 0;
}

.share-poster-card .poster-meta-row {
  font-size: 10.5px;
  color: #777;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 10px;
  box-sizing: border-box;
}

/* Poster text contents */
.share-poster-card .poster-content {
  margin-bottom: 15px;
  text-align: left;
}

.share-poster-card .poster-content p {
  font-size: 12px;
  line-height: 1.75;
  text-align: justify;
  margin: 0 0 10px 0;
}

.share-poster-card .poster-content p:last-child {
  margin-bottom: 0;
}

.share-poster-card .poster-text-zh {
  font-family: 'Noto Serif SC', serif;
  color: #cccccc;
}

.share-poster-card .poster-text-en {
  font-family: 'Playfair Display', serif;
  color: #949494;
  font-style: italic;
}

/* EXIF display */
.share-poster-card .poster-exif {
  font-family: monospace;
  font-size: 9.5px;
  color: #666666;
  margin-bottom: 20px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.015);
  border-left: 2px solid var(--accent, #e5c158);
  letter-spacing: 0.05em;
  line-height: 1.3;
  text-align: left;
}

/* Footer Section */
.share-poster-card .poster-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

.share-poster-card .poster-footer-branding {
  text-align: left;
}

.share-poster-card .poster-brand-name {
  font-size: 12px;
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.share-poster-card .poster-brand-sub {
  font-size: 9px;
  color: #666666;
  margin-top: 4px;
  line-height: 1.3;
}

.share-poster-card .poster-qrcode-box {
  width: 64px;
  height: 64px;
  background: #ffffff;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  box-sizing: border-box;
}

.share-poster-card .poster-qrcode-box img {
  width: 100% !important;
  height: 100% !important;
}

/* =========================================
   SPECIFIC STYLES FOR EXPORT MODE VS PREVIEW MODE
   ========================================= */

/* Modal Preview (280px wide) Specific overrides to keep it compact */
.share-card-preview {
  width: 100%;
  max-width: 280px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
}

.share-card-preview .share-poster-card .poster-inner-frame {
  padding: 16px;
  outline-offset: -5px;
}

.share-card-preview .share-poster-card .poster-category {
  margin-bottom: 12px;
}

.share-card-preview .share-poster-card .poster-category-primary {
  font-size: 8.5px;
}

.share-card-preview .share-poster-card .poster-category-secondary {
  font-size: 7px;
  margin-top: 2px;
}

.share-card-preview .share-poster-card .poster-image-container {
  margin-bottom: 12px;
  aspect-ratio: 4/3;
}

.share-card-preview .share-poster-card .poster-image {
  height: 100%;
  object-fit: cover;
}

.share-card-preview .share-poster-card .poster-text-art {
  margin-bottom: 12px;
  padding: 0.8rem;
  aspect-ratio: 1.5;
}

.share-card-preview .share-poster-card .poster-quote-mark {
  font-size: 2rem;
  top: 2px;
  left: 8px;
}

.share-card-preview .share-poster-card .poster-art-title {
  font-size: 0.75rem;
  margin-bottom: 4px;
}

.share-card-preview .share-poster-card .poster-art-sub {
  font-size: 0.55rem;
}

.share-card-preview .share-poster-card .poster-details {
  margin-bottom: 10px;
}

.share-card-preview .share-poster-card .poster-title-en {
  font-size: 11.5px;
  margin-bottom: 2px;
}

.share-card-preview .share-poster-card .poster-title-zh {
  font-size: 10.5px;
  margin-bottom: 6px;
}

.share-card-preview .share-poster-card .poster-meta-row {
  font-size: 8px;
  padding-bottom: 6px;
}

.share-card-preview .share-poster-card .poster-content {
  margin-bottom: 10px;
  max-height: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.share-card-preview .share-poster-card .poster-content p {
  font-size: 8.5px;
  line-height: 1.45;
  margin-bottom: 4px;
}

.share-card-preview .share-poster-card .poster-exif {
  font-size: 7.5px;
  margin-bottom: 12px;
  padding: 4px 6px;
}

.share-card-preview .share-poster-card .poster-footer {
  padding-top: 10px;
}

.share-card-preview .share-poster-card .poster-brand-name {
  font-size: 8.5px;
}

.share-card-preview .share-poster-card .poster-brand-sub {
  font-size: 7px;
  margin-top: 2px;
}

.share-card-preview .share-poster-card .poster-qrcode-box {
  width: 44px;
  height: 44px;
  padding: 2px;
  border-radius: 2px;
}

/* High-Res Capture Element (Fixed 600px wide) Specific overrides */
.share-poster-capture {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 600px;
  box-sizing: border-box;
}

.share-poster-capture .share-poster-card {
  width: 600px;
  border-radius: 0;
}

.share-poster-capture .share-poster-card .poster-inner-frame {
  padding: 40px;
  outline-offset: -12px;
}

.share-poster-capture .share-poster-card .poster-category {
  margin-bottom: 25px;
}

.share-poster-capture .share-poster-card .poster-category-primary {
  font-size: 13.5px;
}

.share-poster-capture .share-poster-card .poster-category-secondary {
  font-size: 10px;
  margin-top: 4px;
}

.share-poster-capture .share-poster-card .poster-image-container {
  margin-bottom: 30px;
}

.share-poster-capture .share-poster-card .poster-image {
  height: auto;
}

.share-poster-capture .share-poster-card .poster-text-art {
  margin-bottom: 30px;
  padding: 3rem 2rem;
  aspect-ratio: 1.5;
}

.share-poster-capture .share-poster-card .poster-quote-mark {
  font-size: 6rem;
  top: 10px;
  left: 25px;
}

.share-poster-capture .share-poster-card .poster-art-title {
  font-size: 1.45rem;
  margin-bottom: 12px;
}

.share-poster-capture .share-poster-card .poster-art-sub {
  font-size: 0.85rem;
}

.share-poster-capture .share-poster-card .poster-details {
  margin-bottom: 20px;
}

.share-poster-capture .share-poster-card .poster-title-en {
  font-size: 23px;
  margin-bottom: 6px;
}

.share-poster-capture .share-poster-card .poster-title-zh {
  font-size: 20px;
  margin-bottom: 15px;
}

.share-poster-capture .share-poster-card .poster-meta-row {
  font-size: 12px;
  padding-bottom: 12px;
}

.share-poster-capture .share-poster-card .poster-content {
  margin-bottom: 25px;
}

.share-poster-capture .share-poster-card .poster-content p {
  font-size: 14px;
  line-height: 1.85;
  margin-bottom: 12px;
}

.share-poster-capture .share-poster-card .poster-exif {
  font-size: 10.5px;
  margin-bottom: 35px;
  padding: 10px 14px;
}

.share-poster-capture .share-poster-card .poster-footer {
  padding-top: 25px;
}

.share-poster-capture .share-poster-card .poster-brand-name {
  font-size: 13.5px;
}

.share-poster-capture .share-poster-card .poster-brand-sub {
  font-size: 10px;
  margin-top: 4px;
}

.share-poster-capture .share-poster-card .poster-qrcode-box {
  width: 80px;
  height: 80px;
  padding: 4px;
}

/* =========================================
   RESPONSIVE LAYOUT ADJUSTMENTS FOR MODAL
   ========================================= */

@media (max-width: 768px) {
  .share-layout {
    flex-direction: column;
  }
  
  .share-preview-column {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2rem 1.5rem;
  }

  .share-card-preview {
    max-width: 250px;
  }

  .share-controls-column {
    padding: 2.5rem 1.5rem;
  }

  .share-modal-title {
    font-size: 1.5rem;
    text-align: center;
  }
  
  .share-modal-desc {
    margin-bottom: 1.5rem;
    text-align: center;
  }
}

/* Share Modal Language Switcher and Overrides */
.share-lang-btn {
  background: none;
  border: none;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.3s ease;
}

.share-lang-btn:hover {
  color: #fff;
}

.share-lang-btn.active {
  background: var(--accent);
  color: #121212;
  font-weight: 600;
}

.share-popup-modal.modal-lang-zh .lang-en {
  display: none !important;
}

.share-popup-modal.modal-lang-zh .lang-zh {
  display: block !important;
}

.share-popup-modal.modal-lang-en .lang-zh {
  display: none !important;
}

.share-popup-modal.modal-lang-en .lang-en {
  display: block !important;
}

/* Share Modal Style Switcher Buttons */
.share-style-btn {
  background: none;
  border: none;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.share-style-btn:hover {
  color: #fff;
}

.share-style-btn.active {
  background: var(--accent);
  color: #121212;
  font-weight: 600;
}

/* ==========================================================================
   MINIMAL STYLE OVERRIDES
   ========================================================================== */
.share-poster-card.style-minimal {
  background: #fcfbfa !important;
  color: #2a2a2a !important;
}

.share-poster-card.style-minimal .poster-inner-frame {
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  outline: 1px solid rgba(0, 0, 0, 0.03) !important;
  outline-offset: -8px;
}

.share-poster-card.style-minimal .poster-category-primary {
  color: #8a7b62 !important;
}

.share-poster-card.style-minimal .poster-category-secondary {
  color: rgba(0, 0, 0, 0.35) !important;
}

.share-poster-card.style-minimal .poster-image-container {
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
}

.share-poster-card.style-minimal .poster-text-art {
  border: 1px dashed rgba(138, 123, 98, 0.2) !important;
  background: radial-gradient(circle, rgba(138, 123, 98, 0.03) 0%, transparent 75%) !important;
}

.share-poster-card.style-minimal .poster-quote-mark {
  color: rgba(138, 123, 98, 0.08) !important;
}

.share-poster-card.style-minimal .poster-art-title {
  color: #2a2a2a !important;
}

.share-poster-card.style-minimal .poster-art-sub {
  color: #8a7b62 !important;
}

.share-poster-card.style-minimal .poster-title-en {
  color: #1a1a1a !important;
}

.share-poster-card.style-minimal .poster-title-zh {
  color: #8a7b62 !important;
}

.share-poster-card.style-minimal .poster-meta-row {
  color: #666 !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.share-poster-card.style-minimal .poster-content p {
  color: #444 !important;
}

.share-poster-card.style-minimal .poster-exif {
  background: rgba(0, 0, 0, 0.02) !important;
  color: #666 !important;
  border-left: 2px solid #8a7b62 !important;
}

.share-poster-card.style-minimal .poster-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.share-poster-card.style-minimal .poster-brand-name {
  color: #1a1a1a !important;
}

.share-poster-card.style-minimal .poster-brand-sub {
  color: #777 !important;
}

.share-poster-card.style-minimal .poster-qrcode-box {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

/* ==========================================================================
   POLAROID STYLE OVERRIDES (Handwritten Aesthetic)
   ========================================================================== */
.share-poster-card.style-polaroid {
  background: #faf9f6 !important;
  color: #222222 !important;
}

.share-poster-card.style-polaroid .poster-inner-frame {
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  outline: none !important;
  padding: 24px 24px 30px 24px !important;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.02) !important;
}

.share-poster-card.style-polaroid .poster-category {
  display: none !important;
}

.share-poster-card.style-polaroid .poster-image-container {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  background: #eae9e5 !important;
  border: 12px solid #ffffff !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06), inset 0 0 10px rgba(0,0,0,0.1) !important;
  margin-bottom: 24px !important;
  box-sizing: border-box;
}

.share-poster-card.style-polaroid .poster-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.share-poster-card.style-polaroid .poster-text-art {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  background: #ffffff !important;
  border: 12px solid #ffffff !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06) !important;
  margin-bottom: 24px !important;
  border-radius: 0 !important;
}

.share-poster-card.style-polaroid .poster-quote-mark {
  font-size: 5rem !important;
  color: rgba(138, 123, 98, 0.04) !important;
}

.share-poster-card.style-polaroid .poster-art-title {
  color: #333333 !important;
  font-family: 'Kaiti', 'STKaiti', 'Songti SC', serif !important;
}

.share-poster-card.style-polaroid .poster-details {
  margin-bottom: 12px !important;
  text-align: center !important;
}

.share-poster-card.style-polaroid .poster-title-en,
.share-poster-card.style-polaroid .poster-title-zh {
  font-family: 'Kaiti', 'STKaiti', 'Brush Script MT', cursive, serif !important;
  font-size: 18px !important;
  font-weight: 500 !important;
  color: #1a1a1a !important;
  margin-bottom: 4px !important;
}

.share-poster-card.style-polaroid .poster-meta-row {
  border-bottom: none !important;
  color: #666 !important;
  font-family: 'Kaiti', 'STKaiti', 'Brush Script MT', cursive, serif !important;
  font-size: 12px !important;
  margin-top: 4px !important;
}

.share-poster-card.style-polaroid .poster-content {
  margin-bottom: 24px !important;
  padding: 0 10px !important;
}

.share-poster-card.style-polaroid .poster-content p {
  font-family: 'Kaiti', 'STKaiti', 'Brush Script MT', cursive, serif !important;
  color: #333 !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  text-align: center !important;
}

.share-poster-card.style-polaroid .poster-exif {
  background: transparent !important;
  border-left: none !important;
  border-top: 1px dashed rgba(0,0,0,0.06) !important;
  color: #888 !important;
  font-family: monospace !important;
  font-size: 10px !important;
  margin-top: 10px !important;
  text-align: center !important;
}

.share-poster-card.style-polaroid .poster-footer {
  border-top: 1px dashed rgba(0, 0, 0, 0.08) !important;
  padding-top: 15px !important;
}

.share-poster-card.style-polaroid .poster-brand-name {
  color: #222 !important;
  font-family: 'Kaiti', 'STKaiti', 'Brush Script MT', cursive, serif !important;
  font-weight: 500 !important;
  font-size: 13px !important;
}

.share-poster-card.style-polaroid .poster-brand-sub {
  color: #777 !important;
  font-size: 8px !important;
}

.share-poster-card.style-polaroid .poster-qrcode-box {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.04) !important;
  padding: 3px !important;
}

/* ==========================================================================
   FOOTSTEP MAP VIEW STYLES
   ========================================================================== */
.map-view-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 1.5rem 2rem 1.5rem;
  box-sizing: border-box;
  width: 100%;
}

.map-wrapper {
  position: relative;
  width: 100%;
  max-width: 1150px;
  max-height: 70vh;
  aspect-ratio: 4 / 3;
  background: #161616;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  padding: 0.5rem;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.map-hint {
  display: none; /* Hidden on desktop, visible on mobile/tablet scrollable viewports */
  text-align: center;
  margin-top: 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.6;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.map-svg-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Styled map land masses (Dot-Matrix Grid) */
.map-grid-dot {
  fill: none;
  stroke: rgba(212, 196, 168, 0.15); /* Elegant warm accent gold */
  stroke-width: 2.2;
  vector-effect: non-scaling-stroke;
  transition: stroke 0.3s ease, stroke-width 0.3s ease;
}

.map-grid-dot:hover {
  stroke: rgba(255, 255, 255, 0.45); /* Highlighted white-gold */
  stroke-width: 4.0; /* Larger stroke-width on hover */
}

/* Coastline and Country Border Path styles */
.map-coastline-path {
  fill: none;
  stroke: rgba(212, 196, 168, 0.4); /* Brighter elegant warm-gold coastline */
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

.map-border-path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.35); /* Brighter country border lines */
  stroke-width: 0.8;
  stroke-dasharray: 3, 4;
  vector-effect: non-scaling-stroke;
}

.map-grid-line {
  stroke: rgba(255, 255, 255, 0.03);
  stroke-width: 1;
  stroke-dasharray: 4, 6;
  vector-effect: non-scaling-stroke;
}

/* Travel nodes (Map Pins) */
.map-pin-group {
  cursor: pointer;
}

.map-pin-pulse {
  fill: var(--accent, #d4c4a8);
  animation: pinPulse 2.5s infinite ease-out;
}

.map-pin-core {
  fill: var(--accent, #d4c4a8);
  stroke: #161616;
  stroke-width: calc(1.5px / var(--map-zoom, 1));
  r: calc(5px / var(--map-zoom, 1));
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.map-pin-group:hover .map-pin-core {
  fill: #ffffff;
  stroke: var(--accent, #d4c4a8);
  stroke-width: calc(2.2px / var(--map-zoom, 1));
}

.map-pin-group.filtered-out {
  opacity: 0.15;
  pointer-events: none;
}

@keyframes pinPulse {
  0% {
    r: calc(4px / var(--map-zoom, 1));
    opacity: 0.6;
  }
  100% {
    r: calc(20px / var(--map-zoom, 1));
    opacity: 0;
  }
}

/* Connecting travel curves */
.travel-route {
  fill: none;
  stroke: var(--accent, #d4c4a8);
  stroke-width: 1.5;
  stroke-linecap: round;
  opacity: 0.45;
  stroke-dasharray: 6, 4;
  animation: routeFlow 30s linear infinite;
  transition: all 0.5s ease;
}

.travel-route.filtered-out {
  opacity: 0.03;
}

.travel-route:hover {
  stroke: #ffffff;
  opacity: 0.8;
  stroke-width: 2.2;
}

@keyframes routeFlow {
  to {
    stroke-dashoffset: -100;
  }
}

/* Map hover tooltip */
.map-tooltip {
  position: absolute;
  background: rgba(26, 26, 26, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(229, 193, 88, 0.25);
  border-radius: 8px;
  padding: 12px;
  width: 240px; /* Enlarged tooltip card */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  transform: translate(-50%, calc(-100% - 5px)); /* Center horizontally and sit above the pin */
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
}

.map-tooltip.show {
  opacity: 1;
  transform: translate(-50%, calc(-100% - 15px)); /* Gently slide up with a clean gap */
}

.map-tooltip.tooltip-bottom {
  transform: translate(-50%, 5px); /* Start slightly below the pin when hidden */
}

.map-tooltip.tooltip-bottom.show {
  transform: translate(-50%, 15px); /* Gently slide down with a clean gap when shown */
}

.map-tooltip-image {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: #000;
}

.map-tooltip-title {
  font-family: 'Playfair Display', 'Noto Serif SC', serif;
  font-size: 0.95rem; /* Enlarged font */
  color: #fff;
  margin: 0;
  font-weight: 500;
  line-height: 1.3;
}

.map-tooltip-meta {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem; /* Enlarged font */
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
  letter-spacing: 0.05em;
}

/* Responsiveness for Map */
@media (max-width: 1024px) {
  .map-view-container {
    padding: 0 1rem 1.5rem 1rem;
  }
  
  .map-wrapper {
    aspect-ratio: auto;
    height: 480px;
    overflow: hidden;
    padding: 0;
    cursor: grab;
  }
  
  .map-svg-container {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
  }
  
  .map-hint {
    display: block; /* Show pan/zoom hint */
  }
}

@media (max-width: 768px) {
  .map-wrapper {
    height: 380px; /* Adjust height slightly for mobile viewports */
  }
}

/* =========================================
   MAINTENANCE / DISABLED CARD STYLES
   ========================================= */
.master-card.card-disabled {
  filter: grayscale(100%) brightness(0.25) !important;
  cursor: not-allowed;
}

.master-card.card-disabled:hover {
  flex: 1 !important;
}

.master-card.card-disabled:hover .master-card-bg {
  transform: none !important;
}

.master-card.card-disabled:hover .master-card-content {
  transform: translateY(20px) !important;
}

.master-card.card-disabled::before {
  content: attr(data-status-zh);
  position: absolute;
  top: 2rem;
  left: 1.5rem;
  z-index: 5;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  border: 1px solid rgba(212, 196, 168, 0.3);
  padding: 4px 12px;
  border-radius: 4px;
  background: rgba(18, 18, 18, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

body.lang-en .master-card.card-disabled::before {
  content: attr(data-status-en);
}