@import url("../leather-seam-asset-path.css");

body {
  color: #ffffff;
}

.background-clouds {
  display: block;
  position: fixed;
  top: -5vh;
  left: -5vw;
  width: 110vw;
  height: 110vh;
  z-index: 0;
  background: url('../Sky.png') center center / cover no-repeat;
  pointer-events: none;
}

.layout-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 1800px;
  width: 90vw;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.container {
  margin: 20px;
  flex-grow: 1;
  min-width: 0;
  justify-content: flex-start;
  align-items: flex-start;
  max-width: 100%;
  overflow-x: hidden;
  color: #ffffff;
  /* Seamleather texture */
  background-color: #3d2817;
  background-image:
    linear-gradient(135deg, rgba(61, 40, 23, 0.72) 0%, rgba(92, 61, 46, 0.65) 50%, rgba(61, 40, 23, 0.72) 100%),
    var(--leather-seam-png);
  background-size: 100% 100%, var(--leather-tile-size, 64px) var(--leather-tile-size, 64px);
  background-repeat: no-repeat, repeat;
  background-blend-mode: multiply, normal;
  border: 4px solid #2a1810;
  border-radius: 20px;
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.5),
    0 12px 25px rgba(0, 0, 0, 0.3),
    inset 0 2px 0 rgba(255, 255, 255, 0.15),
    inset 0 -2px 0 rgba(0, 0, 0, 0.6),
    inset 2px 0 0 rgba(255, 255, 255, 0.1),
    inset -2px 0 0 rgba(0, 0, 0, 0.4);
}

/* Legacy theme override for project page */
body.legacy-theme-active .container {
  background: url('../Page.png') center center / 100% 100% no-repeat !important;
  background-image: url('../Page.png') !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.main-content {
  display: flex;
  flex-direction: column;
  gap: 25px;
  width: 100%;
  max-width: 100%;
  padding: 0 20px;
}

/* Creator Stats */
.project-creator-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.project-creator-avatar-link {
  display: block;
  flex-shrink: 0;
}

.project-creator-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #958062;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.project-creator-info .project-creator {
  margin: 0;
}

.creator-stats {
  display: flex;
  gap: 20px;
  margin-top: 5px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(145deg, #f5ead8, #e8dcc8);
  border: 2px solid #c4a882;
  border-radius: 8px;
  padding: 8px 12px;
  color: #1a1410;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.1),
    inset 0 1px 2px rgba(255, 255, 255, 0.9),
    inset 0 -1px 1px rgba(0, 0, 0, 0.05);
}

.stat-icon {
  font-size: 0.9rem;
  color: #1a1410;
}

.stat-value {
  font-weight: 700;
  color: #0f0f0f;
  font-size: 0.9rem;
}

.stat-label {
  font-size: 0.8rem;
  color: #3d3d3d;
  font-weight: 500;
}

.logo {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

.logo-img {
  width: 50px;
  height: 50px;
  margin-right: 10px;
}

.logo-text-img {
  height: 50px;
  width: auto;
}

.nav-buttons {
  width: 80%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.nav-auth-buttons {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.nav-auth-buttons .nav-btn {
  width: 100%;
  padding: 8px 45px;
  font-size: 1rem;
}

.nav-btn {
  width: 100%;
  padding: 12px 0;
  /* Homepage-style compact padding */
  font-size: 1rem;
  /* Homepage-style font size */
  font-family: var(--default-font-family, 'Shrikhand');
  border: none !important;
  border-radius: 10px;
  background: url('../GreyButton.png') center center / 100% 100% no-repeat !important;
  background-color: transparent !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  cursor: none !important;
  outline: none !important;
  text-shadow:
    -0.5px -0.5px 0 #000,
    0.5px -0.5px 0 #000,
    -0.5px 0.5px 0 #000,
    0.5px 0.5px 0 #000,
    0 0 1px rgba(0, 0, 0, 0.8) !important;
  -webkit-text-stroke: 0.4px #000 !important;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.15),
    0 2px 4px rgba(0, 0, 0, 0.1),
    inset 0 2px 4px rgba(255, 255, 255, 1),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.2s ease;
}

.nav-btn.active,
.nav-btn:hover,
.nav-btn.active:focus,
.nav-btn:hover:focus,
.nav-btn.active:focus-visible,
.nav-btn:hover:focus-visible {
  background: url('../GreenButton.png') center center / 100% 100% no-repeat !important;
  background-color: transparent !important;
  color: #ffffff !important;
  border: none !important;
  transform: translateY(-1px);
  outline: none !important;
  text-shadow:
    -0.5px -0.5px 0 #000,
    0.5px -0.5px 0 #000,
    -0.5px 0.5px 0 #000,
    0.5px 0.5px 0 #000,
    0 0 1px rgba(0, 0, 0, 0.8) !important;
  -webkit-text-stroke: 0.4px #000 !important;
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.2),
    0 3px 6px rgba(0, 0, 0, 0.15),
    inset 0 2px 4px rgba(255, 255, 255, 1),
    inset 0 -2px 4px rgba(0, 0, 0, 0.15) !important;
}

.nav-auth-buttons .nav-btn:hover {
  background: url('../GreenButton.png') center center / 100% 100% no-repeat !important;
  background-color: transparent !important;
}

.greeting-avatar {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-bottom: 40px;
}

.greeting {
  font-size: 2.5rem;
  color: #000;
  margin: 0;
}

.username {
  color: #000;
}

.avatar-edit-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid #000;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1rem;
}

.avatar-img {
  width: 90%;
  height: 90%;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-text {
  position: absolute;
  bottom: 5px;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.8);
  padding: 0 4px;
}


.featured-projects h2 {
  font-size: 1.8rem;
  color: #000;
  margin-bottom: 25px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
}

.project-card {
  background: #fff;
  border: 3px solid #000;
  padding: 5px;
}

.project-card img {
  width: 100%;
  height: auto;
  display: block;
}

#project-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

.project-creator {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 20px;
}

.project-thumbnail {
  max-width: 300px;
  margin-bottom: 20px;
  border: 3px solid #000;
}

.project-art {
  max-width: 100%;
  max-height: min(80vh, 96vw);
  width: auto;
  height: auto;
  display: block;
  margin: 1rem auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  object-fit: contain;
}

.project-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin: 0.75rem 0 1.25rem;
}

.project-game-iframe {
  width: 1000px;
  max-width: 100%;
  /* responsive */
  height: 562px;
  /* 16:9 */
  border: 2px solid #b8c1cc;
  border-radius: 14px;
  background-color: #000;
  display: block;
  /* Helps with centering */
  margin: 0 auto;
  /* Center the iframe */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.project-file-display {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
}

.project-description,
.project-tags {
  text-align: left;
  width: 100%;
  max-width: 900px;
  margin-bottom: 20px;
}

.project-description h2,
.project-tags h2 {
  border-bottom: 2px solid #d9dee6;
  padding-bottom: 8px;
  margin-bottom: 12px;
}

/* ===== SKEUOMORPHIC PROJECT PAGE ===== */

/* Section containers - divide project into distinct blocks */
.project-panel.skeuo .project-section {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 20px;
  padding: 20px 24px;
  background-color: #857056;
  background-image:
    linear-gradient(135deg, rgba(138, 118, 94, 0.65) 0%, rgba(154, 132, 106, 0.55) 50%, rgba(138, 118, 94, 0.65) 100%),
    var(--leather-seam-png);
  background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size);
  background-repeat: no-repeat, repeat;
  background-blend-mode: multiply, normal;
  border: 2px solid #6a4d3d;
  border-radius: 16px;
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.28),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}

.project-panel.skeuo .project-section:last-of-type {
  margin-bottom: 0;
}

.project-panel.skeuo .project-section-actions {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.project-panel.skeuo .project-section-actions .project-actions {
  margin: 0;
  width: 100%;
  max-width: 100%;
}

.project-panel.skeuo .project-section-actions .like-message {
  margin: 0;
  font-size: 0.95rem;
  min-height: 1.4em;
  width: 100%;
  text-align: center;
}

.project-panel.skeuo .project-section-art {
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project-panel.skeuo .project-section-art .project-art-frame {
  margin: 0 auto;
}

.project-panel.skeuo .project-section-header h1 {
  margin-top: 0;
}

/* Comments section wrapper: no extra card so .comments-section provides the look */
.project-panel.skeuo .project-section-comments {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  margin-bottom: 0;
}

/* Main panel — store-style leather + stitched inset (skeuomorphic shell) */
.project-panel.skeuo {
  width: 100%;
  max-width: min(820px, 100%);
  margin: 0 auto;
  padding: 26px 28px;
  max-height: none;
  overflow-x: hidden;
  box-sizing: border-box;
  background-color: #c9a77c;
  background-image:
    linear-gradient(145deg, rgba(255, 248, 235, 0.35) 0%, transparent 42%, rgba(80, 50, 30, 0.08) 100%),
    linear-gradient(135deg, rgba(154, 132, 106, 0.72) 0%, rgba(210, 185, 150, 0.62) 48%, rgba(138, 118, 94, 0.7) 100%),
    var(--leather-seam-png, var(--leather-seam-png));
  background-size:
    100% 100%,
    100% 100%,
    var(--leather-tile-size, 120px) var(--leather-tile-size, 120px);
  background-repeat: no-repeat, no-repeat, repeat;
  background-blend-mode: soft-light, multiply, multiply;
  border-radius: 22px;
  border: 3px solid #5a3a24;
  border-bottom-width: 4px;
  box-shadow:
    0 22px 48px rgba(42, 24, 12, 0.38),
    0 10px 22px rgba(0, 0, 0, 0.22),
    inset 0 3px 0 rgba(255, 248, 235, 0.45),
    inset 0 -6px 14px rgba(60, 40, 25, 0.2),
    inset 3px 0 0 rgba(255, 255, 255, 0.14),
    inset -3px 0 0 rgba(0, 0, 0, 0.12);
  position: relative;
}

.project-panel.skeuo::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  bottom: 12px;
  border: 2px dashed rgba(90, 58, 36, 0.35);
  border-radius: 16px;
  pointer-events: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 0 rgba(0, 0, 0, 0.06);
}

/* Project title - embossed */
#project-content h1,
.project-panel.skeuo h1 {
  font-size: 1.9rem;
  margin: 0 0 12px 0;
  color: #ffffff;
  font-weight: 700;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.5),
    0 2px 4px rgba(0, 0, 0, 0.4);
}

.project-meta-line {
  color: #f5f5f5;
  font-size: 0.95rem;
  margin-bottom: 16px;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}

