:root {
  --listing-text: #222;
  --listing-muted: #666;
  --listing-link: #1f6fd8;
  --listing-accent-soft: #e8f1fc;
  --listing-border: #e4e4e4;
  --listing-bg: #f3f4f6;
  --listing-card: #fff;
  --listing-listing: #16a34a;
  --listing-delisting: #dc2626;
  --telegram: #229ed9;
}

body {
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--listing-text);
  background: var(--listing-bg);
  line-height: 1.6;
}

.listing-container {
  max-width: 720px;
}

.listing-header {
  z-index: 1030;
}

.btn-mobile-menu {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--listing-border);
  border-radius: 0.35rem;
  background: #fff;
}

.mobile-menu-bar {
  display: block;
  width: 1.15rem;
  height: 2px;
  margin: 0 auto;
  background: var(--listing-text);
  border-radius: 1px;
}

.mobile-nav-offcanvas {
  --bs-offcanvas-width: 72%;
  width: 72%;
  max-width: 72%;
}

.mobile-nav-auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--listing-border);
}

.mobile-nav-auth-form {
  margin: 0;
}

.mobile-nav-auth-form .mobile-nav-auth-btn {
  width: 100%;
  border: none;
  cursor: pointer;
}

.mobile-nav-auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.85rem 0.5rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--listing-text);
  text-decoration: none;
  background: #fff;
  border-right: 1px solid var(--listing-border);
}

.mobile-nav-auth-btn:last-child {
  border-right: none;
}

.mobile-nav-auth-btn:hover {
  background: #f8fafc;
  color: var(--listing-text);
}

.mobile-nav-icon {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
}

.mobile-nav-link {
  display: block;
  padding: 0.95rem 1rem;
  font-size: 0.95rem;
  color: var(--listing-text);
  text-decoration: none;
  border-bottom: 1px solid var(--listing-border);
}

.mobile-nav-link:hover {
  background: #f8fafc;
  color: var(--listing-text);
}

.mobile-nav-link.active {
  font-weight: 600;
  color: var(--listing-link);
  background: var(--listing-accent-soft);
}

.mobile-nav-points {
  background: #fafafa;
}

.mobile-nav-footer {
  background: #fafafa;
}

.mobile-nav-username {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--listing-text);
}

.mobile-nav-points-meta {
  margin-top: 0.15rem;
}

.mypage-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mypage-profile-actions {
  flex-shrink: 0;
}

.mypage-profile-avatar {
  flex-shrink: 0;
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e3a5f;
  background: var(--listing-accent-soft);
  border: 2px solid #c5d9f5;
}

.mypage-profile-info {
  min-width: 0;
}

.mypage-profile-value {
  font-size: 0.95rem;
  word-break: break-all;
}

.notice-search-filter-tabs .btn {
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.notice-search-filter-tabs .btn-secondary,
.notice-search-filter-tabs .btn-secondary:hover,
.notice-search-filter-tabs .btn-secondary:focus,
.notice-search-filter-tabs .btn-secondary:active,
.notice-search-filter-tabs .btn-secondary:focus-visible,
.notice-search-filter-tabs a.btn-secondary:visited {
  color: #fff;
  opacity: 1;
}

.notice-search-filter-tabs .btn-outline-secondary {
  --bs-btn-hover-color: #fff;
  --bs-btn-active-color: #fff;
  --bs-btn-hover-bg: var(--bs-secondary);
  --bs-btn-active-bg: var(--bs-secondary);
  --bs-btn-hover-border-color: var(--bs-secondary);
  --bs-btn-active-border-color: var(--bs-secondary);
}

.notice-search-filter-tabs .btn-outline-secondary:hover,
.notice-search-filter-tabs .btn-outline-secondary:active,
.notice-search-filter-tabs .btn-outline-secondary:focus,
.notice-search-filter-tabs .btn-outline-secondary:focus-visible,
.notice-search-filter-tabs a.btn-outline-secondary:visited:hover,
.notice-search-filter-tabs a.btn-outline-secondary:visited:active {
  color: #fff;
  background-color: var(--bs-secondary);
  border-color: var(--bs-secondary);
  opacity: 1;
}

.listing-brand {
  font-size: 1.15rem;
  color: var(--listing-link);
}

.points-status-badge {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  color: #1e3a5f;
  background: var(--listing-accent-soft);
  border: 1px solid #c5d9f5;
  white-space: nowrap;
}

.chart-wrap-host--locked .chart-wrap-inner {
  filter: blur(10px);
  pointer-events: none;
  user-select: none;
}

.chart-lock-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.72);
}

