/* (full CSS as previous, but with corrected .comment-input-area button) */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}
body {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  color: #f5f5f5;
  padding: 20px;
  padding-bottom: 100px;
  min-height: 100vh;
}
html { scroll-behavior: smooth; }
.topbar { margin-bottom: 30px; }
.topbar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  padding: 12px 20px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
h1 {
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ff9d00, #ffec80);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
}
.menu-icon {
  font-size: 26px;
  cursor: pointer;
  background: linear-gradient(135deg, #ff9d00, #ff7b00);
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 157, 0, 0.3);
}
.menu-icon:hover {
  transform: rotate(90deg);
  background: linear-gradient(135deg, #ff7b00, #ff9d00);
}
.filter-dropdown {
  display: none;
  background: rgba(30, 30, 35, 0.95);
  backdrop-filter: blur(12px);
  padding: 20px;
  border-radius: 28px;
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  animation: slideDown 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}
.filter-dropdown.show { display: block; }
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-15px); }
  to { opacity: 1; transform: translateY(0); }
}
.filter-dropdown input, .filter-dropdown select {
  background: rgba(20,20,25,0.9);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 40px;
  padding: 14px 18px;
  margin-top: 12px;
  width: 100%;
  color: white;
}
.divider-light {
  margin: 18px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}
h3 { color: #ff9d00; margin: 10px 0 5px; }
#adminPanel {
  background: rgba(25,25,30,0.7);
  backdrop-filter: blur(8px);
  border-radius: 32px;
  padding: 20px;
  margin: 20px 0;
  border: 1px solid rgba(255,255,255,0.1);
}
input, select, button {
  border-radius: 50px !important;
  font-weight: 600;
  transition: 0.25s;
}
input, select {
  background: #1e1e24;
  border: 1px solid #2c2c34;
  color: white;
  padding: 14px 18px;
}
#loginBtn {
  background: linear-gradient(95deg, #ff7e05, #ffb703);
  box-shadow: 0 5px 15px rgba(255,123,0,0.4);
}
#uploadBtn {
  background: linear-gradient(95deg, #00b4d8, #00f2fe);
}
#logoutBtn {
  background: linear-gradient(95deg, #e63946, #ff6b81);
}
#postsContainer {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 20px;
}
.card {
  background: rgba(20,20,25,0.75);
  backdrop-filter: blur(4px);
  border-radius: 32px;
  padding: 20px;
  transition: 0.3s;
  border: 1px solid rgba(255,255,255,0.08);
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,157,0,0.4);
}
.card img {
  width: 100%;
  border-radius: 24px;
  cursor: pointer;
  transition: transform 0.3s;
}
.card img:hover { transform: scale(1.02); }
.card h2 {
  font-size: 1.7rem;
  margin-top: 18px;
  background: linear-gradient(135deg, #fff, #ddd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.card p {
  color: #bbb;
  display: inline-block;
  background: rgba(255,157,0,0.2);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.9rem;
  margin-top: 8px;
}
.post-actions {
  display: flex;
  gap: 25px;
  margin-top: 20px;
}
.like-btn {
  background: linear-gradient(135deg, #ff4d4d, #ff9999) !important;
  color: white;
  padding: 8px 24px;
  border-radius: 40px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(255,77,77,0.3);
}
.comment-btn {
  background: linear-gradient(135deg, #1e90ff, #6ab0ff) !important;
  color: white;
  padding: 8px 24px;
  border-radius: 40px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(30,144,255,0.3);
}
.comment-section {
  margin-top: 20px;
  background: rgba(0,0,0,0.4);
  border-radius: 28px;
  padding: 18px;
}
.comment-list {
  max-height: 260px;
  overflow-y: auto;
}
.comment-item {
  background: rgba(30,30,35,0.7);
  padding: 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  border-left: 3px solid #ff9d00;
}
.comment-name {
  font-weight: bold;
  color: #ff9d00;
}
.comment-text {
  color: #eee;
  margin-top: 5px;
}

/* ========== FIXED COMMENT POST BUTTON ========== */
.comment-input-area {
  display: flex;
  gap: 12px;
  margin-top: 15px;
  flex-wrap: wrap;
}
.comment-input-area input {
  flex: 1;
  margin: 0;
  padding: 12px 18px;
  background: #1e1e24;
  border: 1px solid #2c2c34;
  border-radius: 40px;
  color: white;
}
.comment-input-area button {
  background: linear-gradient(95deg, #00b4d8, #00f2fe) !important;
  border: none;
  color: white;
  padding: 12px 24px;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
  width: auto;
  margin: 0;
  box-shadow: 0 2px 8px rgba(0,180,216,0.3);
  transition: all 0.2s ease;
}
.comment-input-area button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,180,216,0.5);
  background: linear-gradient(95deg, #00c8ff, #48ffea) !important;
}

.bottomNav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(15,15,20,0.9);
  backdrop-filter: blur(20px);
  display: flex;
  justify-content: space-around;
  padding: 12px 15px;
  border-top: 1px solid rgba(255,255,255,0.1);
  z-index: 100;
}
.bottomNav button {
  background: none !important;
  width: auto;
  padding: 10px 18px;
  color: #ccc;
  box-shadow: none;
}
.bottomNav button:hover {
  background: rgba(255,157,0,0.2) !important;
  color: #ff9d00;
}
#imageViewer {
  position: fixed;
  top:0; left:0; width:100%; height:100%;
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(15px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}
#viewerImage {
  max-width: 90%;
  max-height: 90%;
  border-radius: 32px;
}
.close-viewer {
  position: absolute;
  top:20px; right:30px;
  font-size: 32px;
  background: rgba(0,0,0,0.7);
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s;
}
.close-viewer:hover {
  background: #ff9d00;
  color: black;
}
.skeleton-card {
  background: rgba(30,30,35,0.6);
  border-radius: 32px;
  padding: 20px;
  animation: shimmer 1.5s infinite;
}
.skeleton-img {
  width: 100%;
  height: 200px;
  background: linear-gradient(90deg, #2a2a2a, #3a3a3a, #2a2a2a);
  background-size: 200%;
  border-radius: 24px;
  animation: skeleton-loading 1.5s infinite;
}
@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes shimmer {
  0% { opacity: 0.3; }
  50% { opacity: 0.8; }
  100% { opacity: 0.3; }
}
.loading-spinner {
  text-align: center;
  padding: 40px;
}
.spinner {
  border: 4px solid #2a2a2a;
  border-top: 4px solid #ff9d00;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #1a1a1a; border-radius: 10px; }
::-webkit-scrollbar-thumb { background: #ff9d00; border-radius: 10px; }
@media (max-width: 600px) {
  .comment-input-area { flex-direction: column; }
  .comment-input-area button { width: 100%; }
}