.audience-pill,
.project-flair {
  padding: 4px 10px;
  border-radius: 8px;
  background: linear-gradient(145deg, #dfc5aa, #d0b589);
  border: 2px solid #8b7355;
  color: #1a1410;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.15),
    inset 0 1px 2px rgba(255, 255, 255, 0.6),
    inset 0 -1px 2px rgba(0, 0, 0, 0.1);
}
.project-panel.skeuo .genre-flair {
  background: linear-gradient(145deg, #e8f4fc, #cfe8f8);
  border-color: #667eea;
  color: #1e3a8a;
}
.project-panel.skeuo .subgenre-flair {
  background: linear-gradient(145deg, #fce9ed, #fdd0dd);
  border-color: #f5576c;
  color: #6b1434;
}
.project-panel.skeuo .audience-pill {
  background: linear-gradient(145deg, #dfc5aa, #d0b589);
  border-color: #8b7355;
  color: #1a1410;
}

/* Creator block - tan inset */
.project-header,
.project-creator-info {
  margin-bottom: 20px;
}

.project-creator {
  font-size: 1.1rem;
  color: #ffffff;
  margin: 0 0 10px 0;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
}

.project-creator a {
  color: #f0f0f0;
  font-weight: 700;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
}

.project-creator a:hover {
  text-decoration: underline;
}

/* Art frame - bevel effect (raised frame, recessed image) */
.project-art-frame {
  display: inline-block;
  padding: 16px;
  margin: 1.5rem auto;
  background:
    linear-gradient(145deg, #76604f 0%, #6a4d3d 30%, #4a3525 50%, #6a4d3d 70%, #76604f 100%);
  border-radius: 12px;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.45),
    0 6px 14px rgba(0, 0, 0, 0.3),
    inset 0 3px 0 rgba(255, 255, 255, 0.25),
    inset 0 -3px 0 rgba(0, 0, 0, 0.4),
    inset 3px 0 0 rgba(255, 255, 255, 0.15),
    inset -3px 0 0 rgba(0, 0, 0, 0.35);
  border: 2px solid #3d2817;
  position: relative;
}

.project-art-frame::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  bottom: 12px;
  border: 2px solid rgba(0, 0, 0, 0.35);
  border-radius: 8px;
  pointer-events: none;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}

.project-art-frame .project-art {
  display: block;
  max-width: 100%;
  max-height: min(80vh, 96vw);
  width: auto;
  height: auto;
  border-radius: 6px;
  margin: 0;
  box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
  object-fit: contain;
}

/* Project carousel (slideshow) - same frame as single art */
.project-carousel-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.project-carousel {
  position: relative;
  flex: 0 1 auto;
}
.project-carousel-inner {
  position: relative;
}
.project-carousel-slide {
  display: block;
  text-align: center;
}
.project-carousel-slide[hidden] {
  display: none;
}
.project-carousel-slide .project-art {
  margin: 0 auto;
}
.project-carousel-prev,
.project-carousel-next {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #4d7c0f;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 50%),
    linear-gradient(145deg, #bef264 0%, #84cc16 50%, #4d7c0f 100%);
  color: #0f0f0f;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  box-shadow: 0 4px 0 0 #166534, 0 6px 14px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.3);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.project-carousel-prev:hover,
.project-carousel-next:hover {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.25) 0%, transparent 50%),
    linear-gradient(145deg, #d4f88a 0%, #a3e635 50%, #65a30d 100%);
  box-shadow: 0 4px 0 0 #166534, 0 10px 22px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.4);
}
.project-carousel-prev:active,
.project-carousel-next:active {
  box-shadow: 0 1px 0 0 #166534, 0 3px 8px rgba(0,0,0,0.25), inset 0 3px 8px rgba(0,0,0,0.15);
}
.project-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.project-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #3d2817;
  background: rgba(92, 64, 51, 0.5);
  padding: 0;
  transition: background 0.2s;
}
.project-carousel-dot:hover {
  background: rgba(92, 64, 51, 0.8);
}
.project-carousel-dot[aria-current="true"] {
  background: #76604f;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.3);
}

/* Project file display centers the art frame */
.project-file-display {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
}

/* Game iframe - bevel frame */
.project-game-iframe {
  border: 3px solid #6a4d3d;
  border-radius: 14px;
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.4),
    inset 0 3px 0 rgba(255, 255, 255, 0.2),
    inset 0 -3px 0 rgba(0, 0, 0, 0.35),
    inset 3px 0 0 rgba(255, 255, 255, 0.12),
    inset -3px 0 0 rgba(0, 0, 0, 0.3);
  background: #1a1a1a;
}

/* Creator stats - leather pills */
.creator-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.project-panel.skeuo .stat-item {
  background-color: #76604f;
  background-image:
    linear-gradient(135deg, rgba(122, 102, 88, 0.65) 0%, rgba(138, 118, 94, 0.55) 50%, rgba(122, 102, 88, 0.65) 100%),
    var(--leather-seam-png);
  background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size);
  background-repeat: no-repeat, repeat;
  background-blend-mode: multiply, normal;
  border: 2px solid #4a3525;
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.25),
    inset 0 2px 0 rgba(255, 255, 255, 0.15),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}

.project-panel.skeuo .stat-value {
  color: #ffffff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
}

.project-panel.skeuo .stat-label {
  color: #f5f5f5;
}

/* Description & Tags - when inside project-section, section provides the card */
.project-panel.skeuo .project-section .project-description,
.project-panel.skeuo .project-section .project-tags {
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

/* Description & Tags - standalone (fallback) inset panels */
.project-panel.skeuo .project-description,
.project-panel.skeuo .project-tags {
  padding: 20px;
  margin-bottom: 0;
  background-color: #857056;
  background-image:
    linear-gradient(135deg, rgba(138, 118, 94, 0.65) 0%, rgba(154, 132, 106, 0.55) 50%, rgba(138, 118, 94, 0.65) 100%),
    var(--leather-seam-png);
  background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size);
  background-repeat: no-repeat, repeat;
  background-blend-mode: multiply, normal;
  border: 2px solid #6a4d3d;
  border-radius: 14px;
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.3),
    inset 0 2px 0 rgba(255, 255, 255, 0.15),
    inset 0 -2px 0 rgba(0, 0, 0, 0.25);
}

.project-panel.skeuo .project-description h2,
.project-panel.skeuo .project-tags h2 {
  border-bottom: 2px solid #6a4d3d;
  padding-bottom: 10px;
  margin-bottom: 14px;
  color: #ffffff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
}

.project-panel.skeuo .project-description p,
.project-panel.skeuo .project-tags .tag-chips {
  color: #ffffff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}

/* Description text body: newline + Read More support */
.description-text {
  color: #ffffff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
  line-height: 1.6;
  word-break: break-word;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.description-text.collapsed {
  max-height: 150px;
  position: relative;
}
.description-text.collapsed::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: linear-gradient(to bottom, transparent, rgba(180, 150, 110, 0.55));
  pointer-events: none;
}

/* Read More / Read Less button */
.read-more-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 5px 16px;
  background: linear-gradient(145deg, #ab8f70 0%, #958062 50%, #ab8f70 100%);
  border: 2px solid #6a4d3d;
  border-radius: 999px;
  color: #f5efe6;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.2);
  transition: filter 0.15s ease, transform 0.1s ease;
}
.read-more-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.read-more-btn:active {
  transform: translateY(0);
  filter: brightness(0.95);
}

/* @mention links inside the project description */
.project-description .comment-mention {
  display: inline-block;
  width: fit-content;
  color: #6366f1;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: filter 0.2s ease, transform 0.2s ease, text-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.project-description .comment-mention:hover {
  color: #4f46e5;
  text-decoration: underline;
}
.project-description .comment-mention[style*="color"]:hover {
  filter: brightness(1.1);
}
.project-description .comment-mention.mention-gradient-scroll {
  animation: mention-gradient-scroll 4s linear infinite;
}
.project-description .comment-mention.mention-effect-glow {
  text-shadow: 0 0 8px currentColor, 0 0 12px currentColor;
}
.project-description .comment-mention.mention-effect-shimmer {
  animation: mention-shimmer 2s ease-in-out infinite;
}
.project-description .comment-mention.mention-effect-grow:hover,
.project-description .comment-mention.mention-effect-shrink:hover {
  display: inline-block;
}
.project-description .comment-mention.mention-effect-grow:hover { transform: scale(1.08); }
.project-description .comment-mention.mention-effect-shrink:hover { transform: scale(0.92); }
.project-description .comment-mention.mention-effect-pulse {
  animation: mention-pulse 1.5s ease-in-out infinite;
}

/* Tag chips - skeuo */
.tag-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-panel.skeuo .tag-chip {
  background: linear-gradient(145deg, #76604f 0%, #6a4d3d 50%, #76604f 100%);
  border: 2px solid #4a3525;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.95rem;
  color: #e8e0d5;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Project actions - balanced row: all pills same shape and 3D */
.project-panel.skeuo .project-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin: 0;
  width: 100%;
  row-gap: 14px;
}

/* Remove white line on top of buttons (from root style.css button::before) */
.project-panel.skeuo .project-actions button::before,
.project-panel.skeuo .project-actions .like-btn::before,
.project-panel.skeuo .project-actions .share-btn::before,
.project-panel.skeuo .project-actions a button::before,
.project-panel.skeuo .project-actions .views-pill::before {
  display: none !important;
  content: none !important;
  height: 0 !important;
  background: none !important;
}

.project-panel.skeuo .project-actions > * {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* All buttons below image: skeuomorphic pill – glossy, 3D, bevel */
.project-panel.skeuo .project-actions .like-btn,
.project-panel.skeuo .project-actions .share-btn,
.project-panel.skeuo .project-actions button,
.project-panel.skeuo .project-actions a .share-btn {
  min-height: 44px;
  border-radius: 999px !important;
  padding: 12px 20px !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  position: relative;
  border: none !important;
  /* Skeuomorphic 3D – no white line on top */
  box-shadow:
    0 7px 0 0 #166534,
    0 9px 20px rgba(0, 0, 0, 0.4),
    0 3px 6px rgba(0, 0, 0, 0.25),
    inset 0 -2px 4px rgba(0, 0, 0, 0.25) !important;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.35),
    0 0 1px rgba(0, 0, 0, 0.2) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  color: #0f0f0f !important;
}

/* Yeah button – white when not liked; no white line on top */
.project-panel.skeuo .project-actions .like-btn:not(.liked) {
  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.2) 0%,
      transparent 40%),
    linear-gradient(145deg, #ffffff 0%, #f5f5f5 35%, #e8e8e8 65%, #d4d4d4 100%) !important;
  color: #2d2520 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) !important;
  box-shadow:
    0 7px 0 0 #9ca3af,
    0 9px 20px rgba(0, 0, 0, 0.35),
    0 3px 6px rgba(0, 0, 0, 0.2),
    inset 0 -2px 4px rgba(0, 0, 0, 0.12) !important;
}

/* Gloss overlay – no white line on top; softer top fade */
.project-panel.skeuo .project-actions .share-btn,
.project-panel.skeuo .project-actions #fullscreen-btn,
.project-panel.skeuo .project-actions #post-to-fandom-btn,
.project-panel.skeuo .project-actions #delete-project-btn,
.project-panel.skeuo .project-actions a .share-btn {
  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.15) 0%,
      rgba(255, 255, 255, 0.08) 25%,
      transparent 50%),
    linear-gradient(145deg, #bef264 0%, #a3e635 25%, #84cc16 50%, #65a30d 75%, #4d7c0f 100%) !important;
}

.project-panel.skeuo .project-actions #propose-feature-btn.proposed-active {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 50%),
    linear-gradient(145deg, #fde68a 0%, #fbbf24 30%, #f59e0b 60%, #d97706 100%) !important;
  cursor: default;
  opacity: 0.85;
}

.project-panel.skeuo .project-actions .propose-count {
  display: inline-block;
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
  padding: 1px 6px;
  font-size: 0.8em;
  margin-left: 4px;
}

.project-panel.skeuo .project-actions #boost-project-btn,
.project-panel.skeuo .project-actions #boost-project-status-btn {
  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.15) 0%,
      transparent 45%),
    linear-gradient(145deg, #ffb380 0%, #ff8547 20%, #ff6b35 45%, #f7931e 70%, #e55a00 100%) !important;
  box-shadow:
    0 7px 0 0 #b34a00,
    0 9px 20px rgba(0, 0, 0, 0.4),
    0 3px 6px rgba(0, 0, 0, 0.25),
    inset 0 -2px 4px rgba(0, 0, 0, 0.2) !important;
}

.project-panel.skeuo .project-actions #boost-project-status-btn {
  cursor: default;
}