.chart-lock-overlay__title {
  font-size: 0.85rem;
  color: var(--listing-text);
  line-height: 1.5;
}

.attendance-day {
  width: 1.75rem;
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.35rem;
  font-size: 0.72rem;
  color: var(--listing-muted);
  background: #f3f4f6;
  border: 1px solid var(--listing-border);
}

.attendance-day--checked {
  background: #dcfce7;
  color: var(--listing-listing);
  border-color: #86efac;
}

.attendance-day--today {
  box-shadow: 0 0 0 2px var(--listing-link);
}

.premium-lock-box {
  background: #f8fafc;
}

.premium-points-bar {
  background: var(--listing-card);
}

.listing-card {
  background: var(--listing-card);
  border: 1px solid var(--listing-border);
  border-radius: 0.5rem;
}

.auth-page {
  width: 100%;
  max-width: 27.5rem;
  margin-inline: auto;
  padding-top: 0.5rem;
  padding-bottom: 1.5rem;
}

.auth-card {
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.auth-card-title {
  margin: 0 0 1.25rem;
  font-size: 1.45rem;
  font-weight: 700;
  text-align: center;
}

.auth-card-desc {
  margin: -0.5rem 0 1.25rem;
}

.auth-google-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.62rem 1rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--listing-text);
  background: #fff;
  border: 1px solid var(--listing-border);
  border-radius: 0.45rem;
  cursor: not-allowed;
  opacity: 0.72;
}

.auth-google-icon {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.auth-google-note {
  margin-top: 0.45rem;
}

.auth-form-label {
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--listing-text);
}

.auth-required {
  color: #dc2626;
}

.auth-form-control {
  padding: 0.62rem 0.75rem;
  background: #eef4ff;
  border: 1px solid #d8e2f0;
  border-radius: 0.45rem;
}

.auth-form-control:focus {
  background: #fff;
  border-color: #9ec5fe;
  box-shadow: 0 0 0 0.2rem rgba(31, 111, 216, 0.12);
}

.auth-forgot-link {
  color: var(--listing-link);
  text-decoration: none;
}

.auth-forgot-link:hover {
  text-decoration: underline;
}

.auth-remember-label {
  font-size: 0.88rem;
  color: var(--listing-text);
}

.auth-remember-check {
  width: 1rem;
  height: 1rem;
  margin: 0;
  cursor: pointer;
}

.auth-submit-btn {
  padding-top: 0.62rem;
  padding-bottom: 0.62rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 0.45rem;
}

.auth-card-footer {
  margin-top: 1.15rem;
  color: var(--listing-muted);
}

.auth-card-footer a {
  color: var(--listing-link);
  font-weight: 600;
  text-decoration: none;
}

.auth-card-footer a:hover {
  text-decoration: underline;
}

.auth-home-link {
  display: block;
  margin-top: 1rem;
  font-size: 0.84rem;
  color: var(--listing-muted);
  text-align: center;
  text-decoration: none;
}

.auth-home-link:hover {
  color: var(--listing-text);
  text-decoration: underline;
}

.auth-password-hints {
  margin-top: 0.45rem;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--listing-muted);
}

.auth-password-hints ul {
  margin: 0;
  padding-left: 1rem;
}

.auth-password-hints li + li {
  margin-top: 0.15rem;
}

.auth-card-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
  font-size: 0.78rem;
  color: var(--listing-muted);
}

.auth-card-divider::before,
.auth-card-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--listing-border);
}

.hero-cta {
  background: linear-gradient(135deg, #e8f4fc 0%, #f8fafc 100%);
  border: 1px solid var(--listing-border);
}

.feature-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--listing-link);
  background: var(--listing-accent-soft);
  border: 1px solid #c5d9f5;
  width: fit-content;
}

