/* Permalink Styles */
.permalink-container {
  background-color: var(--bg-color);
  min-height: 100vh;
  padding: 2rem 0;
}

/* Article Header */
.article-header {
  margin-bottom: 3rem;
  position: relative;
}

/* --- Featured Article Styles (Permalink) --- */
.article-header.featured-article {
  border: 3px solid #ffc107;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 8px 24px rgba(255, 193, 7, 0.3);
  animation: featuredGlow 3s ease-in-out infinite;
}

.article-header.featured-article:hover {
  box-shadow: 0 12px 32px rgba(255, 193, 7, 0.5);
}

@keyframes featuredGlow {
  0%, 100% {
    box-shadow: 0 8px 24px rgba(255, 193, 7, 0.3);
  }
  50% {
    box-shadow: 0 12px 32px rgba(255, 193, 7, 0.5);
  }
}

.article-header .featured-badge {
  position: absolute;
  top: -12px;
  left: 12px;
  z-index: 10;
  background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
  color: #000;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  animation: badgePulse 2s ease-in-out infinite;
}

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

/* Featured article price styling */
.article-header.featured-article .price {
  font-size: 1.8rem;
  font-weight: 700;
}

.article-header.featured-article .article-title {
  font-size: 2.75rem;
  font-weight: 800;
}

/* Dark mode adjustments for featured articles */
[data-theme="dark"] .article-header.featured-article {
  border-color: #ffb300;
}

[data-theme="dark"] .article-header .featured-badge {
  background: linear-gradient(135deg, #ffb300 0%, #ff9800 100%);
}

/* Responsive adjustments for featured articles */
@media (max-width: 768px) {
  .article-header.featured-article {
    padding: 1rem;
  }
  
  .article-header .featured-badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }
  
  .article-header.featured-article .article-title {
    font-size: 2rem;
  }
}

.article-title-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.article-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-color);
  line-height: 1.2;
  margin: 0;
  flex: 1;
}

/* Bookmark button in permalink */
.article-header .btn-bookmark {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  color: var(--text-color);
  font-size: 1.25rem;
  position: relative;
}

.article-header .btn-bookmark:hover {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border-color: #dc3545;
  transform: scale(1.05);
}

.article-header .btn-bookmark.bookmarked {
  background: #dc3545;
  color: white;
  border-color: #dc3545;
}

.article-header .btn-bookmark.bookmarked:hover {
  background: #c82333;
  border-color: #bd2130;
}

.article-header .btn-bookmark:active {
  transform: scale(0.95);
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}

.price-section {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.currency {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-color);
}

.amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.negotiable-badge {
  background-color: var(--success-color, #28a745);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

.publication-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: right;
}

.publication-info span {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.publication-info i {
  margin-right: 0.5rem;
  opacity: 0.7;
}

/* Main Image Section */
.main-image-section {
  margin-bottom: 3rem;
}

.main-image-container {
  position: relative;
  width: 100%;
  height: 500px;
  border-radius: 12px;
  overflow: hidden;
  background-color: #f8f9fa;
}

.main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s ease;
}

.main-image.loading {
  opacity: 0;
}

.image-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 4px solid #e9ecef;
  border-top: 4px solid var(--primary-color, #0d6efd);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 10;
}

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

.image-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.main-image-container:hover .image-overlay {
  opacity: 1;
}

.image-overlay i {
  font-size: 24px;
}

/* Thumbnail Gallery */
.thumbnail-gallery {
  margin-top: 1rem;
}

.thumbnails {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.thumbnail-item {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.thumbnail-item.active {
  border-color: var(--primary-color);
}

.thumbnail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Content Sections */
.content-section {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

.description, .keypoints {
  line-height: 1.8;
  color: var(--text-color);
  font-size: 1.1rem;
}

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tag {
  background-color: var(--bg-secondary);
  color: var(--text-color);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--border-color);
}

/* Sidebar */
.sidebar-section {
  margin-bottom: 2.5rem;
}

.sidebar-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

/* Contact Card */
.contact-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.contact-card:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* User Type Specific Cards */
.basic-card {
  background: linear-gradient(135deg, rgba(108, 117, 125, 0.1), rgba(108, 117, 125, 0.05));
  border-color: rgba(108, 117, 125, 0.3);
}

.premium-card {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
  border-color: rgba(255, 215, 0, 0.3);
  box-shadow: 0 8px 32px rgba(255, 215, 0, 0.1);
}

.premium-card::before {
  background: linear-gradient(90deg, #ffd700, #ffed4e);
}

.store-card {
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(0, 123, 255, 0.05));
  border-color: rgba(0, 123, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 123, 255, 0.1);
}

.store-card::before {
  background: linear-gradient(90deg, #007bff, #0056b3);
}

/* Contact Card Header */
.contact-card-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.author-avatar {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.avatar-ring {
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(45deg, transparent, transparent);
  animation: rotate 3s linear infinite;
}

.basic-ring {
  border-color: rgba(108, 117, 125, 0.5);
}

.premium-ring {
  border-color: rgba(255, 215, 0, 0.7);
  background: linear-gradient(45deg, rgba(255, 215, 0, 0.3), rgba(255, 215, 0, 0.1));
}

.store-ring {
  border-color: rgba(0, 123, 255, 0.7);
  background: linear-gradient(45deg, rgba(0, 123, 255, 0.3), rgba(0, 123, 255, 0.1));
}

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

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

.author-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
}

.author-type {
  margin-bottom: 0.5rem;
}

.type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.3rem 0.5rem;
  border-radius: 25px;
  font-size: 0.675rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.basic-badge {
  background: linear-gradient(135deg, #6c757d, #495057);
  color: white;
  box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.premium-badge {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #b8860b;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.store-badge {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

/* Contact Card Body */
.contact-card-body {
  margin-top: 1.5rem;
}

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

.contact-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.contact-btn:hover::before {
  left: 100%;
}

.contact-btn:hover {
  transform: translateX(5px);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
  color: var(--text-color);
}

.btn-icon {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.phone-btn .btn-icon {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
}

.whatsapp-btn .btn-icon {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
}

.email-btn .btn-icon {
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: white;
}

.website-btn .btn-icon {
  background: linear-gradient(135deg, #6f42c1, #5a32a3);
  color: white;
}

.lo-quiero-btn .btn-icon {
  background: linear-gradient(135deg, var(--primary-color, #6f42c1), var(--secondary-color, #5a32a3));
  color: white;
  animation: heartbeat 1.5s ease-in-out infinite;
}

.lo-quiero-btn {
  background: linear-gradient(135deg, rgba(111, 66, 193, 0.1), rgba(90, 50, 163, 0.1));
  animation: pulse-glow 2s ease-in-out infinite;
}

.lo-quiero-btn:hover {
  background: linear-gradient(135deg, rgba(111, 66, 193, 0.2), rgba(90, 50, 163, 0.2));
  transform: translateY(-3px) scale(1.02);
}

.lo-quiero-btn .btn-label {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary-color, #6f42c1);
}

.lo-quiero-btn .btn-value {
  color: var(--text-muted, #6c757d);
  font-size: 0.8rem;
}

.contact-btn:hover .btn-icon {
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-content {
  flex: 1;
  min-width: 0;
}

.btn-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-value {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-color);
  word-break: break-all;
}

/* Location */
.location {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background-color: var(--bg-secondary);
  border-radius: 8px;
  color: var(--text-color);
  border: 1px solid var(--border-color);
  margin-bottom: 1rem;
}

.location i {
  color: var(--success-color, #28a745);
  font-size: 1.125rem;
}

/* Permalink Map */
.permalink-map-container {
  width: 100%;
  height: 250px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  margin-top: 1rem;
  background-color: var(--bg-secondary);
}

.permalink-map-container .leaflet-container {
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

/* Leaflet dark mode support */
[data-theme="dark"] .permalink-map-container .leaflet-popup-content-wrapper,
[data-theme="dark"] .permalink-map-container .leaflet-popup-tip {
  background: var(--bg-secondary);
  color: var(--text-color);
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .permalink-map-container .leaflet-container {
  background: var(--bg-tertiary);
}

[data-theme="dark"] .permalink-map-container .leaflet-control-attribution {
  background: rgba(0, 0, 0, 0.7);
  color: #ccc;
}

[data-theme="dark"] .permalink-map-container .leaflet-bar a {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  color: var(--text-color);
}

[data-theme="dark"] .permalink-map-container .leaflet-bar a:hover {
  background-color: var(--bg-tertiary);
}

/* Related Ads */
.related-ads-grid {
  margin-top: 1rem;
}

/* Show related ads in 2 columns in sidebar */
.related-ads-grid .col-6,
.related-ads-grid .col-md-4,
.related-ads-grid .col-lg-3,
.related-ads-grid .col-xl-2 {
  flex: 0 0 50%;
  max-width: 50%;
}

/* Apply EXACT same styles as home result cards */
.related-ads-grid .result-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s ease;
  position: relative;
  overflow: hidden;
  height: 260px;
  width: 100%;
  display: block;
  border: 3px solid transparent;
  border-radius: 16px;
  background-origin: border-box;
  background-clip: padding-box, border-box;
  background-image: linear-gradient(var(--card-bg), var(--card-bg)), linear-gradient(45deg, #667eea7b 0%, #764ba280 20%, #f193fb71 40%, #f5576c7b 60%, #4facfe7c 80%, #00f1fe74 100%);
  background-size: 100% 100%, 300% 100%;
}

.related-ads-grid .result-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.related-ads-grid .card-img-full {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.related-ads-grid .card-img-overlay-gradient {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.5rem 0.5rem 0.75rem 0.5rem;
  z-index: 2;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 62%, rgba(0, 0, 0, 0.0) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.related-ads-grid .result-price {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 0.15em;
  color: #ffffff;
  border-bottom: 1px solid #ffffff0f;
  text-shadow: 1px 1px 8px #000000;
  display: flex;
  align-items: baseline;
  gap: 0.25em;
}

.related-ads-grid .result-price .price-currency {
  font-size: 0.7em;
  font-weight: normal;
}

.related-ads-grid .result-desc {
  font-size: 0.9em;
  line-height: 1.3;
  color: #ffffff;
  text-shadow: 1px 1px 4px #000000;
}

/* Responsive Design */
@media (max-width: 768px) {
  .permalink-container {
      padding: 1rem 0;
  }
  
  .article-title-row {
      gap: 0.75rem;
  }
  
  .article-title {
      font-size: 2rem;
  }
  
  .article-header .btn-bookmark {
      width: 45px;
      height: 45px;
      font-size: 1.125rem;
  }
  
  .amount {
      font-size: 2rem;
  }
  
  .main-image-container {
      height: 350px;
  }
  
  .article-meta {
      flex-direction: column;
      align-items: flex-start;
  }
  
  .publication-info {
      text-align: left;
  }
  
  .author-avatar {
      margin: 0 auto;
  }
  
  .contact-card {
      padding: 1.5rem;
  }
  
  .contact-btn {
      padding: 0.875rem 1.25rem;
  }
  
  .btn-icon {
      width: 40px;
      height: 40px;
      font-size: 1.125rem;
  }
  
  /* Related ads - keep 2 columns on tablet */
  .related-ads-grid .col-6,
  .related-ads-grid .col-md-4,
  .related-ads-grid .col-lg-3,
  .related-ads-grid .col-xl-2 {
      flex: 0 0 50%;
      max-width: 50%;
  }
  
  .related-ads-grid .result-card {
      height: 220px;
  }
}

@media (max-width: 576px) {
  .article-title-row {
      gap: 0.5rem;
  }
  
  .article-title {
      font-size: 1.75rem;
  }
  
  .article-header .btn-bookmark {
      width: 40px;
      height: 40px;
      font-size: 1rem;
  }
  
  .amount {
      font-size: 1.75rem;
  }
  
  .main-image-container {
      height: 250px;
  }
  
  .thumbnail-item {
      width: 70px;
      height: 70px;
  }
  
  /* Related ads - 2 columns on small mobile for better use of space */
  .related-ads-grid .col-6,
  .related-ads-grid .col-md-4,
  .related-ads-grid .col-lg-3,
  .related-ads-grid .col-xl-2 {
      flex: 0 0 50%;
      max-width: 50%;
  }
  
  .related-ads-grid .result-card {
      height: 180px;
  }
  
  .related-ads-grid .result-desc {
      font-size: 0.8em;
  }
  
  .related-ads-grid .result-price {
      font-size: 1em;
  }
}

/* Gallery Modal Styles */
.gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-modal-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: white;
  font-size: 24px;
  z-index: 10000;
  text-decoration: none;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.gallery-modal-close:hover {
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
}

.gallery-modal .swiper {
  width: 100%;
  height: 100%;
}

.gallery-modal .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-modal .swiper-zoom-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-modal .swiper-zoom-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.gallery-modal .swiper-button-next,
.gallery-modal .swiper-button-prev {
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  margin-top: -25px;
  transition: background-color 0.2s ease;
}

.gallery-modal .swiper-button-next:hover,
.gallery-modal .swiper-button-prev:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.gallery-modal .swiper-pagination {
  color: white;
}

.gallery-modal .swiper-pagination-bullet {
  background-color: white;
  opacity: 0.5;
}

.gallery-modal .swiper-pagination-bullet-active {
  opacity: 1;
}

@media (max-width: 768px) {
  .gallery-modal .swiper-button-next,
  .gallery-modal .swiper-button-prev {
      width: 40px;
      height: 40px;
      margin-top: -20px;
  }
  
  .gallery-modal-close {
      top: 10px;
      right: 10px;
      width: 35px;
      height: 35px;
      font-size: 18px;
  }
  
  .image-overlay {
      width: 50px;
      height: 50px;
  }
  
  .image-overlay i {
      font-size: 20px;
  }
}

@media (max-width: 576px) {
  .gallery-modal .swiper-button-next,
  .gallery-modal .swiper-button-prev {
      width: 35px;
      height: 35px;
      margin-top: -17.5px;
  }
  
  .gallery-modal-close {
      top: 5px;
      right: 5px;
      width: 30px;
      height: 30px;
      font-size: 16px;
  }
}

/* Floating Mobile QR Code */
.floating-mobile-qr {
  position: fixed;
  bottom: 50px;
  right: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  z-index: 1000;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  padding: 1rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.floating-mobile-qr:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.mobile-qr-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-color);
  white-space: nowrap;
}

.mobile-qr-label i {
  font-size: 1.1rem;
  color: #667eea;
}

/* Dark mode styles for floating QR */
[data-theme="dark"] .floating-mobile-qr {
  background: var(--card-bg);
  border-color: var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .floating-mobile-qr:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .mobile-qr-label {
  color: var(--text-color);
}

[data-theme="dark"] .mobile-qr-label i {
  color: #8b9aff;
}

.floating-mobile-qr #permalink-qrcode-container {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-mobile-qr #qrcode {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-mobile-qr #qrcode img {
  width: 100px;
  height: 100px;
  border-radius: 8px;
}

/* Hide on mobile */
@media (max-width: 768px) {
  .floating-mobile-qr {
    display: none;
  }
}

/* Hide QR error message */
#C_contentor_qr_error,
#C_contentor_qr_error_msg,
div[id*="qr_error"],
div[class*="qr-error"] {
  display: none !important;
}