.project-panel.skeuo .project-actions #delete-project-btn {
  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.12) 0%,
      transparent 45%),
    linear-gradient(145deg, #ef9a9a 0%, #e57373 20%, #ef5350 45%, #e53935 70%, #c62828 100%) !important;
  box-shadow:
    0 7px 0 0 #8b1a1a,
    0 9px 20px rgba(0, 0, 0, 0.4),
    0 3px 6px rgba(0, 0, 0, 0.25),
    inset 0 -2px 4px rgba(0, 0, 0, 0.3) !important;
}

.project-panel.skeuo .project-actions a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.project-panel.skeuo .project-actions .like-btn:not(.liked):hover {
  box-shadow:
    0 9px 0 0 #9ca3af,
    0 11px 24px rgba(0, 0, 0, 0.35),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1) !important;
}

.project-panel.skeuo .project-actions .share-btn:hover,
.project-panel.skeuo .project-actions #fullscreen-btn:hover,
.project-panel.skeuo .project-actions #post-to-fandom-btn:hover,
.project-panel.skeuo .project-actions a .share-btn:hover,
.project-panel.skeuo .project-actions #delete-project-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 9px 0 0 #166534,
    0 11px 24px rgba(0, 0, 0, 0.45),
    0 4px 8px rgba(0, 0, 0, 0.3),
    inset 0 -2px 4px rgba(0, 0, 0, 0.2) !important;
}

.project-panel.skeuo .project-actions .like-btn:hover {
  transform: translateY(-2px);
}

.project-panel.skeuo .project-actions #boost-project-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 9px 0 0 #b34a00,
    0 11px 24px rgba(0, 0, 0, 0.45),
    inset 0 -2px 4px rgba(0, 0, 0, 0.2) !important;
}

.project-panel.skeuo .project-actions .like-btn:not(.liked):active {
  box-shadow:
    0 2px 0 0 #9ca3af,
    0 4px 10px rgba(0, 0, 0, 0.3),
    inset 0 3px 10px rgba(0, 0, 0, 0.15) !important;
}

.project-panel.skeuo .project-actions .like-btn:active,
.project-panel.skeuo .project-actions .share-btn:active,
.project-panel.skeuo .project-actions button:active,
.project-panel.skeuo .project-actions a .share-btn:active {
  transform: translateY(3px);
  box-shadow:
    0 2px 0 0 #166534,
    0 4px 10px rgba(0, 0, 0, 0.35),
    inset 0 3px 10px rgba(0, 0, 0, 0.25) !important;
}

.project-panel.skeuo .project-actions #boost-project-btn:active {
  transform: translateY(3px);
  box-shadow:
    0 2px 0 0 #b34a00,
    0 4px 10px rgba(0, 0, 0, 0.35),
    inset 0 3px 10px rgba(0, 0, 0, 0.2) !important;
}

.project-panel.skeuo .project-actions #delete-project-btn:active {
  transform: translateY(3px);
  box-shadow:
    0 2px 0 0 #8b1a1a,
    0 4px 10px rgba(0, 0, 0, 0.35),
    inset 0 3px 10px rgba(0, 0, 0, 0.3) !important;
}

.project-panel.skeuo .project-actions .like-btn.liked {
  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.15) 0%,
      transparent 45%),
    linear-gradient(145deg, #4ade80 0%, #2dd56e 20%, #22c55e 45%, #16a34a 70%, #15803d 100%) !important;
  color: #0f0f0f !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) !important;
  box-shadow:
    0 7px 0 0 #0d4d24,
    0 9px 20px rgba(0, 0, 0, 0.4),
    0 3px 6px rgba(0, 0, 0, 0.25),
    inset 0 -2px 4px rgba(0, 0, 0, 0.22) !important;
}

.project-panel.skeuo .project-actions .like-btn.liked:hover {
  box-shadow:
    0 9px 0 0 #0d4d24,
    0 11px 24px rgba(0, 0, 0, 0.45),
    inset 0 -2px 4px rgba(0, 0, 0, 0.18) !important;
}

/* Views pill – skeuomorphic glossy 3D, no line */
.project-panel.skeuo .project-actions .views-pill {
  min-height: 44px;
  padding: 12px 20px !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  border: none !important;
  color: #2d2520 !important;
  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.25) 0%,
      transparent 45%),
    linear-gradient(145deg, #f8f8f8 0%, #eee 35%, #e2e2e2 65%, #d4d4d4 100%) !important;
  box-shadow:
    0 7px 0 0 #4a3525,
    0 9px 20px rgba(0, 0, 0, 0.3),
    0 3px 6px rgba(0, 0, 0, 0.15),
    inset 0 -2px 4px rgba(0, 0, 0, 0.12) !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.tag-chip {
  background: linear-gradient(145deg, #ffffff, #eef3f8);
  border: 1px solid #cfd6df;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.95rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), inset 0 1px 0 #fff;
}

/* Comments - tan leather */
.project-panel.skeuo .comments-section {
  margin-top: 2rem;
  padding: 28px;
  background-color: #857056;
  background-image:
    linear-gradient(135deg, rgba(138, 118, 94, 0.65) 0%, rgba(154, 132, 106, 0.55) 50%, rgba(138, 118, 94, 0.65) 100%),
    var(--leather-seam-png);
  background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size);
  background-repeat: no-repeat, repeat;
  background-blend-mode: multiply, normal;
  border-radius: 18px;
  border: 3px solid #6a4d3d;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.35),
    inset 0 2px 0 rgba(255, 255, 255, 0.2),
    inset 0 -2px 0 rgba(0, 0, 0, 0.25),
    inset 2px 0 0 rgba(255, 255, 255, 0.12),
    inset -2px 0 0 rgba(0, 0, 0, 0.2);
}

.project-panel.skeuo .comments-section .feedback-header h2 {
  color: #2d2520 !important;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
}

.project-panel.skeuo .feedback-header {
  border-bottom-color: rgba(92, 64, 51, 0.6);
}

/* Comments section - skeuomorphic tan leather (default and under panel) */
.comments-section {
  margin-top: 2rem;
  padding: 28px;
  background-color: #857056;
  background-image:
    linear-gradient(135deg, rgba(138, 118, 94, 0.65) 0%, rgba(154, 132, 106, 0.55) 50%, rgba(138, 118, 94, 0.65) 100%),
    var(--leather-seam-png);
  background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size);
  background-repeat: no-repeat, repeat;
  background-blend-mode: multiply, normal;
  border-radius: 18px;
  border: 3px solid #6a4d3d;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.35),
    inset 0 2px 0 rgba(255, 255, 255, 0.18),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2),
    inset 2px 0 0 rgba(255, 255, 255, 0.1),
    inset -2px 0 0 rgba(0, 0, 0, 0.15);
  position: relative;
}

/* Inner stitch frame: wrap the tab panel content only so it doesn't sit behind form/empty bars */
.comments-section #comments-panel::before,
.comments-section #feedback-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px dashed rgba(200, 170, 134, 0.35);
  border-radius: 14px;
  pointer-events: none;
  z-index: 0;
}

.comments-section #comments-panel,
.comments-section #feedback-panel {
  position: relative;
}

/* Comments / Feedback tab buttons - must stand out and be clickable */
.comments-section .comment-tabs {
  display: flex !important;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.15);
}

.comments-section .comment-tab {
  padding: 12px 22px !important;
  border-radius: 12px !important;
  border: 2px solid #76604f !important;
  background-color: #958062 !important;
  background-image:
    linear-gradient(145deg, rgba(168, 146, 122, 0.55) 0%, rgba(154, 132, 106, 0.5) 50%, rgba(138, 118, 94, 0.55) 100%),
    var(--leather-seam-png) !important;
  background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size) !important;
  background-repeat: no-repeat, repeat !important;
  background-blend-mode: multiply, normal !important;
  color: #2d2520 !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  transition: all 0.2s ease;
  display: inline-flex !important;
  align-items: center;
  appearance: none;
  font-family: inherit;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.comments-section .comment-tab::before {
  display: none !important;
  content: none !important;
}

.comments-section .comment-tab:hover {
  background: linear-gradient(145deg, #a89074 0%, #958062 50%, #857056 100%) !important;
  color: #1a1512 !important;
  border-color: #6a4d3d !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.comments-section .comment-tab.active {
  background: linear-gradient(145deg, #65a30d 0%, #4d7c0f 50%, #166534 100%) !important;
  border-color: #14532d !important;
  color: #0f0f0f !important;
  box-shadow: 0 4px 0 #14532d, 0 6px 14px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

.comment-tab-panel {
  margin-top: 0;
}

.comments-section .no-feedback-msg {
  color: #f5f5f5;
  font-style: italic;
  padding: 20px;
  text-align: center;
}

/* @mention links in comments — default link color; Tag Style overrides via inline when saved; no glass border */
.comment-text .comment-mention {
  display: inline-block;
  width: fit-content;
  color: #6366f1;
  font-weight: 600;
  text-decoration: none;
  padding: 1px 4px;
  border-radius: 4px;
  transition: filter 0.2s ease, transform 0.2s ease, text-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.comment-text .comment-mention:hover {
  color: #4f46e5;
  text-decoration: underline;
}
.comment-text .comment-mention[style*="color"]:hover {
  filter: brightness(1.1);
}

/* Scrolling gradient on @mention tags: scrolls then shows reversed clone for seamless loop */
.comment-text .comment-mention.mention-gradient-scroll {
  animation: mention-gradient-scroll 4s linear infinite;
}
@keyframes mention-gradient-scroll {
  0%   { background-position: 0% 0; }
  100% { background-position: 100% 0; }
}

/* Mention effects (purchased or subscription) */
.comment-text .comment-mention.mention-effect-glow {
  text-shadow: 0 0 8px currentColor, 0 0 12px currentColor;
}
.comment-text .comment-mention.mention-effect-glow:hover {
  text-shadow: 0 0 12px currentColor, 0 0 18px currentColor;
}

.comment-text .comment-mention.mention-effect-shimmer {
  animation: mention-shimmer 2s ease-in-out infinite;
}
@keyframes mention-shimmer {
  0%, 100% { opacity: 1; filter: brightness(1); }
  50% { opacity: 0.85; filter: brightness(1.15); }
}

.comment-text .comment-mention.mention-effect-grow:hover {
  transform: scale(1.08);
  display: inline-block;
}

.comment-text .comment-mention.mention-effect-shrink:hover {
  transform: scale(0.92);
  display: inline-block;
}

.comment-text .comment-mention.mention-effect-pulse {
  animation: mention-pulse 1.5s ease-in-out infinite;
}
@keyframes mention-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.03); }
}

.comment-text .comment-mention.mention-effect-bounce:hover {
  animation: mention-bounce 0.5s ease;
}
@keyframes mention-bounce {
  0%, 100% { transform: translateY(0); }
  30% { transform: translateY(-4px); }
  60% { transform: translateY(2px); }
}

/* Project link embed card in comments */
.project-link-embed {
  display: inline-block;
  margin: 8px 0;
  min-width: 200px;
  max-width: 320px;
}

.project-link-embed .project-embed-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: linear-gradient(145deg, #f8f9fa, #e9ecef);
  border: 2px solid #dee2e6;
  border-radius: 12px;
  text-decoration: none;
  color: #1e293b;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.project-link-embed .project-embed-card:hover {
  border-color: #6a4d3d;
  box-shadow: 0 4px 12px rgba(92, 64, 51, 0.2);
}

.project-link-embed .project-embed-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.project-link-embed .project-embed-title {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* More replies button */
.more-replies-btn {
  margin-top: 8px;
  padding: 6px 14px;
  background: transparent;
  border: 2px solid #6a4d3d;
  border-radius: 10px;
  color: #6a4d3d;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
}

.more-replies-btn:hover {
  background: #6a4d3d;
  color: #f5f0e8;
}

.comment-replies-extra {
  margin-top: 8px;
}

.feedback-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.feedback-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #1e293b !important;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  font-family: var(--default-font-family, 'Shrikhand');
}

/* Green share/action buttons in comments (match project actions) */
.comments-section .share-btn,
.feedback-header .share-btn {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 25%, transparent 50%),
    linear-gradient(145deg, #bef264 0%, #a3e635 25%, #84cc16 50%, #65a30d 75%, #4d7c0f 100%) !important;
  color: #0f0f0f !important;
  border: 2px solid #4d7c0f !important;
  border-radius: 12px !important;
  padding: 10px 20px !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
  box-shadow:
    0 6px 0 0 #166534,
    0 8px 18px rgba(0, 0, 0, 0.35),
    inset 0 -2px 4px rgba(0, 0, 0, 0.12) !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) !important;
  font-family: var(--default-font-family, 'Shrikhand') !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  opacity: 1 !important;
}

