/* ==========================================================================
   BlueField Atelier - Main Hub & Community Portal Style
   Modern Glassmorphism & High-End Tech Aesthetic
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Noto+Sans+KR:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg-dark: #090d16;
  --bg-card: rgba(18, 24, 38, 0.85);
  --bg-card-hover: rgba(28, 38, 58, 0.95);
  --bg-input: rgba(13, 19, 32, 0.7);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-focus: rgba(99, 102, 241, 0.5);

  --primary: #3b82f6;
  --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #6366f1 50%, #8b5cf6 100%);
  --primary-glow: rgba(59, 130, 246, 0.35);
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px var(--primary-glow);
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

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

html {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: 'Plus Jakarta Sans', 'Noto Sans KR', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Background Atmosphere Glows */
.bg-glow-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.22;
}

.glow-orb-1 {
  width: 500px;
  height: 500px;
  background: #3b82f6;
  top: -100px;
  left: -100px;
}

.glow-orb-2 {
  width: 600px;
  height: 600px;
  background: #8b5cf6;
  top: 25%;
  right: -150px;
}

.glow-orb-3 {
  width: 450px;
  height: 450px;
  background: #06b6d4;
  bottom: -50px;
  left: 20%;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Navbar */
.site-header {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 13, 22, 0.82);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
}

.brand-info h1 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.brand-info p {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: #60a5fa;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-glass);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-playstore {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-glass);
  color: #fff;
}

.btn-playstore:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-privacy {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
}

.btn-privacy:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-lang {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: #93c5fd;
  font-weight: 700;
  padding: 8px 14px;
}

.btn-lang:hover {
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(96, 165, 250, 0.4);
  color: #fff;
  transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
  padding: 48px 0 32px;
  text-align: center;
}

.hero-banner-container {
  max-width: 1040px;
  height: 260px;
  margin: 0 auto 36px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-glass);
  background: #111827;
}

.hero-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  line-height: 1.3;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 660px;
  margin: 0 auto 30px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* Section Common */
.section {
  padding: 50px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 36px;
}

.section-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: #60a5fa;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.section-title {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 6px;
}

/* App Lineup Section */
.flagship-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  margin-bottom: 30px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
  transition: border-color var(--transition-normal);
}

.flagship-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
}

.flagship-visual {
  background: #0d1320;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.flagship-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.flagship-card:hover .flagship-visual img {
  transform: scale(1.02);
}

.flagship-content {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.flagship-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.flagship-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.flagship-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.flagship-title {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.flagship-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.tag-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.tag-pill {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  border: 1px solid var(--border-glass);
}

.flagship-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.flagship-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Secondary App Grid */
.sub-apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.sub-app-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.sub-app-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.35);
  background: var(--bg-card-hover);
}

.sub-app-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.sub-app-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
}

.sub-app-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.sub-app-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
}

/* 2-Column Sub Apps Grid */
.sub-apps-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 28px;
}

@media (max-width: 860px) {
  .sub-apps-grid-2col {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.compact-app-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.compact-app-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 20px rgba(99, 102, 241, 0.15);
}

.compact-app-visual {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #111827;
  position: relative;
}

.compact-app-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.compact-app-card:hover .compact-app-visual img {
  transform: scale(1.03);
}

.compact-app-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.compact-app-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.compact-app-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.compact-app-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 2px;
}

.compact-app-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.compact-app-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Control Bar: Filters & Search */
.control-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  backdrop-filter: blur(12px);
}

.control-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.app-filter-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.app-filter-tabs::-webkit-scrollbar {
  display: none;
}

.app-tab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 7px 15px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.app-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.app-tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 2px 10px var(--primary-glow);
}

.search-sort-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-grow: 1;
  max-width: 480px;
}

.search-box {
  position: relative;
  flex-grow: 1;
}

.search-box svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--text-dim);
}

.search-input {
  width: 100%;
  padding: 9px 14px 9px 40px;
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-size: 0.88rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.search-input:focus {
  border-color: var(--border-glass-focus);
}

.search-input::placeholder {
  color: var(--text-dim);
}

.custom-select {
  padding: 9px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-size: 0.88rem;
  outline: none;
  cursor: pointer;
}

.category-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  max-width: 100%;
  min-width: 0;
}

.category-chip {
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  white-space: nowrap;
}

.category-chip:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-main);
}

.category-chip.active {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.5);
  color: #93c5fd;
  font-weight: 600;
}

/* Feedback Cards Grid */
.feedback-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}

.feedback-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  position: relative;
  transition: transform var(--transition-normal), border-color var(--transition-normal);
  backdrop-filter: blur(8px);
}

.feedback-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.35);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-lg);
}

.card-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.badge-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.badge {
  font-size: 0.73rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-full);
}

