@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: #f4f4f5;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.bg-video {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.bg-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(9, 9, 11, 0.8);
  z-index: -1;
}

.glass {
  background: rgba(18, 18, 22, 0.6);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.8);
}

.navbar {
  position: fixed !important;
  top: 1rem !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: calc(100% - 2rem) !important;
  z-index: 1000 !important;
  margin: 0 !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.5rem !important;
  border-radius: 100px !important;
  max-width: 850px !important;
  
  background: rgba(18, 18, 22, 0.7) !important;
  backdrop-filter: blur(20px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(150%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
  transition: all 0.3s ease;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 1rem !important;
}

.nav-logo img {
  height: 48px !important;
  width: 48px !important;
  border-radius: 12px !important;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}

.nav-logo img:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 0.2rem;
}

.nav-links a {
  color: #a1a1aa;
  padding: 0.4rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.nav-links a.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.btn-nav {
  background: #fff;
  color: #000;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  transition: all 0.2s ease;
}

.btn-nav:hover {
  background: #e4e4e7;
  transform: translateY(-1px);
}

.discord-icon-nav {
  color: #a1a1aa;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.discord-icon-nav:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.discord-icon-nav svg {
  width: 18px;
  height: 18px;
}

main {
  max-width: 800px;
  margin: 7rem auto 2rem auto !important;
  padding: 2.5rem;
}

h2 {
  font-size: 1.75rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
}

a { color: #fff; text-decoration: none; }
.meta { font-size: 0.9rem; color: #a1a1aa; }

.btn-primary {
  display: inline-block;
  background: #fff;
  color: #000;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary:hover {
  background: #e4e4e7;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
}

.input-group {
  margin-bottom: 1.2rem;
}

.input-group label {
  display: block;
  font-size: 0.85rem;
  color: #a1a1aa;
  margin-bottom: 0.4rem;
  font-weight: 500;
}

input, textarea {
  width: 100% !important;
  padding: 0.9rem 1rem !important;
  margin-bottom: 1rem !important;
  background: rgba(0, 0, 0, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 10px !important;
  color: #fff !important;
  font-family: 'Inter', -apple-system, sans-serif !important;
  font-size: 0.95rem !important;
  outline: none !important;
  transition: all 0.2s ease !important;
  box-shadow: none !important;
}

input::placeholder, textarea::placeholder {
  color: #71717a !important;
}

input:focus, textarea:focus {
  border-color: rgba(255, 255, 255, 0.3) !important;
  background: rgba(0, 0, 0, 0.6) !important;
}

form button {
  background: #fff !important;
  color: #000 !important;
  border: none !important;
  padding: 0.7rem 1.5rem !important;
  border-radius: 10px !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  font-family: 'Inter', sans-serif !important;
}

form button:hover {
  background: #e4e4e7 !important;
  transform: translateY(-1px) !important;
}

form button:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

.code-container {
  background: #09090b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 1rem;
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mac-dots { display: flex; gap: 6px; }
.mac-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.lang {
  font-size: 0.75rem;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: 1rem;
  flex: 1;
}

#copyBtn {
  background: transparent !important;
  color: #a1a1aa !important;
  border: none !important;
  font-size: 0.8rem !important;
  cursor: pointer !important;
  font-weight: 500 !important;
  padding: 0.2rem 0.5rem !important;
  transition: color 0.2s !important;
  box-shadow: none !important;
}

#copyBtn:hover { color: #fff !important; }

pre {
  padding: 1.2rem;
  overflow-x: auto;
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
}

code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.85rem;
  color: #e4e4e7;
  line-break: anywhere;
}

pre::-webkit-scrollbar { height: 8px; width: 8px; }
pre::-webkit-scrollbar-track { background: transparent; }
pre::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 10px; }
pre::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.3); }

.back {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.85rem;
  color: #a1a1aa;
  transition: color 0.2s;
}
.back:hover { color: #fff; }

footer {
  max-width: 800px;
  margin: 4rem auto 2rem;
  padding-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: #71717a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

footer a { color: #a1a1aa; margin: 0 0.5rem; transition: color 0.2s; }
footer a:hover { color: #fff; }
footer p { margin-top: 1rem; }

.hero { text-align: center; max-width: 600px; margin: 0 auto; padding: 2rem 0; }
.hero-badge {
  display: inline-block; padding: 0.3rem 0.8rem;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px; font-size: 0.75rem; font-weight: 500; color: #a1a1aa;
  margin-bottom: 1.5rem; letter-spacing: 0.05em;
}
.hero-title { font-size: 2.5rem; font-weight: 600; color: #fff; line-height: 1.2; margin-bottom: 1.5rem; letter-spacing: -0.03em; }
.hero-desc { font-size: 1.05rem; color: #a1a1aa; margin-bottom: 2.5rem; line-height: 1.7; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; }

.glow-effect {
  position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(0,0,0,0) 70%);
  z-index: -1; pointer-events: none;
}

.hero-stats {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-size: 0.85rem; color: #a1a1aa; margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.05); padding: 0.4rem 1rem;
  border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.1);
  width: fit-content; margin: 0 auto 2rem auto;
}
.stat-dot { width: 6px; height: 6px; background: #10b981; border-radius: 50%; box-shadow: 0 0 10px #10b981; animation: pulse 2s infinite; }

@keyframes pulse { 0% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.8); } 100% { opacity: 1; transform: scale(1); } }

.product-section { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; text-align: left; }
.product-info h2 { font-size: 1.75rem; color: #fff; margin-bottom: 1rem; letter-spacing: -0.02em; }
.product-info p { color: #a1a1aa; font-size: 0.95rem; margin-bottom: 1.5rem; }
.feature-list { list-style: none; padding: 0; }
.feature-list li { color: #e4e4e7; font-size: 0.95rem; margin-bottom: 0.8rem; display: flex; align-items: center; gap: 0.8rem; }
.feature-list li span { color: #10b981; font-weight: bold; }

.product-mockup {
  background: #09090b; border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px; overflow: hidden; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  transform: perspective(1000px) rotateY(-5deg) rotateX(5deg); transition: transform 0.3s ease;
}
.product-mockup:hover { transform: perspective(1000px) rotateY(0deg) rotateX(0deg); }
.mockup-header { display: flex; align-items: center; padding: 0.6rem 1rem; background: rgba(255, 255, 255, 0.03); border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.mockup-header .lang { margin-left: 1rem; font-size: 0.75rem; color: #71717a; }
.product-mockup pre { padding: 1.5rem; margin: 0; font-size: 0.85rem; }
.str { color: #a78bfa; }

.faq-section { max-width: 600px; margin: 0 auto; text-align: left; }
.faq-item { border-bottom: 1px solid rgba(255, 255, 255, 0.08); padding: 1rem 0; }
.faq-item summary { cursor: pointer; font-weight: 500; color: #e4e4e7; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: #71717a; font-size: 1.2rem; transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 1rem; color: #a1a1aa; font-size: 0.9rem; line-height: 1.7; }

body.loading { overflow: hidden; }

#loader {
  position: fixed; inset: 0; background: #09090b; z-index: 9999;
  display: flex; justify-content: center; align-items: center;
  transition: opacity 0.5s ease;
}
.loader-text { font-size: 2rem; font-weight: 600; color: #fff; letter-spacing: 0.1em; animation: pulse-text 1.5s infinite alternate; }
@keyframes pulse-text { 0% { opacity: 0.5; transform: scale(0.98); } 100% { opacity: 1; transform: scale(1); } }

.fade-in { animation: fadeInUp 0.8s ease forwards; opacity: 0; transform: translateY(20px); }
.hero.fade-in { animation-delay: 0.1s; }
.ui-preview-section.fade-in { animation-delay: 0.2s; }
.product-section.fade-in { animation-delay: 0.3s; }
.faq-section.fade-in { animation-delay: 0.4s; }
footer.fade-in { animation-delay: 0.5s; }

@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.ui-preview-section { text-align: center; }
.ui-image-container {
  width: 100%; border-radius: 16px; overflow: hidden; background: #09090b;
  border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transition: transform 0.1s ease-out; transform-style: preserve-3d; will-change: transform;
}
.ui-image-container img { width: 100%; height: auto; display: block; object-fit: cover; }

.connect-section { text-align: center; }
.connect-section h2 { font-size: 1.5rem; color: #fff; margin-bottom: 0.5rem; }
.tabs-container { max-width: 600px; margin: 0 auto; background: rgba(0, 0, 0, 0.2); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px; overflow: hidden; }
.tabs-header { display: flex; background: rgba(255, 255, 255, 0.03); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.tab-btn { flex: 1; padding: 1rem; background: transparent; border: none; border-bottom: 2px solid transparent; color: #a1a1aa; font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: all 0.2s ease; font-family: inherit; }
.tab-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.tab-btn.active { color: #fff; border-bottom-color: #fff; background: rgba(255, 255, 255, 0.05); }
.tabs-content { padding: 2.5rem 2rem; }
.tab-pane { display: none; animation: fadeIn 0.4s ease; }
.tab-pane.active { display: block; }
.pane-inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.social-icon { width: 40px; height: 40px; color: #e4e4e7; margin-bottom: 0.5rem; }
.pane-inner h3 { font-size: 1.1rem; color: #fff; font-weight: 500; }
.pane-inner p { color: #a1a1aa; font-size: 0.9rem; max-width: 400px; margin: 0 auto 1rem auto; line-height: 1.6; }

.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-top: 2rem; }
.contact-info h2 { font-size: 2rem; color: #fff; margin-bottom: 1rem; letter-spacing: -0.02em; }
.contact-info > p { color: #a1a1aa; font-size: 0.95rem; margin-bottom: 2rem; }
.info-box { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); padding: 1.5rem; border-radius: 12px; }
.info-box h3 { color: #fff; font-size: 1rem; margin-bottom: 0.5rem; }
.info-box p { color: #71717a; font-size: 0.85rem; }

.file-upload-group { margin-top: 1rem; }
.file-drop-area { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; padding: 2rem 1rem; background: rgba(0, 0, 0, 0.3); border: 2px dashed rgba(255, 255, 255, 0.15); border-radius: 8px; transition: all 0.2s ease; cursor: pointer; overflow: hidden; }
.file-drop-area:hover { background: rgba(0, 0, 0, 0.5); border-color: rgba(255, 255, 255, 0.3); }
.file-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 10; }
.file-dummy { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; color: #a1a1aa; font-size: 0.85rem; pointer-events: none; }
.file-dummy svg { width: 24px; height: 24px; color: #71717a; }

.sns-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.upload-section { background: rgba(0, 0, 0, 0.2); padding: 1.5rem; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.05); }
.feed-section { background: rgba(0, 0, 0, 0.2); padding: 1.5rem; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.05); }
.file-list { display: flex; flex-direction: column; gap: 0.8rem; }

.file-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 1rem 1.2rem !important;
  gap: 1rem !important;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.file-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.file-icon {
  display: flex !important; align-items: center !important; justify-content: center !important;
  width: 40px !important; height: 40px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border-radius: 8px !important; color: #a1a1aa !important; flex-shrink: 0 !important;
}
.file-icon svg { width: 20px !important; height: 20px !important; display: block !important; }
.file-item:hover .file-icon { background: rgba(255, 255, 255, 0.1) !important; color: #fff !important; }

.file-info { flex: 1 !important; min-width: 0 !important; }
.file-info h4 { color: #fff; font-size: 0.95rem; margin-bottom: 0.2rem; font-weight: 500; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; }
.file-info p { color: #71717a; font-size: 0.8rem; margin: 0; }

.file-download {
  display: flex !important; align-items: center !important; justify-content: center !important;
  width: 36px !important; height: 36px !important;
  background: rgba(255, 255, 255, 0.05) !important; border-radius: 8px !important;
  color: #a1a1aa !important; flex-shrink: 0 !important; transition: all 0.2s ease !important;
}
.file-item:hover .file-download { background: rgba(255, 255, 255, 0.15) !important; color: #fff !important; }
.file-download svg { width: 18px !important; height: 18px !important; display: block !important; }

.disclaimer-box { margin-top: 1.2rem; padding: 1rem; background: rgba(255, 170, 0, 0.05); border: 1px solid rgba(255, 170, 0, 0.2); border-radius: 8px; }
.disclaimer-box h4 { color: #fbbf24; font-size: 0.85rem; margin-bottom: 0.5rem; font-weight: 600; }
.disclaimer-box ul { list-style-type: disc; padding-left: 1.2rem; margin: 0; }
.disclaimer-box li { color: #a1a1aa; font-size: 0.75rem; margin-bottom: 0.3rem; line-height: 1.5; }

.mobile-menu-btn { display: none; background: transparent; border: none; color: #fff; cursor: pointer; padding: 0.5rem; }
.mobile-menu-btn svg { width: 24px; height: 24px; }
.mobile-menu { display: none; position: fixed; top: 5.5rem; left: 1rem; width: calc(100% - 2rem); background: rgba(18, 18, 22, 0.95); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px; padding: 1rem; z-index: 999; flex-direction: column; gap: 0.5rem; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8); }
.mobile-menu.show { display: flex; animation: fadeIn 0.2s ease; }
.mobile-menu a { color: #fff; text-decoration: none; padding: 0.8rem 1rem; border-radius: 8px; font-weight: 500; transition: background 0.2s; }
.mobile-menu a:hover { background: rgba(255, 255, 255, 0.1); }

@media (max-width: 768px) {
  .desktop-only { display: none !important; }
  .mobile-menu-btn { display: block; }
  .navbar { padding: 0.5rem 1rem !important; width: calc(100% - 1rem) !important; top: 0.5rem !important; }
  .nav-logo img { height: 36px !important; width: 36px !important; }
  .btn-nav { display: none; }
  main { margin-top: 5rem !important; padding: 2rem 1.5rem !important; }
  .hero-title { font-size: 2rem !important; line-height: 1.2 !important; }
  .hero-desc { font-size: 0.95rem !important; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions a { width: 100%; text-align: center; }
  .product-section, .contact-layout, .sns-layout { grid-template-columns: 1fr !important; gap: 2rem !important; text-align: center; }
  .feature-list li { justify-content: center; }
  .ui-image-container { transform: none !important; margin: 0 !important; }
  .tabs-header { flex-direction: column; }
  .tab-btn { border-bottom: 1px solid rgba(255,255,255,0.05); border-left: 2px solid transparent; }
  .tab-btn.active { border-bottom-color: rgba(255,255,255,0.05); border-left-color: #fff; }
}

.file-delete {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  background: rgba(239, 68, 68, 0.1) !important;
  border-radius: 8px !important;
  color: #ef4444 !important;
  flex-shrink: 0 !important;
  transition: all 0.2s ease !important;
  cursor: pointer;
  z-index: 10;
}

.file-delete:hover {
  background: rgba(239, 68, 68, 0.2) !important;
  color: #f87171 !important;
  transform: scale(1.05);
}

.file-delete svg {
  width: 18px !important;
  height: 18px !important;
  display: block !important;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  width: 100%;
  max-width: 400px;
  padding: 2rem;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.show .modal-content {
  transform: translateY(0) scale(1);
}

.modal-content h3 {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(18, 18, 22, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 100px;
  padding: 0.8rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #10b981;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 3000;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.file-thumbnail {
  width: 40px !important;
  height: 40px !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  background: rgba(255, 255, 255, 0.05) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.file-thumbnail img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.image-preview-overlay {
  background: rgba(0, 0, 0, 0.9) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  z-index: 4000 !important;
}

#previewImage {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.image-preview-overlay.show #previewImage {
  transform: scale(1);
}

.close-preview-btn {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.close-preview-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* ==========================================
   検索バー
   ========================================== */
.search-bar {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.search-bar:focus-within {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.5);
}

.search-bar svg {
  width: 16px; height: 16px;
  color: #a1a1aa;
}

.search-bar input {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 150px !important;
  font-size: 0.85rem !important;
  color: #fff !important;
}

.search-bar input:focus { box-shadow: none !important; }

/* ==========================================
   いいね・コメント・アクション
   ========================================== */
.file-container {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  overflow: hidden;
}

.file-container .file-item {
  border: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  margin: 0 !important;
}
.file-container .file-item:hover { background: rgba(255, 255, 255, 0.05) !important; }

.file-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.like-btn, .comment-toggle-btn {
  display: flex !important;
  align-items: center !important;
  gap: 0.3rem;
  background: transparent !important;
  border: none !important;
  color: #a1a1aa !important;
  font-size: 0.8rem !important;
  cursor: pointer;
  padding: 0.4rem 0.6rem !important;
  border-radius: 6px !important;
  transition: all 0.2s ease !important;
}

.like-btn:hover { color: #ef4444 !important; background: rgba(239, 68, 68, 0.1) !important; }
.comment-toggle-btn:hover { color: #fff !important; background: rgba(255, 255, 255, 0.1) !important; }

.like-btn svg, .comment-toggle-btn svg { width: 14px !important; height: 14px !important; }

/* ==========================================
   コメントセクション
   ========================================== */
.comments-section {
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1rem;
  animation: fadeIn 0.3s ease;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1rem;
  max-height: 200px;
  overflow-y: auto;
}

.comment-item {
  background: rgba(255, 255, 255, 0.03);
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
}

.comment-text {
  font-size: 0.85rem;
  color: #e4e4e7;
  margin-bottom: 0.2rem;
  word-break: break-all;
}

.comment-date {
  font-size: 0.7rem;
  color: #71717a;
}

.comment-input-area {
  display: flex;
  gap: 0.5rem;
}

.comment-input-area input {
  margin-bottom: 0 !important;
  padding: 0.5rem 0.8rem !important;
  font-size: 0.85rem !important;
  border-radius: 6px !important;
}

.comment-input-area button {
  padding: 0.5rem 1rem !important;
  font-size: 0.85rem !important;
  border-radius: 6px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
}
.comment-input-area button:hover { background: rgba(255, 255, 255, 0.2) !important; }

/* ==========================================
   いいねボタン（アクティブ状態）
   ========================================== */
.like-btn.liked {
  color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.1) !important;
}

.like-btn.liked svg {
  fill: #ef4444 !important; /* ハートの中身を赤く塗りつぶす */
  stroke: #ef4444 !important;
}

/* アップロードエリアが縦に伸びるのを防ぐ */
.upload-section {
  align-self: start !important;
}

/* 念のため、レイアウトのベースも固定 */
.sns-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start !important; /* 上揃えにする */
}

/* ==========================================
   レイアウトの強制修正（左側の潰れ防止）
   ========================================== */

/* PC画面の時 */
@media (min-width: 769px) {
  .sns-layout {
    display: grid !important;
    /* 左を「絶対に350px」に固定し、右を残り全部にする */
    grid-template-columns: 350px minmax(0, 1fr) !important; 
    gap: 2rem !important;
    align-items: start !important;
  }
}

/* アップロードエリアの幅を保証する */
.upload-section {
  width: 100% !important;
  max-width: 350px !important; /* これで横幅が広がりすぎるのを防ぐ */
  align-self: start !important;
}

/* ファイル一覧が横に広がりすぎないようにする */
.feed-section {
  width: 100% !important;
  min-width: 0 !important;
}

/* 長いファイル名の省略設定をもう一度強制 */
.file-info {
  min-width: 0 !important;
}
.file-info h4 {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* ==========================================
   完全強制上書き（これで解決！）
   ========================================== */

/* PC画面（769px以上）の時だけ2カラムにする */
@media (min-width: 769px) {
  .sns-layout {
    display: grid !important;
    /* 左側を絶対に380px固定、右側を残りの空間にする */
    grid-template-columns: 380px 1fr !important;
    gap: 2rem !important;
    align-items: start !important;
  }
}

/* 左側のアップロードエリアの幅を固定する */
.upload-section {
  width: 380px !important;
  max-width: 100% !important;
  align-self: start !important;
}

/* 右側のファイル一覧の幅を保証する */
.feed-section {
  width: 100% !important;
  min-width: 0 !important; /* これがないと長い名前で右側が広がる */
}

/* ファイル名を折り返さず「...」で省略する */
.file-info {
  flex: 1 !important;
  min-width: 0 !important; 
  overflow: hidden !important;
}

.file-info h4 {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  display: block !important;
  width: 100% !important;
  font-size: 0.95rem !important;
  color: #fff !important;
  margin: 0 0 0.2rem 0 !important;
}

/* サイズや拡張子の表示をキッチリ1行に収める */
.file-info p {
  white-space: nowrap !important;
  overflow: hidden !important;
  font-size: 0.8rem !important;
  color: #71717a !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
}

.ext-badge {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #e4e4e7 !important;
  padding: 0.1rem 0.4rem !important;
  border-radius: 4px !important;
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
}

/* ==========================================
   ファイルリストの完全修復（絶対上書き）
   ========================================== */

/* ファイル全体の並びをリセットして左詰めにする */
.file-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important; /* 隙間を空ける設定を解除 */
  gap: 12px !important;
  padding: 12px 16px !important;
}

/* 左のアイコンが潰れないように固定 */
.file-icon, .file-thumbnail {
  flex-shrink: 0 !important;
  width: 40px !important;
  height: 40px !important;
}

/* 中央のテキストエリア（ここが0幅になってた） */
.file-info {
  flex: 1 1 auto !important;
  min-width: 150px !important; /* 強制的に幅を持たせる */
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  text-align: left !important;
}

/* ファイル名の表示 */
.file-info h4 {
  display: block !important;
  width: 100% !important;
  font-size: 0.95rem !important;
  color: #fff !important;
  margin: 0 0 4px 0 !important;
  padding: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  text-align: left !important;
}

/* 拡張子・サイズ・日付の表示 */
.file-info p {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  font-size: 0.8rem !important;
  color: #71717a !important;
  margin: 0 !important;
  padding: 0 !important;
  white-space: nowrap !important;
}

/* 右側のボタン群は絶対に潰さず、右端に寄せる */
.file-actions {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
  margin-left: auto !important; 
}

/* ==========================================
   右側のアクションボタンの収まり修正
   ========================================== */

/* 右側のボタンエリアを少しコンパクトにする */
.file-actions {
  gap: 4px !important; /* ボタン同士の隙間を狭める */
  padding-left: 4px !important;
}

/* いいね・コメントボタンの余白を削る */
.like-btn, .comment-toggle-btn {
  padding: 4px 6px !important; 
  font-size: 0.75rem !important;
}

/* ダウンロードボタンのサイズを少し小さくする */
.file-download {
  width: 32px !important;
  height: 32px !important;
}

/* 中央のテキストエリアが広がりすぎないように最大幅を制限する */
.file-info {
  min-width: 100px !important; 
  max-width: calc(100% - 140px) !important; /* ボタン分の幅をあらかじめ空けておく */
}

/* ==========================================
   ボタンが消える問題の完全解決
   ========================================== */

/* ファイルの行全体を固定 */
.file-item {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important; /* 絶対に折り返さない */
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 10px 12px !important;
  gap: 8px !important;
}

/* アイコン */
.file-icon, .file-thumbnail {
  flex-shrink: 0 !important;
}

/* テキスト部分：自動で縮むようにする */
.file-info {
  flex: 1 1 auto !important;
  min-width: 0 !important; /* 省略記号(...)を効かせるために必須 */
  max-width: none !important; /* さっき設定した余計な制限を解除 */
}

/* 右側のボタン群：絶対に縮まないし、消えない */
.file-actions {
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0 !important; /* 絶対に縮めない */
  gap: 4px !important;
  margin-left: 8px !important;
}

/* ボタンのサイズを微調整してコンパクトに */
.like-btn, .comment-toggle-btn {
  padding: 4px 6px !important;
}

.file-download {
  width: 32px !important;
  height: 32px !important;
}

/* ==========================================
   ファイルカードのレイアウト一新（上下配置）
   ========================================== */

.file-container {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
}

/* リンク部分（上段） */
.file-item {
  display: block !important;
  padding: 1rem 1rem 0.5rem 1rem !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  text-decoration: none !important;
}

.file-item:hover {
  background: transparent !important;
  transform: none !important;
}

/* 上段のアイコンとテキスト */
.file-main-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

/* 下段のアクションボタンエリア */
.file-actions-bottom {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.1);
}

/* ボタンを右に寄せるためのスペーサー */
.file-spacer {
  flex: 1;
}

/* 下段のボタンのデザイン（大きくする） */
.file-actions-bottom .like-btn,
.file-actions-bottom .comment-toggle-btn {
  display: flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  color: #a1a1aa !important;
  font-size: 0.9rem !important;
  padding: 0.5rem 0.8rem !important;
  border-radius: 8px !important;
  cursor: pointer;
  transition: all 0.2s ease !important;
}

.file-actions-bottom .like-btn:hover,
.file-actions-bottom .comment-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
}

/* ハートの色 */
.file-actions-bottom .like-btn.liked {
  color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.1) !important;
  border-color: rgba(239, 68, 68, 0.2) !important;
}
.file-actions-bottom .like-btn.liked svg {
  fill: #ef4444 !important;
  stroke: #ef4444 !important;
}

.file-actions-bottom .like-btn svg,
.file-actions-bottom .comment-toggle-btn svg {
  width: 16px !important;
  height: 16px !important;
}

/* ダウンロードボタン */
.file-actions-bottom .file-download {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  height: 38px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
  color: #fff !important;
  cursor: pointer;
  transition: all 0.2s ease !important;
}
.file-actions-bottom .file-download:hover {
  background: #fff !important;
  color: #000 !important;
}

/* 削除ボタンの調整 */
.file-actions-bottom .file-delete {
  width: 38px !important;
  height: 38px !important;
  margin-right: 0.5rem;
}

/* ファイル情報エリアのリセット */
.file-info {
  min-width: 0 !important; 
  flex: 1 !important;
}

/* ==========================================
   お知らせ (News)
   ========================================== */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 12px;
}

.news-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.8rem;
}

.news-header h3 {
  font-size: 1.1rem;
  color: #fff;
  margin: 0;
}

.news-date {
  font-size: 0.8rem;
  color: #71717a;
  margin-left: 1rem;
}

.news-item p {
  color: #a1a1aa;
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
}