.comments-section .share-btn:hover,
.feedback-header .share-btn:hover {
  box-shadow:
    0 8px 0 0 #166534,
    0 10px 22px rgba(0, 0, 0, 0.4),
    inset 0 -2px 4px rgba(0, 0, 0, 0.15) !important;
  transform: translateY(-2px) !important;
}

.comments-section .share-btn:active,
.feedback-header .share-btn:active {
  transform: translateY(4px) !important;
  box-shadow:
    0 2px 0 0 #166534,
    0 4px 10px rgba(0, 0, 0, 0.35),
    inset 0 3px 10px rgba(0, 0, 0, 0.2) !important;
}

.feedback-panel {
  margin-top: 20px;
  padding: 25px;
  border: 3px solid #6a4d3d;
  border-radius: 16px;
  background-color: #958062;
  background-image:
    linear-gradient(135deg, rgba(154, 132, 106, 0.65) 0%, rgba(138, 118, 94, 0.55) 50%, rgba(122, 102, 88, 0.6) 100%),
    var(--leather-seam-png);
  background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size);
  background-repeat: no-repeat, repeat;
  background-blend-mode: multiply, normal;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.3),
    inset 0 2px 0 rgba(255, 255, 255, 0.12),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2);
  position: relative;
}

.feedback-panel::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.25));
  border-radius: 14px 14px 0 0;
}

.feedback-panel textarea {
  width: 100%;
  min-height: 90px;
  padding: 15px;
  border: 2px solid #6a4d3d;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  background: rgba(0, 0, 0, 0.12);
  color: #ffffff;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.15);
  resize: vertical;
}

.feedback-panel textarea:focus {
  outline: none;
  border-color: #76604f;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2), 0 0 0 2px rgba(200, 170, 134, 0.35);
}

.typing-indicator {
  min-height: 1.2em;
  font-style: italic;
  color: #f5f5f5;
  margin: 12px 0;
  padding: 8px 12px;
  background: linear-gradient(145deg, #f8f9fa, #e9ecef);
  border-radius: 8px;
  border: 1px solid #dee2e6;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Collapse when empty so we don't show unused white bars */
#typing-indicator:empty {
  display: none !important;
  min-height: 0;
  margin: 0;
  padding: 0;
  height: 0;
  overflow: hidden;
}

#comment-form {
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  padding: 25px;
  border-radius: 16px;
  border: 3px solid #d1d5db;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.15),
    inset 0 2px 4px rgba(255, 255, 255, 0.8),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1),
    inset 1px 0 2px rgba(255, 255, 255, 0.6),
    inset -1px 0 2px rgba(0, 0, 0, 0.08);
  position: relative;
  margin-bottom: 20px;
}

/* Leather comment form when inside project comments section */
.comments-section #comment-form {
  background-color: #958062;
  background-image:
    linear-gradient(135deg, rgba(154, 132, 106, 0.65) 0%, rgba(138, 118, 94, 0.55) 50%, rgba(122, 102, 88, 0.6) 100%),
    var(--leather-seam-png);
  background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size);
  background-repeat: no-repeat, repeat;
  background-blend-mode: multiply, normal;
  border: 2px solid #6a4d3d;
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.3),
    inset 0 2px 0 rgba(255, 255, 255, 0.12),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}

.comments-section #comment-form::before {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.2));
}

.comments-section #comment-form textarea {
  background: rgba(0, 0, 0, 0.12);
  border: 2px solid #6a4d3d;
  color: #ffffff;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.15);
}

.comments-section #comment-form textarea::placeholder {
  color: rgba(45, 37, 32, 0.7);
}

.comments-section #comment-form textarea:focus {
  outline: none;
  border-color: #76604f;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2), 0 0 0 2px rgba(200, 170, 134, 0.3);
}

#comment-form::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.7));
  border-radius: 14px 14px 0 0;
}

#comment-form textarea {
  width: 100%;
  min-height: 100px;
  padding: 15px;
  border-radius: 12px;
  border: 2px solid #d1d5db;
  margin-bottom: 15px;
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.08),
    inset 0 -1px 2px rgba(255, 255, 255, 0.9);
  color: #1e293b;
  transition: all 0.2s ease;
}

#comment-form textarea:focus {
  outline: none;
  border-color: #9ca3af;
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.1),
    inset 0 -1px 2px rgba(255, 255, 255, 0.9),
    0 0 0 3px rgba(59, 130, 246, 0.1);
}

#comment-form button,
#post-comment-btn {
  background: linear-gradient(145deg, #4a90e2, #357abd, #2c5aa0);
  color: white;
  border: 2px solid #2c5aa0;
  padding: 12px 24px;
  border-radius: 12px;
  font-family: var(--default-font-family, 'Shrikhand');
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow:
    0 6px 12px rgba(59, 130, 246, 0.3),
    0 3px 6px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.3),
    inset 0 -2px 4px rgba(0, 0, 0, 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  position: relative;
}

/* Green buttons in comments section (match project actions) */
.comments-section #comment-form button,
.comments-section #post-comment-btn {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 25%, transparent 50%),
    linear-gradient(145deg, #bef264 0%, #a3e635 25%, #84cc16 50%, #65a30d 75%, #4d7c0f 100%) !important;
  border: 2px solid #4d7c0f !important;
  color: #0f0f0f !important;
  box-shadow:
    0 7px 0 0 #166534,
    0 9px 20px rgba(0, 0, 0, 0.35),
    0 3px 6px rgba(0, 0, 0, 0.2),
    inset 0 -2px 4px rgba(0, 0, 0, 0.15) !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

.comments-section #comment-form button::before,
.comments-section #post-comment-btn::before {
  display: none !important;
}

.comments-section #comment-form button:hover,
.comments-section #post-comment-btn:hover {
  box-shadow:
    0 9px 0 0 #166534,
    0 11px 24px rgba(0, 0, 0, 0.4),
    inset 0 -2px 4px rgba(0, 0, 0, 0.15) !important;
  transform: translateY(-2px);
}

.comments-section #comment-form button:active,
.comments-section #post-comment-btn:active {
  transform: translateY(3px);
  box-shadow:
    0 2px 0 0 #166534,
    0 4px 10px rgba(0, 0, 0, 0.35),
    inset 0 3px 10px rgba(0, 0, 0, 0.2) !important;
}

#comment-form button::before,
#post-comment-btn::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.5));
  border-radius: 10px 10px 0 0;
}

#comment-form button:hover,
#post-comment-btn:hover {
  background: linear-gradient(145deg, #5a9fe2, #4590cd, #357abd);
  box-shadow:
    0 4px 8px rgba(59, 130, 246, 0.4),
    0 2px 4px rgba(0, 0, 0, 0.25),
    inset 0 2px 4px rgba(255, 255, 255, 0.35),
    inset 0 -2px 4px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

#comment-form button:active,
#post-comment-btn:active {
  background: linear-gradient(145deg, #357abd, #2c5aa0);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.3),
    inset 0 -2px 4px rgba(255, 255, 255, 0.2);
  transform: translateY(1px);
}

.comment-message {
  margin-top: 15px;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 600;
  text-align: center;
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.1),
    inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

.comment-message:empty {
  display: none;
  margin: 0;
  padding: 0;
  min-height: 0;
}

.comment-message:not(:empty) {
  background: linear-gradient(145deg, #fef3c7, #fde68a);
  border: 2px solid #f59e0b;
  color: #92400e;
}

/* Leather status messages in comments section */
.comments-section .comment-message:not(:empty) {
  background-color: #857056;
  background-image:
    linear-gradient(135deg, rgba(138, 118, 94, 0.65) 0%, rgba(122, 102, 88, 0.58) 100%),
    var(--leather-seam-png);
  background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size);
  background-repeat: no-repeat, repeat;
  background-blend-mode: multiply, normal;
  border: 2px solid #6a4d3d;
  color: #e8e0d5;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.2);
}

.comments-section #typing-indicator:not(:empty) {
  background-color: #857056;
  background-image:
    linear-gradient(135deg, rgba(138, 118, 94, 0.65) 0%, rgba(122, 102, 88, 0.58) 100%),
    var(--leather-seam-png);
  background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size);
  background-repeat: no-repeat, repeat;
  background-blend-mode: multiply, normal;
  border: 2px solid #6a4d3d;
  color: #e8e0d5;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.2);
}

.comment-message.error {
  background: linear-gradient(145deg, #fee2e2, #fecaca);
  border: 2px solid #ef4444;
  color: #991b1b;
}

.comment-message.success {
  background: linear-gradient(145deg, #d1fae5, #a7f3d0);
  border: 2px solid #10b981;
  color: #065f46;
}

/* Sticker button styling */
#sticker-select-btn {
  background: linear-gradient(145deg, #ffffff, #e6e6e6) !important;
  color: #333333 !important;
  border: 2px solid #d4d4d4 !important;
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.8),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1) !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.2s ease;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
}

/* Green sticker + premade buttons in comments section */
.comments-section #sticker-select-btn,
.comments-section .skeuo-button,
.comments-section #show-premade-comment-modal-btn {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 25%, transparent 50%),
    linear-gradient(145deg, #bef264 0%, #a3e635 25%, #84cc16 50%, #65a30d 75%, #4d7c0f 100%) !important;
  color: #0f0f0f !important;
  border: 2px solid #4d7c0f !important;
  box-shadow: 0 5px 0 0 #166534, 0 6px 14px rgba(0, 0, 0, 0.35), inset 0 -2px 4px rgba(0, 0, 0, 0.12) !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

.comments-section #sticker-select-btn:hover,
.comments-section .skeuo-button:hover,
.comments-section #show-premade-comment-modal-btn:hover {
  box-shadow: 0 6px 0 0 #166534, 0 8px 16px rgba(0, 0, 0, 0.4) !important;
  transform: translateY(-2px);
}

.comments-section #sticker-select-btn:active,
.comments-section .skeuo-button:active,
.comments-section #show-premade-comment-modal-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 0 #166534, 0 3px 8px rgba(0, 0, 0, 0.35) !important;
}

#sticker-select-btn:hover {
  background: linear-gradient(145deg, #f0f0f0, #d9d9d9) !important;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.3),
    inset 0 2px 4px rgba(255, 255, 255, 0.9),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1) !important;
  transform: translateY(1px);
}

#sticker-select-btn:active {
  background: linear-gradient(145deg, #d9d9d9, #f0f0f0) !important;
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 -2px 4px rgba(255, 255, 255, 0.8) !important;
  transform: translateY(2px);
}

#selected-sticker-preview {
  background: linear-gradient(145deg, #f8f9fa, #e9ecef) !important;
  border: 2px solid #d1d5db !important;
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.05),
    inset 0 -1px 2px rgba(255, 255, 255, 0.8) !important;
  border-radius: 12px !important;
  padding: 15px !important;
}