.badge-app {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.badge-cat-feature { background: rgba(139, 92, 246, 0.12); color: #c084fc; }
.badge-cat-bug { background: rgba(244, 63, 94, 0.12); color: #fb7185; }
.badge-cat-inquiry { background: rgba(6, 182, 212, 0.12); color: #67e8f9; }
.badge-cat-praise { background: rgba(16, 185, 129, 0.12); color: #6ee7b7; }

.status-indicator {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.status-received { background: rgba(148, 163, 184, 0.12); color: #94a3b8; }
.status-reviewing { background: rgba(245, 158, 11, 0.15); color: #fcd34d; }
.status-in_progress { background: rgba(59, 130, 246, 0.15); color: #93c5fd; }
.status-resolved { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; }
.status-answered { background: rgba(168, 85, 247, 0.15); color: #d8b4fe; }

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.4;
}

.card-snippet {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.admin-reply-callout {
  margin-top: 10px;
  padding: 8px 12px;
  background: rgba(59, 130, 246, 0.08);
  border-left: 2px solid var(--primary);
  border-radius: 4px;
  font-size: 0.78rem;
  color: #93c5fd;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.78rem;
  color: var(--text-dim);
}

.card-author-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-author-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  color: #fff;
  font-weight: 700;
}

.like-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  cursor: pointer;
}

.like-btn:hover, .like-btn.liked {
  color: var(--accent-rose);
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 7, 15, 0.78);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  overscroll-behavior: contain;
  touch-action: none;
}

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

.modal-container {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  max-height: 86vh;
  max-height: 86dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform var(--transition-normal);
  overscroll-behavior: contain;
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-header {
  padding: 20px 28px 16px;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  background: #0f172a;
}

.modal-header h2 {
  font-size: 1.3rem;
  font-weight: 700;
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 6px;
}

#writeForm {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.modal-body {
  padding: 20px 28px;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
  font-family: inherit;
}

.form-control:focus {
  border-color: var(--border-glass-focus);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.category-radio-group {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.category-radio-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.category-radio-label input { display: none; }
.category-radio-label:has(input:checked) {
  background: rgba(59, 130, 246, 0.15);
  border-color: var(--primary);
  color: #fff;
}

.modal-footer {
  padding: 16px 28px 20px;
  border-top: 1px solid var(--border-glass);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-shrink: 0;
  background: #0f172a;
  position: sticky;
  bottom: 0;
  z-index: 10;
}

/* Detail Modal Specifics */
.detail-meta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-glass);
}

.detail-body-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #e2e8f0;
  white-space: pre-wrap;
  margin-bottom: 28px;
}

.detail-admin-section {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
}

.toast {
  background: #1e293b;
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 4px solid var(--accent-emerald);
}

/* Footer */
.site-footer {
  padding: 50px 0;
  border-top: 1px solid var(--border-glass);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Responsive - Mobile Optimized & Simple Layout */
@media (max-width: 860px) {
  .hero-title { font-size: 1.85rem; }
  .hero-banner-container { height: 160px; }
  .flagship-card {
    display: flex !important;
    flex-direction: column !important;
  }
  .flagship-visual {
    width: 100% !important;
    height: 200px !important;
    min-height: 200px !important;
    overflow: hidden !important;
    position: relative !important;
    background: #0d1320 !important;
    flex-shrink: 0 !important;
  }
  .flagship-visual img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }
  .flagship-content { padding: 24px 20px; }
  .flagship-title { font-size: 1.25rem; }
  .nav-menu { display: none; }
  .category-radio-group { grid-template-columns: repeat(2, 1fr); }
  .control-row-top { flex-direction: column; align-items: stretch; }
  .search-sort-group { max-width: 100%; }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  /* Header: Slim & Clean */
  .site-header {
    padding: 10px 0;
  }
  .brand-logo-img {
    width: 32px;
    height: 32px;
  }
  .brand-info h1 {
    font-size: 1.05rem;
  }
  .brand-info p {
    display: none;
  }
  .header-actions {
    gap: 6px;
  }
  .header-actions .btn-privacy .btn-text,
  .header-actions .btn-playstore .btn-text {
    display: none;
  }
  .header-actions .btn-privacy svg,
  .header-actions .btn-playstore svg {
    margin-right: 0 !important;
    width: 17px;
    height: 17px;
  }
  .header-actions .btn-privacy,
  .header-actions .btn-playstore {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 9px;
    min-width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
  }
  .header-actions .btn-lang {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 9px;
    font-size: 0.76rem;
    height: 36px;
    min-width: 36px;
    border-radius: var(--radius-sm);
    gap: 3px;
  }
  .header-actions .btn-lang svg {
    width: 13px;
    height: 13px;
  }
  #btnOpenWriteModal {
    padding: 7px 12px;
    font-size: 0.82rem;
  }
  #btnOpenWriteModal svg {
    width: 14px;
    height: 14px;
  }

  /* Hero Section: Compact & Punchy */
  .hero-section {
    padding: 24px 0 16px;
  }
  .hero-banner-container {
    display: none !important; /* 모바일에서는 무거운 가로 배너 숨겨 즉각적인 콘텐츠 접근 */
  }
  .hero-badge {
    font-size: 0.74rem;
    padding: 4px 12px;
    margin-bottom: 10px;
  }
  .hero-title {
    font-size: 1.55rem;
    line-height: 1.35;
    margin-bottom: 10px;
    word-break: keep-all;
  }
  .hero-subtitle {
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 18px;
    padding: 0 4px;
    word-break: keep-all;
  }
  .hero-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    padding: 0 8px;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 11px 16px !important;
    font-size: 0.88rem;
  }

  /* Section Title */
  .section {
    padding: 30px 0;
  }
  .section-head {
    margin-bottom: 20px;
  }
  .section-tag {
    font-size: 0.72rem;
  }
  .section-title {
    font-size: 1.4rem;
  }
  .section-subtitle {
    font-size: 0.84rem;
    word-break: keep-all;
  }

  /* Flagship App Cards: Banner on Top + Content */
  .flagship-card {
    display: flex !important;
    flex-direction: column !important;
    margin-bottom: 20px;
    border-radius: var(--radius-lg);
    background: rgba(18, 24, 38, 0.92);
    overflow: hidden;
  }
  .flagship-visual {
    display: block !important;
    width: 100% !important;
    height: 200px !important;
    min-height: 200px !important;
    overflow: hidden !important;
    position: relative !important;
    background: #0d1320 !important;
    flex-shrink: 0 !important;
  }
  .flagship-visual img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }
  .flagship-content {
    padding: 20px 18px;
    gap: 12px;
  }
  .flagship-header {
    gap: 12px;
    margin-bottom: 10px;
    align-items: center;
  }
  .flagship-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    flex-shrink: 0;
  }
  .flagship-badge {
    font-size: 0.68rem;
    padding: 2px 7px;
  }
  .flagship-title {
    font-size: 1.25rem;
    margin-bottom: 2px;
  }
  .flagship-desc {
    font-size: 0.85rem;
    line-height: 1.55;
    margin-bottom: 12px;
    color: #cbd5e1;
    word-break: keep-all;
  }
  .tag-list {
    gap: 5px;
    margin-bottom: 14px;
  }
  .tag-pill {
    font-size: 0.72rem;
    padding: 3px 7px;
  }
  .flagship-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .flagship-actions-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
  }
  .flagship-actions-row .btn {
    width: 100%;
    flex: none;
    min-width: 0;
    justify-content: center;
    text-align: center;
    padding: 11px 14px;
    font-size: 0.88rem;
    white-space: normal;
    word-break: keep-all;
  }
  .flagship-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 11px 14px;
    font-size: 0.88rem;
    white-space: normal;
    word-break: keep-all;
  }

  /* Control Bar: Compact & Touch-friendly */
  .control-bar {
    padding: 14px 12px;
    gap: 12px;
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  .control-row-top {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .app-filter-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    width: 100%;
    min-width: 0;
  }
  .app-tab-btn {
    justify-content: center;
    padding: 8px 4px;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
  }
  .search-sort-group {
    max-width: 100%;
    width: 100%;
    gap: 8px;
    min-width: 0;
  }
  .search-input {
    font-size: 0.84rem;
    padding: 8px 12px 8px 36px;
  }
  .custom-select {
    font-size: 0.82rem;
    padding: 8px 10px;
    flex-shrink: 0;
  }
  .category-chips {
    display: flex;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    min-width: 0; /* 중요: 부모 및 페이지가 가로로 늘어나지 않도록 방지하고 자체 스크롤 활성화 */
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 8px 2px;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(59, 130, 246, 0.4) rgba(255, 255, 255, 0.04);
  }
  .category-chips::-webkit-scrollbar {
    height: 4px;
    display: block;
  }
  .category-chips::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 9999px;
  }
  .category-chips::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.45);
    border-radius: 9999px;
  }
  .category-chip {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.78rem;
    padding: 6px 12px;
    border-radius: var(--radius-full);
  }

  /* Feedback Grid & Cards */
  .feedback-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 40px;
  }
  .feedback-card {
    padding: 16px;
    border-radius: var(--radius-md);
    gap: 10px;
  }
  .fb-title {
    font-size: 0.96rem;
    line-height: 1.4;
  }
  .fb-body-preview {
    font-size: 0.84rem;
    line-height: 1.5;
  }

  /* Modal Mobile Bottom-Sheet Feel */
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
    overscroll-behavior: contain;
  }
  .modal-container {
    max-height: 85vh;
    max-height: 85dvh;
    border-radius: 20px 20px 0 0;
    width: 100%;
    margin: 0;
    border-bottom: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .modal-header {
    padding: 16px 20px 12px;
    flex-shrink: 0;
  }
  .modal-header h2 {
    font-size: 1.1rem;
  }
  .modal-body {
    padding: 16px 20px;
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .modal-footer {
    padding: 12px 18px;
    padding-bottom: max(16px, env(safe-area-inset-bottom, 16px));
    flex-shrink: 0;
    background: #0f172a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    bottom: 0;
    display: flex;
    gap: 10px;
  }
  .modal-footer .btn {
    flex: 1;
    justify-content: center;
    padding: 12px 14px;
    font-size: 0.95rem;
  }
  .category-radio-group {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
}