.listing-beam-showcase {
  border-color: #c5d9f5;
  background: linear-gradient(160deg, #f8fbff 0%, #ffffff 55%);
}

@media (min-width: 992px) {
  .listing-beam-showcase__intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

.btn-telegram {
  background: var(--telegram);
  border-color: var(--telegram);
  color: #fff;
  font-weight: 600;
}

.btn-telegram:hover {
  background: #1a8fc4;
  border-color: #1a8fc4;
  color: #fff;
}

.btn-telegram-compact {
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.55rem;
  font-size: 0.78rem;
  line-height: 1.2;
  white-space: nowrap;
}

.btn-telegram-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.btn-premium {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-color: #d97706;
  color: #fff;
  font-weight: 600;
}

.btn-premium:hover {
  background: linear-gradient(135deg, #e6900a 0%, #c56a05 100%);
  border-color: #c56a05;
  color: #fff;
}

.btn-premium-compact {
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.55rem;
  font-size: 0.78rem;
  line-height: 1.2;
  white-space: nowrap;
}

.btn-premium-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.badge-listing {
  background: #dcfce7;
  color: var(--listing-listing);
}

.badge-delisting {
  background: #fee2e2;
  color: var(--listing-delisting);
}

.feed-card__header {
  min-height: 2.25rem;
}

.feed-card__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1e3a5f;
  background: var(--listing-accent-soft);
  border: 1px solid #c5d9f5;
  flex-shrink: 0;
}

.feed-card__attachment {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--listing-border);
  border-radius: 0.65rem;
  background: #f8fafc;
  color: inherit;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.feed-card__attachment:hover {
  border-color: #c5d9f5;
  background: #f3f8ff;
  color: inherit;
}

.feed-card__attachment--symbol-only {
  align-items: center;
}

.feed-card__chart {
  position: relative;
  width: 100%;
  height: 3.5rem;
  border-radius: 0.45rem;
  overflow: hidden;
  background: linear-gradient(180deg, #eef4fc 0%, #f8fafc 100%);
  border: 1px solid #dbe7f7;
}

.feed-card__chart-skeleton {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.65) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 200% 100%;
  animation: feed-chart-shimmer 1.2s ease-in-out infinite;
}

@keyframes feed-chart-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.feed-card__chart-svg {
  width: 100%;
  height: 100%;
}

.feed-card__chart-line {
  fill: none;
  stroke: var(--listing-link);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.feed-card__chart--up .feed-card__chart-line {
  stroke: var(--listing-listing);
}

.feed-card__chart--down .feed-card__chart-line {
  stroke: var(--listing-delisting);
}

.feed-card__chart--empty {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.feed-card__chart-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  padding: 0.25rem;
  text-align: center;
}

.feed-card__chart-empty-symbol {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #64748b;
}

.feed-card__chart-empty-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: #475569;
  line-height: 1.2;
}

.feed-card__chart-empty-hint {
  font-size: 0.56rem;
  color: #94a3b8;
  line-height: 1.2;
}

.feed-card__chart-symbol {
  position: absolute;
  left: 0.35rem;
  bottom: 0.2rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #475569;
  background: rgba(255, 255, 255, 0.82);
  padding: 0.05rem 0.3rem;
  border-radius: 0.25rem;
}

.feed-card__attachment-meta strong {
  color: var(--listing-text);
}

.feed-card__attachment-title {
  color: var(--listing-text);
  font-weight: 500;
  line-height: 1.45;
}

.feed-card__content {
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.feed-card__comment {
  line-height: 1.45;
}

.feed-card__comment-input {
  border-radius: 999px;
  padding-left: 0.85rem;
  padding-right: 0.85rem;
}

.feed-card__comment-form .btn {
  border-radius: 999px;
  min-width: 3.25rem;
}

.feed-scroll-sentinel {
  width: 100%;
  height: 1px;
}

.feed-scroll-status {
  margin: 0.75rem 0 0;
}

.header-mypage-btn {
  padding-right: 0.65rem;
}

.header-notify-badge {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.1rem;
  text-align: center;
}

.mobile-nav-auth-btn--badge {
  overflow: visible;
}

.mobile-nav-auth-btn--badge .header-notify-badge {
  top: 0.45rem;
  right: 0.65rem;
}

.feed-comment-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.feed-comment-badge--new {
  color: #fff;
  background: #dc2626;
  border-color: #dc2626;
}

.feed-section-unread {
  color: #dc2626;
  font-weight: 600;
}

@media (max-width: 575.98px) {
  .feed-card__attachment {
    grid-template-columns: 5.75rem 1fr;
    gap: 0.55rem;
    padding: 0.65rem;
  }

  .feed-card__chart {
    height: 3rem;
  }
}

.notice-card {
  position: relative;
}

.notice-card:hover {
  border-color: #c5d9f5;
}

.listing-filter select,
.listing-filter input {
  width: 100%;
}

.chart-wrap-host {
  position: relative;
  height: 260px;
  min-height: 280px;
  overflow: hidden;
}

.chart-wrap-inner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.chart-wrap-host.chart-focus-flash {
  box-shadow: 0 0 0 2px var(--listing-link);
  border-radius: 0.35rem;
  transition: box-shadow 0.2s ease;
}

.chart-load-overlay {
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  z-index: 5;
  padding: 0.35rem 0.65rem;
  border-radius: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #1e3a5f;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #cbd5e1;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
  pointer-events: none;
}

.chart-marker-leaders {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.chart-marker-labels {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.chart-marker-label {
  position: absolute;
  max-width: min(220px, 46vw);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  text-align: center;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.14);
}

.chart-marker-label--announced {
  color: #1e40af;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #93c5fd;
}

.chart-marker-label--listed {
  color: #166534;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #86efac;
}

.chart-marker-label--combined {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #64748b;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.16);
}

.chart-marker-label--callout {
  text-align: left;
  max-width: min(240px, 52vw);
}

.chart-marker-labels .chart-marker-label {
  pointer-events: auto;
  cursor: pointer;
  transition:
    box-shadow 0.15s ease,
    border-color 0.15s ease,
    background-color 0.15s ease;
}

.chart-marker-label--active {
  z-index: 4;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.22);
}

.chart-marker-label--announced.chart-marker-label--active {
  border-color: #2563eb;
  background: #eff6ff;
}

.chart-marker-label--listed.chart-marker-label--active {
  border-color: #16a34a;
  background: #f0fdf4;
}

.chart-marker-label--combined.chart-marker-label--active {
  border-color: #475569;
}

.chart-marker-leader-line {
  transition:
    stroke-opacity 0.15s ease,
    stroke-width 0.15s ease;
}

.chart-marker-leader-line--active {
  stroke-opacity: 1;
  stroke-width: 2;
}

.chart-candle-highlight {
  position: absolute;
  z-index: 1;
  display: none;
  pointer-events: none;
  border-radius: 4px;
  background: rgba(14, 165, 168, 0.12);
  border: 1px solid rgba(14, 165, 168, 0.45);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.chart-wrap-host.chart-marker-active .chart-candle-highlight {
  display: block;
}

.marker-legend-line {
  display: inline-block;
  width: 18px;
  height: 0;
  border-top: 2px solid;
  vertical-align: middle;
  margin-right: 4px;
  opacity: 0.75;
}

.marker-legend-line.announced {
  border-color: #2563eb;
}

.marker-legend-line.listed {
  border-color: #16a34a;
}

.timeline-item {
  padding: 0.75rem 0 0.75rem 1rem;
  border-left: 3px solid var(--listing-link);
  margin-bottom: 0.5rem;
}

.timeline-item-active {
  background: var(--listing-accent-soft, #e8f1fc);
  border-left-color: var(--listing-link);
  border-radius: 0.25rem;
  padding-left: 0.75rem;
  margin-left: -0.25rem;
}

.timeline-item-link {
  display: block;
  padding: 0.15rem 0.35rem;
  margin: -0.15rem -0.35rem;
  border-radius: 0.25rem;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.15s ease;
}

.timeline-item:hover,
.timeline-item:focus-visible {
  background: var(--listing-accent-soft, #e8f1fc);
  color: inherit;
  outline: none;
}

.timeline-item-title {
  color: var(--listing-link);
}

.timeline-item-chart-focus {
  background: var(--listing-accent-soft, #e8f1fc);
  border-left-color: var(--listing-link);
  border-radius: 0.25rem;
  padding-left: 0.75rem;
  margin-left: -0.25rem;
}

.listing-footer a {
  color: var(--listing-link);
  text-decoration: none;
}

.listing-footer a:hover {
  text-decoration: underline;
}

#coinOverviewContent ul {
  padding-left: 1rem;
}

#coinOverviewContent li + li {
  margin-top: 0.25rem;
}

@media (min-width: 768px) {
  .listing-container {
    max-width: 960px;
  }

  .chart-wrap-host {
    height: 320px;
  }
}