/* Leather sticker preview in comments section */
.comments-section #selected-sticker-preview {
  background-color: #857056 !important;
  background-image:
    linear-gradient(135deg, rgba(138, 118, 94, 0.65) 0%, rgba(122, 102, 88, 0.55) 50%, rgba(92, 64, 51, 0.58) 100%),
    var(--leather-seam-png) !important;
  background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size) !important;
  background-repeat: no-repeat, repeat !important;
  background-blend-mode: multiply, normal !important;
  border: 2px solid #6a4d3d !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), inset 0 2px 6px rgba(0, 0, 0, 0.2) !important;
  color: #e8e0d5 !important;
}

#remove-sticker-btn {
  background: linear-gradient(145deg, #ef4444, #dc2626) !important;
  border: 2px solid #b91c1c !important;
  box-shadow:
    0 3px 6px rgba(239, 68, 68, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 0.3),
    inset 0 -1px 2px rgba(0, 0, 0, 0.2) !important;
  border-radius: 8px !important;
  color: white !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
}

#remove-sticker-btn:hover {
  background: linear-gradient(145deg, #dc2626, #b91c1c) !important;
  transform: translateY(-1px);
  box-shadow:
    0 4px 8px rgba(239, 68, 68, 0.4),
    inset 0 1px 2px rgba(255, 255, 255, 0.35),
    inset 0 -1px 2px rgba(0, 0, 0, 0.25) !important;
}

/* Premade comment button styling */
.skeuo-button,
#show-premade-comment-modal-btn {
  background: linear-gradient(145deg, #4a90e2, #357abd, #2c5aa0) !important;
  color: white !important;
  border: 2px solid #2c5aa0 !important;
  padding: 12px 24px !important;
  border-radius: 12px !important;
  font-family: var(--default-font-family, 'Shrikhand') !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
  box-shadow:
    0 6px 12px rgba(59, 130, 246, 0.3),
    0 3px 6px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.3),
    inset 0 -2px 4px rgba(0, 0, 0, 0.2) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
  position: relative !important;
}

.skeuo-button::before,
#show-premade-comment-modal-btn::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.5));
  border-radius: 10px 10px 0 0;
}

.skeuo-button:hover,
#show-premade-comment-modal-btn:hover {
  background: linear-gradient(145deg, #5a9fe2, #4590cd, #357abd) !important;
  box-shadow:
    0 4px 8px rgba(59, 130, 246, 0.4),
    0 2px 4px rgba(0, 0, 0, 0.25),
    inset 0 2px 4px rgba(255, 255, 255, 0.35),
    inset 0 -2px 4px rgba(0, 0, 0, 0.25) !important;
  transform: translateY(-1px);
}

.premade-comment-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.premade-comment-quick-replies button {
  background: linear-gradient(145deg, #ffffff, #e6e6e6) !important;
  color: #333333 !important;
  border: 2px solid #d4d4d4 !important;
  padding: 8px 16px !important;
  border-radius: 12px !important;
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.8),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1) !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.2s ease;
  font-weight: 600;
}

.premade-comment-quick-replies button:hover {
  background: linear-gradient(145deg, #f0f0f0, #d9d9d9) !important;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.3),
    inset 0 2px 4px rgba(255, 255, 255, 0.9),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1) !important;
  transform: translateY(1px);
}

#comments-list {
  margin-top: 1.5rem;
  display: block;
}

/* Comment cards - glossy colored bubbles */
.comments-section .comment {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px 18px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(0, 0, 0, 0.1) 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 18px;
  box-shadow:
    0 2px 5px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  position: relative;
  max-width: 100%;
  transition: box-shadow 0.2s ease;
  overflow: hidden;
  color: #ffffff;
  text-shadow: 0 -1px 1px rgba(0, 0, 0, 0.3);
}

/* Glossy shine overlay on comments - matching message bubbles */
.comments-section .comment::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
  border-radius: 18px 18px 0 0;
  pointer-events: none;
  z-index: 0;
}

/* Content above shine overlay */
.comments-section .comment > * {
  position: relative;
  z-index: 1;
}

.comments-section .comment:hover {
  box-shadow:
    0 3px 8px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}

.comments-section .comment-reply {
  margin-left: 24px;
  margin-top: 10px;
  border-left: 3px solid rgba(92, 64, 51, 0.5);
}

/* Skeuo reply box and actions inside comments */
.comments-section .comment-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.comments-section .reply-box {
  margin-top: 12px;
  padding: 14px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.06) 50%, rgba(0, 0, 0, 0.08) 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 18px;
  box-shadow:
    0 2px 5px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
}

/* Glossy shine on reply box - matching message bubbles */
.comments-section .reply-box::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0));
  border-radius: 18px 18px 0 0;
  pointer-events: none;
  z-index: 0;
}

/* Content above reply-box shine */
.comments-section .reply-box > * {
  position: relative;
  z-index: 1;
}

.comments-section .reply-box textarea {
  background: rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(92, 64, 51, 0.5);
  border-radius: 8px;
  color: #ffffff;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.15);
}

.comments-section .reply-toggle,
.comments-section .post-reply-btn,
.comments-section .comment-like-btn {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 25%, transparent 50%),
    linear-gradient(145deg, #bef264 0%, #a3e635 25%, #84cc16 50%, #65a30d 75%, #4d7c0f 100%) !important;
  border: 2px solid #4d7c0f !important;
  color: #0f0f0f !important;
  padding: 8px 14px;
  border-radius: 10px;
  box-shadow: 0 5px 0 0 #166534, 0 6px 14px rgba(0, 0, 0, 0.35), inset 0 -2px 4px rgba(0, 0, 0, 0.12) !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) !important;
  font-weight: 600;
}

.comments-section .reply-toggle:hover,
.comments-section .post-reply-btn:hover,
.comments-section .comment-like-btn:not(:disabled):hover {
  box-shadow: 0 6px 0 0 #166534, 0 8px 16px rgba(0, 0, 0, 0.4), inset 0 -2px 4px rgba(0, 0, 0, 0.15) !important;
  transform: translateY(-2px);
}

.comments-section .comment-like-btn.liked {
  background: linear-gradient(145deg, #4d7c0f 0%, #166534 100%) !important;
  border-color: #14532d !important;
  color: #0f0f0f !important;
  box-shadow: 0 5px 0 0 #14532d, 0 6px 14px rgba(0, 0, 0, 0.35) !important;
}

.comments-section .comment-like-btn.liked .yeah-text,
.comments-section .comment-like-btn.liked span {
  color: #0f0f0f !important;
}

/* Feedback panel skeuo (inside comments section) */
.comments-section .feedback-panel {
  background-color: #958062;
  background-image:
    linear-gradient(135deg, rgba(154, 132, 106, 0.65) 0%, rgba(138, 118, 94, 0.55) 50%, rgba(122, 102, 88, 0.6) 100%),
    var(--leather-seam-png);
  background-size: 100% 100%, var(--leather-tile-size) var(--leather-tile-size);
  background-repeat: no-repeat, repeat;
  background-blend-mode: multiply, normal;
  border: 2px solid #6a4d3d;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25), inset 0 2px 0 rgba(255, 255, 255, 0.12), inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}

.comments-section .feedback-panel::before {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.2));
}

.comments-section .feedback-panel h3,
.comments-section .feedback-panel h4 {
  color: #e8e0d5;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
}

.comments-section .feedback-panel textarea {
  background: rgba(0, 0, 0, 0.12);
  border: 2px solid #6a4d3d;
  color: #ffffff;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.15);
}

.comments-section .feedback-panel .feedback-item {
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(92, 64, 51, 0.5);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 10px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.15);
}

.comments-section .feedback-panel .feedback-reply-toggle,
.comments-section .feedback-panel .post-feedback-reply {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
    linear-gradient(145deg, #bef264 0%, #a3e635 25%, #84cc16 50%, #65a30d 75%, #4d7c0f 100%) !important;
  border: 2px solid #4d7c0f !important;
  color: #0f0f0f !important;
  padding: 6px 12px;
  border-radius: 8px;
  box-shadow: 0 4px 0 0 #166534, 0 5px 12px rgba(0, 0, 0, 0.35), inset 0 -2px 4px rgba(0, 0, 0, 0.12) !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

.comments-section .feedback-panel .feedback-reply-toggle:hover,
.comments-section .feedback-panel .post-feedback-reply:hover {
  box-shadow: 0 5px 0 0 #166534, 0 6px 14px rgba(0, 0, 0, 0.4) !important;
  transform: translateY(-2px);
}

.comments-section .feedback-panel .feedback-reply-toggle:active,
.comments-section .feedback-panel .post-feedback-reply:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 0 #166534, 0 3px 8px rgba(0, 0, 0, 0.35) !important;
}

/* Send Feedback button – green (match project actions) */
.comments-section .feedback-panel button[type="submit"],
.comments-section .feedback-panel .like-btn {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 25%, transparent 50%),
    linear-gradient(145deg, #bef264 0%, #a3e635 25%, #84cc16 50%, #65a30d 75%, #4d7c0f 100%) !important;
  border: 2px solid #4d7c0f !important;
  color: #0f0f0f !important;
  box-shadow: 0 6px 0 0 #166534, 0 8px 18px rgba(0, 0, 0, 0.35), inset 0 -2px 4px rgba(0, 0, 0, 0.12) !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

.comments-section .feedback-panel button[type="submit"]:hover,
.comments-section .feedback-panel .like-btn:hover {
  box-shadow: 0 8px 0 0 #166534, 0 10px 22px rgba(0, 0, 0, 0.4) !important;
  transform: translateY(-2px);
}

.comments-section .feedback-panel button[type="submit"]:active,
.comments-section .feedback-panel .like-btn:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 0 #166534, 0 4px 10px rgba(0, 0, 0, 0.35) !important;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.comment-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #6a4d3d;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
  background: #76604f;
}

.comment-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comment-author {
  font-weight: 700;
  margin: 0;
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1.2;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
}

.comment-date {
  font-size: 0.8rem;
  color: #f5f5f5;
  margin: 0;
  font-weight: 500;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
}

.comments-section .comment-text {
  margin: 0;
  padding: 12px 14px;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  line-height: 1.5;
  font-size: 0.9rem;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

@media (max-width: 1200px) {
  .sidebar {
    width: 300px;
  }

  .greeting {
    font-size: 2.2rem;
  }

  .featured-projects h2 {
    font-size: 1.6rem;
  }

  .projects-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 992px) {
  .layout-wrapper {
    flex-direction: column;
    height: auto;
    width: 100%;
    gap: 0;
  }

  .sidebar {
    width: 100%;
    height: auto;
    flex-direction: row;
    justify-content: space-between;
    padding: 10px 20px;
    box-sizing: border-box;
  }

  .logo {
    margin-bottom: 0;
  }

  .logo-text {
    font-size: 1.5rem;
  }

  .nav-buttons {
    flex-direction: row;
    width: auto;
    gap: 8px;
    align-items: center;
  }

  .nav-btn {
    padding: 10px 15px;
    font-size: 1rem;
    white-space: nowrap;
  }

  .nav-auth-buttons {
    display: contents;
  }

  .container {
    width: 100%;
    min-height: auto;
    border-radius: 0;
    align-items: flex-start;
    /* top-align on tablets */
  }

  .main-content {
    padding: 20px;
  }

  /* Landscape layout: sidebar left, game centered larger */
  .project-game-iframe {
    width: 900px;
    height: 506px;
    /* 16:9 */
  }
}

@media (max-width: 768px) {
  .greeting-avatar {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
  }

  .greeting {
    font-size: 1.8rem;
  }

  .sidebar {
    padding: 10px;
  }

  .logo-img {
    display: none;
  }

  .nav-buttons {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    scrollbar-width: none;
    /* Firefox */
  }

  .nav-buttons::-webkit-scrollbar {
    display: none;
    /* Safari and Chrome */
  }

  /* Tablet portrait: tighter game */
  .project-game-iframe {
    width: 100%;
    height: 56.25vw;
    /* keep 16:9 based on width */
    max-height: 65vh;
  }
}


@media (max-width: 480px) {
  .main-content {
    padding: 15px;
  }

  .greeting {
    font-size: 1.5rem;
  }

  .featured-projects h2 {
    font-size: 1.3rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  /* Phone portrait: full width game and bottom toolbar */
  .project-game-iframe {
    width: 100%;
    height: 56.25vw;
    /* 16:9 */
    max-height: 60vh;
  }

  .sidebar {
    display: none;
  }

  .layout-wrapper {
    gap: 0;
  }

  .container {
    margin: 0;
    padding: 10px;
  }

  /* Defer to global leather toolbar — no override needed */
}

/* Touch gestures hint */
.touch-hints {
  display: none;
}

@media (pointer: coarse) {
  .touch-hints {
    display: block;
    text-align: center;
    font-size: 0.9rem;
    color: #333;
    margin-top: 8px;
  }
}

/* --- New Styles for Like Button --- */
.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
  width: 100%;
}

/* Action controls: like, share, views */
.project-actions {
  gap: 8px;
}

.like-btn,
.share-btn {
  background: linear-gradient(145deg, #ffffff, #e6e6e6);
  color: #333333;
  border: 2px solid #d4d4d4;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.8),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
  font-family: var(--default-font-family, 'Shrikhand');
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.like-btn:not(.liked):hover,
.share-btn:hover {
  background: linear-gradient(145deg, #f0f0f0, #d9d9d9);
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.25),
    inset 0 2px 4px rgba(255, 255, 255, 0.9),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px) scale(1.05);
}

.like-btn:not(.liked):active,
.share-btn:active {
  background: linear-gradient(145deg, #d9d9d9, #f0f0f0);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 -2px 4px rgba(255, 255, 255, 0.8);
  transform: translateY(0) scale(0.98);
}

.like-btn img,
.comment-like-btn img {
  height: 18px;
  width: 18px;
  vertical-align: middle;
  margin-right: 6px;
}

.like-btn .yeah-text,
.comment-like-btn .yeah-text {
  margin-right: 6px;
  font-weight: 700;
}

.like-btn:disabled,
.share-btn:disabled {
  opacity: 0.6;
}

/* Liked state - vibrant green */
.like-btn.liked,
.comment-like-btn.liked {
  background: linear-gradient(145deg, #00ff88, #00cc66) !important;
  border-color: #00aa55 !important;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
  box-shadow:
    0 6px 16px rgba(0, 255, 136, 0.5),
    inset 0 2px 4px rgba(255, 255, 255, 0.4),
    inset 0 -2px 4px rgba(0, 0, 0, 0.2) !important;
  transform: scale(1.05);
}

.like-btn.liked:hover,
.comment-like-btn.liked:hover {
  background: linear-gradient(145deg, #00ffaa, #00dd77) !important;
  box-shadow:
    0 8px 20px rgba(0, 255, 136, 0.6),
    inset 0 2px 4px rgba(255, 255, 255, 0.4),
    inset 0 -2px 4px rgba(0, 0, 0, 0.2) !important;
  transform: scale(1.06) translateY(-1px);
}

.like-btn.liked:active,
.comment-like-btn.liked:active {
  background: linear-gradient(145deg, #00dd77, #00ffaa) !important;
  box-shadow:
    0 4px 12px rgba(0, 255, 136, 0.5),
    inset 0 2px 6px rgba(0, 0, 0, 0.3),
    inset 0 -2px 4px rgba(255, 255, 255, 0.3) !important;
  transform: scale(1.03) translateY(1px);
}

/* Pulse animation when yeahed */
@keyframes yeahedPulse {
  0% {
    transform: scale(1);
    box-shadow:
      0 6px 16px rgba(0, 255, 136, 0.5),
      inset 0 2px 4px rgba(255, 255, 255, 0.4),
      inset 0 -2px 4px rgba(0, 0, 0, 0.2);
  }

  25% {
    transform: scale(1.15) rotate(-3deg);
    box-shadow:
      0 8px 24px rgba(0, 255, 136, 0.8),
      inset 0 2px 4px rgba(255, 255, 255, 0.6),
      inset 0 -2px 4px rgba(0, 0, 0, 0.2);
  }

  50% {
    transform: scale(1.2) rotate(3deg);
    box-shadow:
      0 10px 32px rgba(0, 255, 136, 1),
      inset 0 2px 4px rgba(255, 255, 255, 0.6),
      inset 0 -2px 4px rgba(0, 0, 0, 0.2);
  }

  75% {
    transform: scale(1.15) rotate(-2deg);
    box-shadow:
      0 8px 24px rgba(0, 255, 136, 0.8),
      inset 0 2px 4px rgba(255, 255, 255, 0.6),
      inset 0 -2px 4px rgba(0, 0, 0, 0.2);
  }

  100% {
    transform: scale(1.05);
    box-shadow:
      0 6px 16px rgba(0, 255, 136, 0.5),
      inset 0 2px 4px rgba(255, 255, 255, 0.4),
      inset 0 -2px 4px rgba(0, 0, 0, 0.2);
  }
}

.yeahed-pulse {
  animation: yeahedPulse 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Hover animation for all like buttons */
.like-btn:not(:disabled):hover,
.comment-like-btn:not(:disabled):hover {
  transform: translateY(-2px) scale(1.05);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.like-btn.liked:not(:disabled):hover,
.comment-like-btn.liked:not(:disabled):hover {
  transform: translateY(-2px) scale(1.08);
  box-shadow:
    0 10px 24px rgba(0, 255, 136, 0.7),
    inset 0 2px 4px rgba(255, 255, 255, 0.5),
    inset 0 -2px 4px rgba(0, 0, 0, 0.2) !important;
}

/* Click animation */
.like-btn:not(:disabled):active,
.comment-like-btn:not(:disabled):active {
  transform: translateY(0) scale(0.98);
  transition: all 0.1s ease;
}

/* Comment like button - match project like button styling */
.comment-like-btn {
  background: linear-gradient(145deg, #ffffff, #e6e6e6);
  color: #333333;
  border: 2px solid #d4d4d4;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow:
    0 3px 6px rgba(0, 0, 0, 0.15),
    inset 0 2px 4px rgba(255, 255, 255, 0.8),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
  font-family: var(--default-font-family, 'Shrikhand');
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.comment-like-btn img {
  height: 16px;
  width: 16px;
}

.comment-like-btn:not(.liked):hover {
  background: linear-gradient(145deg, #f0f0f0, #d9d9d9);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.9),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px) scale(1.05);
}

.comment-like-btn:not(.liked):active {
  background: linear-gradient(145deg, #d9d9d9, #f0f0f0);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 -2px 4px rgba(255, 255, 255, 0.8);
  transform: translateY(0) scale(0.98);
}

.views-pill {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid #e1e6ee;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 1px 0 #fff;
  font-size: 0.95rem;
}

.like-message {
  font-size: 1rem;
  color: #d32f2f;
  min-height: 1.2em;
  margin-bottom: 15px;
  text-align: center;
}

/* Comment action controls */
.comment-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
  flex-wrap: wrap;
}

.reply-toggle,
.delete-comment-btn {
  background: linear-gradient(145deg, #ffffff, #e6e6e6);
  color: #333333;
  border: 2px solid #d4d4d4;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow:
    0 3px 6px rgba(0, 0, 0, 0.15),
    inset 0 2px 4px rgba(255, 255, 255, 0.8),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
  font-family: var(--default-font-family, 'Shrikhand');
}

.reply-toggle:hover,
.delete-comment-btn:hover {
  background: linear-gradient(145deg, #f0f0f0, #d9d9d9);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.9),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px) scale(1.02);
}

.reply-toggle:active,
.delete-comment-btn:active {
  background: linear-gradient(145deg, #d9d9d9, #f0f0f0);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 -2px 4px rgba(255, 255, 255, 0.8);
  transform: translateY(0) scale(0.98);
}

.delete-comment-btn {
  background: linear-gradient(145deg, #fee2e2, #fecaca);
  color: #991b1b;
  border-color: #fca5a5;
}

.delete-comment-btn:hover {
  background: linear-gradient(145deg, #fecaca, #fca5a5);
  color: #7f1d1d;
}

.post-reply {
  background: linear-gradient(145deg, #4a90e2, #357abd, #2c5aa0) !important;
  color: white !important;
  border: 2px solid #2c5aa0 !important;
  box-shadow:
    0 6px 12px rgba(59, 130, 246, 0.3),
    0 3px 6px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.3),
    inset 0 -2px 4px rgba(0, 0, 0, 0.2) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
  position: relative !important;
}

.post-reply::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.5));
  border-radius: 6px 6px 0 0;
}

.post-reply:hover {
  background: linear-gradient(145deg, #5a9fe2, #4590cd, #357abd) !important;
  box-shadow:
    0 4px 8px rgba(59, 130, 246, 0.4),
    0 2px 4px rgba(0, 0, 0, 0.25),
    inset 0 2px 4px rgba(255, 255, 255, 0.35),
    inset 0 -2px 4px rgba(0, 0, 0, 0.25) !important;
  transform: translateY(-1px);
}

.reply-box {
  margin-top: 12px;
  padding: 16px;
  background: linear-gradient(145deg, #f8f9fa, #e9ecef, #dee2e6);
  border: 3px solid #adb5bd;
  border-radius: 16px;
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.1),
    inset 0 2px 4px rgba(255, 255, 255, 0.6),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
}

.reply-box::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.7));
  border-radius: 14px 14px 0 0;
}

.reply-box textarea {
  width: 100%;
  min-height: 60px;
  padding: 12px;
  border: 2px solid #cbd5e1;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.05),
    inset 0 -1px 2px rgba(255, 255, 255, 0.8);
  margin-bottom: 12px;
}

.reply-box textarea:focus {
  outline: none;
  border-color: #60a5fa;
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.05),
    inset 0 -1px 2px rgba(255, 255, 255, 0.8),
    0 0 0 3px rgba(59, 130, 246, 0.15);
}

.reply-toggle {
  background: linear-gradient(145deg, #f0f2f5, #e8eaed, #ddd);
  color: #1e293b;
  border: 3px solid #9ca3af;
  padding: 8px 16px;
  border-radius: 12px;
  transition: all 0.2s ease;
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.15),
    inset 0 2px 4px rgba(255, 255, 255, 0.6),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1);
  font-family: var(--default-font-family, 'Shrikhand');
  font-size: 0.85rem;
  font-weight: 600;
  will-change: transform;
  position: relative;
}

.reply-toggle::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.7));
  border-radius: 10px 10px 0 0;
}

.reply-toggle:hover {
  transform: translateY(-2px);
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.7),
    inset 0 -2px 4px rgba(0, 0, 0, 0.15);
  border-color: #6b7280;
}

.reply-toggle:active {
  transform: translateY(0);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.15),
    inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.delete-comment-btn {
  background: linear-gradient(145deg, #fee2e2, #fecaca, #fca5a5);
  color: #991b1b;
  border: 3px solid #f87171;
  padding: 8px 16px;
  border-radius: 12px;
  transition: all 0.2s ease;
  box-shadow:
    0 4px 8px rgba(239, 68, 68, 0.25),
    inset 0 2px 4px rgba(255, 255, 255, 0.5),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1);
  font-family: var(--default-font-family, 'Shrikhand');
  font-size: 0.85rem;
  font-weight: 600;
  will-change: transform;
  position: relative;
}

.delete-comment-btn::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.6));
  border-radius: 10px 10px 0 0;
}

.delete-comment-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 6px 12px rgba(239, 68, 68, 0.3),
    inset 0 2px 4px rgba(255, 255, 255, 0.6),
    inset 0 -2px 4px rgba(0, 0, 0, 0.15);
  border-color: #ef4444;
}

.delete-comment-btn:active {
  transform: translateY(0);
  box-shadow:
    0 2px 4px rgba(239, 68, 68, 0.2),
    inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Liked comment button - green style with dark text for visibility */
.comment-like-btn.liked {
  background: linear-gradient(180deg, #e9f7ef, #d5f0e2) !important;
  border-color: #b7e1c7 !important;
  color: #06b001 !important;
  box-shadow: 0 4px 10px rgba(0, 158, 105, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

.comment-like-btn.liked .yeah-text {
  color: #0f5132 !important;
}

.comment-like-btn.just-liked {
  transform: scale(1.1);
  transition: transform 0.2s ease;
}

/* Reply styling - smaller islands with blue tint */
.comment-reply {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 8px 8px 0;
  padding: 10px;
  background: linear-gradient(145deg, #dbeafe, #bfdbfe);
  border: 2px solid #60a5fa;
  border-left: 3px solid #16a34a;
  border-radius: 12px;
  box-shadow:
    0 3px 8px rgba(59, 130, 246, 0.15),
    inset 0 2px 4px rgba(255, 255, 255, 0.8),
    inset 0 -1px 3px rgba(37, 99, 235, 0.12);
  transition: all 0.2s ease;
  position: relative;
  max-width: 360px;
  vertical-align: top;
}

.comment-reply::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 3px;
  right: 2px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.9));
  border-radius: 10px 10px 0 0;
  pointer-events: none;
}

.comment-reply:hover {
  border-left-color: #15803d;
  box-shadow:
    0 5px 12px rgba(59, 130, 246, 0.25),
    inset 0 2px 4px rgba(255, 255, 255, 0.85),
    inset 0 -1px 3px rgba(37, 99, 235, 0.15);
  transform: translateY(-2px) scale(1.02);
}

.comment-reply .comment-avatar {
  width: 32px;
  height: 32px;
  border-color: #60a5fa;
  background: linear-gradient(145deg, #dbeafe, #bfdbfe);
}

.comment-reply .comment-author {
  font-size: 0.85rem;
  color: #1e3a8a;
}

.comment-reply .comment-date {
  font-size: 0.65rem;
  color: #1e40af;
}

.comment-reply .comment-text {
  font-size: 0.8rem;
  padding: 8px;
  background: linear-gradient(145deg, #eff6ff, #dbeafe);
  border-color: #93c5fd;
  color: #1e3a8a;
}

.comment-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 8px;
  width: 100%;
}

/* ========== PREMADE COMMENT STYLES ========== */
.premade-comment-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.premade-comment-quick-replies .premade-quick-reply-btn {
  padding: 8px 14px;
  background: linear-gradient(145deg, #ffffff, #f8f9fa, #e2e8f0);
  border: 3px solid #d1d5db;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.15),
    inset 0 2px 4px rgba(255, 255, 255, 0.7),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1);
  font-family: var(--default-font-family, 'Shrikhand');
  color: #333333;
}

.premade-comment-quick-replies .premade-quick-reply-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.8),
    inset 0 -2px 4px rgba(0, 0, 0, 0.15);
  border-color: #9ca3af;
}

.premade-comment-quick-replies .premade-quick-reply-btn:active {
  transform: translateY(0);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 -1px 2px rgba(255, 255, 255, 0.5);
}

.premade-comment-selector {
  margin-top: 10px;
}

/* Premade Comment Modal - reuse styles from messages */
.premade-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.premade-modal-content {
  background: linear-gradient(145deg, #f0f2f5, #e8eaed, #ddd);
  border: 3px solid #c0c4c8;
  border-radius: 20px;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.3),
    inset 0 3px 6px rgba(255, 255, 255, 0.9),
    inset 0 -3px 6px rgba(0, 0, 0, 0.15);
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.premade-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 2px solid #c0c4c8;
}

.premade-modal-header h3 {
  margin: 0;
  color: #334155;
  font-size: 1.5rem;
}

.close-btn {
  background: linear-gradient(145deg, #ef4444, #dc2626);
  color: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 2px rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
}

.close-btn:hover {
  transform: scale(1.1);
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

.premade-modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.premade-category-tabs-modal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e2e8f0;
}

.premade-category-tab {
  padding: 8px 16px;
  background: linear-gradient(145deg, #ffffff, #f8f9fa, #e2e8f0);
  border: 3px solid #d1d5db;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.15),
    inset 0 2px 4px rgba(255, 255, 255, 0.7),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1);
  font-family: var(--default-font-family, 'Shrikhand');
  color: #333333;
}

.premade-category-tab:hover {
  transform: translateY(-2px);
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.8),
    inset 0 -2px 4px rgba(0, 0, 0, 0.15);
  border-color: #9ca3af;
}

.premade-category-tab.active {
  background: linear-gradient(145deg, #bef264, #84cc16, #65a30d);
  color: white;
  border-color: #1e40af;
  box-shadow:
    0 4px 8px rgba(59, 130, 246, 0.3),
    inset 0 2px 4px rgba(255, 255, 255, 0.2),
    inset 0 -2px 4px rgba(0, 0, 0, 0.2);
}

.premade-search-container-modal {
  margin-bottom: 15px;
}

.premade-search-container-modal input {
  width: 100%;
  padding: 12px 16px;
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  border: 3px solid #d1d5db;
  border-radius: 12px;
  font-size: 0.9rem;
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.05),
    inset 0 -1px 2px rgba(255, 255, 255, 0.8);
  font-family: var(--default-font-family, 'Shrikhand');
}

.premade-messages-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  max-height: 400px;
  overflow-y: auto;
  padding: 10px;
  background: linear-gradient(145deg, #f8f9fa, #e9ecef);
  border-radius: 12px;
  border: 2px solid #dee2e6;
}

.premade-message-btn {
  padding: 10px 14px;
  background: linear-gradient(145deg, #ffffff, #f8f9fa, #e2e8f0);
  border: 3px solid #d1d5db;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.15),
    inset 0 2px 4px rgba(255, 255, 255, 0.7),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1);
  font-family: var(--default-font-family, 'Shrikhand');
  color: #333333;
  text-align: center;
  word-wrap: break-word;
}

.premade-message-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.8),
    inset 0 -2px 4px rgba(0, 0, 0, 0.15);
  border-color: #9ca3af;
}

.premade-message-btn:active {
  transform: translateY(0);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 -1px 2px rgba(255, 255, 255, 0.5);
}

.comment-reply:hover {
  transform: translateY(-2px);
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.7),
    inset 0 -2px 4px rgba(0, 0, 0, 0.15);
  border-color: #6b7280;
}

.comment-replies {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px solid #e5e7eb;
  padding-left: 0;
}

.comment-sticker {
  margin: 8px 0;
  padding: 12px;
  background: #fef3c7;
  border: 2px solid #fbbf24;
  border-radius: 10px;
  display: inline-block;
  box-shadow: 0 1px 2px rgba(251, 191, 36, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  will-change: transform;
}

.comment-sticker:hover {
  box-shadow: 0 2px 4px rgba(251, 191, 36, 0.3);
  transform: translateY(-1px);
}

.comment-sticker img,
.comment-sticker object {
  width: 64px;
  height: 64px;
  display: block;
}

/* Comment sticker: one size for all, big enough to see; full sticker visible (no crop) */
.comment-sticker-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 8px 0;
  width: 160px;
  height: 160px;
  min-width: 160px;
  min-height: 160px;
  flex-shrink: 0;
}

.comment-sticker-wrap img,
.comment-sticker-wrap object {
  max-width: 100%;
  max-height: 100%;
  width: 160px;
  height: 160px;
  object-fit: contain;
  display: block;
}


.project-meta-line {
  margin-top: -8px;
  margin-bottom: 6px;
  color: #f5f5f5;
}

/* Project Flairs - Genre and Subgenre */
.project-flairs {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 12px;
}

.project-flair {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: capitalize;
  background: #fff;
  border: 2px solid #6a4d3d;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-flair:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.genre-flair {
  background: #fff;
  border-color: #667eea;
  color: #4c51a0;
}

.subgenre-flair {
  background: #fff;
  border-color: #f5576c;
  color: #c73e54;
}

.audience-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  border: 2px solid #6a4d3d;
  background: #fff;
  color: #ffffff;
  font-size: .9rem;
}

.project-thumbnail {
  display: block;
  max-width: 200px;
  margin: 0 auto 1rem;
  border-radius: 5px;
  border: 2px solid #333;
}

/* This class is no longer used */
/*
.project-file-display {
  margin-bottom: 20px;
  width: 100%;
}
*/

/* Skeuomorphic utility plate (store-inspired) */
.skeuo-plate {
  background:
    radial-gradient(160% 120% at 50% -10%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(155deg, #ffffff 0%, #f2f6fb 100%);
  border: 2px solid #c2cadd;
  border-radius: 18px;
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.16),
    inset 0 2px 0 rgba(255, 255, 255, 0.95),
    inset 0 -2px 0 rgba(0, 0, 0, 0.07);
  padding: 16px;
}

/* Subtle shimmer for hero area */
.shine {
  position: relative;
  overflow: hidden;
}

.shine:after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .45) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-20deg);
  animation: shineMove 4s ease-in-out infinite;
}

@keyframes shineMove {
  0% {
    left: -150%;
  }

  60% {
    left: 130%;
  }

  100% {
    left: 130%;
  }
}

/* Page reveal and micro-interactions */
.fade-in-up {
  opacity: 0;
  transform: translateY(8px);
  animation: fadeUp .5s ease forwards;
}

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

.hover-bounce {
  transition: transform .12s ease;
}

.hover-bounce:hover {
  transform: translateY(-2px) scale(1.02);
}

/* Enhanced Poll UI Styles */
.poll-content {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  animation: fadeInPoll 0.6s ease-out;
}

@keyframes fadeInPoll {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

/* Poll Expiration Banner */
.poll-expiration {
  margin-bottom: 20px;
  padding: 16px 20px;
  border-radius: 12px;
  text-align: center;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), inset 0 2px 4px rgba(255, 255, 255, 0.3);
  border: 2px solid;
  position: relative;
  overflow: hidden;
  animation: slideDownBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.poll-expiration::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

.poll-expiration-normal {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.1) 100%);
  border-color: #16a34a;
  color: #1e40af;
}

.poll-expiration-urgent {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.15) 0%, rgba(185, 28, 28, 0.1) 100%);
  border-color: #dc2626;
  color: #991b1b;
  animation: pulseUrgent 2s infinite;
}

.poll-expiration-ended {
  background: linear-gradient(135deg, rgba(107, 114, 128, 0.15) 0%, rgba(75, 85, 99, 0.1) 100%);
  border-color: #6b7280;
  color: #374151;
}

@keyframes pulseUrgent {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.02);
  }
}

.poll-expiration .material-icons {
  vertical-align: middle;
  font-size: 1.3em;
  margin-right: 8px;
  animation: rotateIcon 2s ease-in-out infinite;
}

@keyframes rotateIcon {

  0%,
  100% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(10deg);
  }
}

@keyframes slideDownBounce {
  0% {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }

  60% {
    transform: translateY(5px) scale(1.02);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Multiple Votes Indicator */
.poll-multiple-indicator {
  text-align: center;
  padding: 14px 20px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 2px solid #16a34a;
  border-radius: 12px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2), inset 0 2px 4px rgba(255, 255, 255, 0.5);
  color: #1e40af;
  font-size: 0.95rem;
  animation: slideDownBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

.poll-multiple-indicator .material-icons {
  vertical-align: middle;
  font-size: 1.3em;
  margin-right: 8px;
  color: #16a34a;
}

/* Poll Options Container */
.poll-options {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Poll Option Card */
.poll-option {
  position: relative;
  padding: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 3px solid #d4d4d4;
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08),
    inset 0 2px 4px rgba(255, 255, 255, 0.9),
    inset 0 -2px 4px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
}

.poll-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.poll-option:hover::before {
  opacity: 1;
}

.poll-option:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12),
    inset 0 2px 4px rgba(255, 255, 255, 0.9),
    inset 0 -2px 4px rgba(0, 0, 0, 0.05);
  border-color: #16a34a;
}

.poll-option:active {
  transform: translateY(-2px) scale(1.01);
  transition: all 0.1s ease;
}

.poll-option-voted {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  border-color: #166534;
  color: white;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.2),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1);
  animation: votePulse 0.6s ease-out;
}

@keyframes votePulse {
  0% {
    transform: scale(1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.6);
  }

  100% {
    transform: scale(1);
  }
}

.poll-option-voted:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.5),
    inset 0 2px 4px rgba(255, 255, 255, 0.2);
}

.poll-option-expired {
  cursor: default;
  opacity: 0.7;
}

.poll-option-expired:hover {
  transform: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* Poll Option Content */
.poll-option-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.poll-option-text {
  flex: 1;
}

.poll-option-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
  color: inherit;
}

.poll-option-stats {
  font-size: 0.9rem;
  opacity: 0.85;
  color: inherit;
}

.poll-percentage {
  font-weight: 600;
  opacity: 1;
}

.poll-check-icon {
  font-size: 28px;
  margin-left: 12px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: #16a34a;
}

.poll-check-icon-hidden {
  opacity: 0.3;
  transform: scale(0.8);
}

.poll-option-voted .poll-check-icon {
  color: white;
  animation: checkBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes checkBounce {
  0% {
    transform: scale(0) rotate(-180deg);
    opacity: 0;
  }

  60% {
    transform: scale(1.2) rotate(10deg);
  }

  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

/* Progress Bar Container */
.poll-progress-container {
  width: 100%;
  height: 16px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.15),
    inset 0 1px 2px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
}

.poll-option-voted .poll-progress-container {
  background: rgba(255, 255, 255, 0.25);
}

.poll-progress-bar {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.poll-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #bef264 0%, #84cc16 50%, #65a30d 100%);
  border-radius: 10px;
  position: relative;
  transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4),
    inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.poll-option-voted .poll-progress-fill {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3),
    inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.poll-progress-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: progressShine 2s infinite;
}

@keyframes progressShine {
  0% {
    left: -100%;
  }

  100% {
    left: 150%;
  }
}

/* Ripple Effect */
.poll-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.3);
  transform: scale(0);
  pointer-events: none;
  z-index: 1;
}

.poll-option:active .poll-ripple {
  animation: rippleEffect 0.6s ease-out;
}

@keyframes rippleEffect {
  0% {
    transform: scale(0);
    opacity: 1;
  }

  100% {
    transform: scale(4);
    opacity: 0;
  }
}

/* Poll Stats */
.poll-stats {
  text-align: center;
  padding: 18px 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 2px solid #d4d4d4;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08),
    inset 0 2px 4px rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  animation: slideDownBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
}

.poll-stats .material-icons {
  vertical-align: middle;
  font-size: 1.4em;
  margin-right: 8px;
  color: #16a34a;
}

.poll-total-number {
  color: #16a34a;
  font-weight: 700;
  font-size: 1.2em;
}

/* Poll Voter List */
.poll-voter-list {
  margin-top: 32px;
  padding: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 2px solid #d4d4d4;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08),
    inset 0 2px 4px rgba(255, 255, 255, 0.9);
  animation: slideDownBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s both;
}

.poll-voter-list h3 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 1.25rem;
  color: #f5f5f5;
  display: flex;
  align-items: center;
  gap: 8px;
}

.poll-voter-list .material-icons {
  font-size: 1.3em;
  color: #16a34a;
}

.poll-voter-option {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.poll-voter-option:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.poll-voter-option strong {
  display: block;
  margin-bottom: 12px;
  color: #374151;
  font-size: 1rem;
}

.poll-voters-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.poll-voter-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 2px solid #d4d4d4;
  border-radius: 20px;
  text-decoration: none;
  color: #333;
  font-size: 0.9rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08),
    inset 0 1px 2px rgba(255, 255, 255, 0.9);
  transition: all 0.2s ease;
}

.poll-voter-badge:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12),
    inset 0 1px 2px rgba(255, 255, 255, 0.9);
  border-color: #16a34a;
}

.poll-voter-badge img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(59, 130, 246, 0.2);
}

/* Poll Error State */
.poll-error {
  text-align: center;
  padding: 48px 24px;
  color: #dc2626;
  animation: fadeInPoll 0.6s ease-out;
}

.poll-error .material-icons {
  font-size: 56px;
  margin-bottom: 16px;
  display: block;
  opacity: 0.7;
}

.poll-error p {
  font-size: 1.1rem;
  margin: 0;
}

/* Loading State */
.poll-loading {
  text-align: center;
  padding: 48px 24px;
  animation: fadeInPoll 0.6s ease-out;
}

.poll-loading .material-icons {
  font-size: 56px;
  opacity: 0.5;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

/* Comments UI calm remodel */
.comments-section {
  max-width: 960px;
  width: 100%;
  margin: 32px auto 0;
  padding: 24px;
  background: linear-gradient(145deg, #f9fafb, #f4f5f7);
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(31, 41, 55, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.comments-section::before {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.7));
  height: 2px;
}

#comment-form {
  padding: 18px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: linear-gradient(180deg, #ffffff, #f6f7fb);
  box-shadow: 0 6px 14px rgba(31, 41, 55, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

#comment-form textarea {
  background: #ffffff;
  border: 1px solid #d9dde6;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

#comment-form button,
#post-comment-btn {
  background: linear-gradient(180deg, #fdfefe, #e9edf3);
  border: 1px solid #d5dae3;
  color: #f5f5f5;
  box-shadow: 0 3px 8px rgba(31, 41, 55, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  text-shadow: none;
}

#comment-form button:hover,
#post-comment-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(31, 41, 55, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

#comment-form button:active,
#post-comment-btn:active {
  transform: translateY(0);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* Comments list: layout handled by .comments-section #comments-list above; no flat overrides here */

.comment-actions {
  gap: 10px;
  flex-wrap: wrap;
}

.comment-like-btn,
.reply-toggle,
.delete-comment-btn {
  background: linear-gradient(180deg, #ffffff, #f2f4f7);
  border: 1px solid #d6dce5;
  color: #f5f5f5;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  text-shadow: none;
  transform: none;
}

.comment-like-btn:not(:disabled):hover,
.reply-toggle:hover,
.delete-comment-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.comment-like-btn:not(:disabled):active,
.reply-toggle:active,
.delete-comment-btn:active {
  transform: translateY(0);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
}

.comment-like-btn.liked {
  background: linear-gradient(180deg, #e9f7ef, #d5f0e2) !important;
  border-color: #b7e1c7 !important;
  color: #0f5132 !important;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  transform: none;
}

.comment-like-btn.liked:hover {
  transform: translateY(-1px);
}

.comment-like-btn.liked .yeah-text,
.comment-like-btn.liked span {
  color: #0f5132 !important;
}

.delete-comment-btn {
  background: linear-gradient(180deg, #fff7f7, #fdecec);
  border-color: #f3c7c7;
  color: #7f1d1d;
}

.comment-message {
  background: linear-gradient(180deg, #f8fafc, #eef1f6);
  border: 1px solid #e2e8f0;
  color: #0f172a;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

#selected-sticker-preview {
  background: linear-gradient(180deg, #ffffff, #f6f7fb) !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

/* Force green Yeah + Reply in comments (override any later calm-remodel rules) */
#comments-panel .comment-like-btn,
#comments-panel .reply-toggle,
#comments-panel .post-reply-btn {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 25%, transparent 50%),
    linear-gradient(145deg, #bef264 0%, #a3e635 25%, #84cc16 50%, #65a30d 75%, #4d7c0f 100%) !important;
  border: 2px solid #4d7c0f !important;
  color: #0f0f0f !important;
  box-shadow: 0 5px 0 0 #166534, 0 6px 14px rgba(0, 0, 0, 0.35), inset 0 -2px 4px rgba(0, 0, 0, 0.12) !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

#comments-panel .comment-like-btn:hover,
#comments-panel .reply-toggle:hover,
#comments-panel .post-reply-btn:hover {
  box-shadow: 0 6px 0 0 #166534, 0 8px 16px rgba(0, 0, 0, 0.4) !important;
  transform: translateY(-2px);
}

#comments-panel .comment-like-btn.liked {
  background: linear-gradient(145deg, #4d7c0f 0%, #166534 100%) !important;
  border-color: #14532d !important;
  color: #0f0f0f !important;
  box-shadow: 0 5px 0 0 #14532d, 0 6px 14px rgba(0, 0, 0, 0.35) !important;
}

#comments-panel .comment-like-btn.liked .yeah-text,
#comments-panel .comment-like-btn.liked span {
  color: #0f0f0f !important;
}

/* =========================================================
   Art image + Carousel
   ========================================================= */

/* Single-image art frame */
.project-art-frame {
  width: 100%;
  text-align: center;
  line-height: 0; /* removes phantom gap below img */
}

.project-art {
  max-width: 100%;
  height: auto;
  width: auto;
  max-height: min(80vh, 96vw);
  display: block;
  margin: 0 auto;
  border-radius: 10px;
  border: 3px solid #6a4d3d;
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.35),
    inset 0 2px 0 rgba(255, 255, 255, 0.15);
  object-fit: contain;
}

/* Multi-image carousel wrapper */
.project-carousel {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* The sliding track — fixed height so all slides are the same */
.project-carousel-inner {
  width: 100%;
  position: relative;
}

/* Each slide: flexible height — never stretch art to a fixed box */
.project-carousel-slide {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  background: #1a1208;
  border-radius: 10px;
  border: 3px solid #6a4d3d;
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.35),
    inset 0 2px 0 rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.project-carousel-slide[hidden] {
  display: none;
}

.project-carousel-slide img,
.project-carousel-slide .project-art {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(75vh, 96vw);
  display: block;
  margin: 0 auto;
  object-fit: contain;
}


/* Dot indicators */
.project-carousel-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin-top: 14px;
  padding: 0;
}

.project-carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #4d7c0f;
  background: linear-gradient(145deg, #e8f5d0, #c6e68a);
  box-shadow:
    0 2px 0 0 #166534,
    0 3px 6px rgba(0, 0, 0, 0.25),
    inset 0 -1px 3px rgba(0, 0, 0, 0.12);
  padding: 0;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.project-carousel-dot[aria-current="true"] {
  background: linear-gradient(145deg, #bef264 0%, #84cc16 50%, #4d7c0f 100%);
  box-shadow:
    0 2px 0 0 #14532d,
    0 3px 8px rgba(0, 0, 0, 0.3),
    inset 0 -1px 3px rgba(0, 0, 0, 0.2);
  transform: scale(1.25);
}

.project-carousel-dot:hover {
  transform: scale(1.15);
}