:root {
  --color-base: #159EFD;
  --color-border: #DAE0ED;
  --color-font: #333;
  --color-body: #fff;
  --content-max: 1080px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: sans-serif;
  color: var(--color-font);
  background: var(--color-body);
}

a {
  color: var(--color-base);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.content_center {
  min-width: 1080px;
  max-width: var(--content-max);
  margin: 0 auto;

}

.g_header {
  position: relative;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}

.g_header.sticky {
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.header-logo a {
  display: inline-flex;
  align-items: center;
  font-weight: bold;
  font-size: 1.25rem;
}

.header-logo img {
  display: block;
}

.header-logo .logo-text {
  display: none;
  font-weight: bold;
  font-size: 1.25rem;
}

.header-nav-wrapper {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.header-nav {
  display: flex;
  gap: 20px;
}

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

.header-login,
.header-signup {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
}

/* .header-login {
  border: 1px solid var(--color-base);
  color: var(--color-base);
} */

.header-signup {
  background: var(--color-base);
  color: #fff;
}

.header-menu {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  box-sizing: border-box;
  overflow: hidden;
  font-size: 0;
  line-height: 0;
}

.header-menu span {
  display: block;
  flex-shrink: 0;
  width: 100%;
  height: 3px;
  background: #333;
  border-radius: 2px;
}

.header-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 90%;
  max-width: 400px;
  height: 100vh;
  background: #fff;
  box-shadow: -2px 0 12px rgba(0, 0, 0, .15);
  z-index: 1000;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.header-panel.is-open {
  right: 0;
}

.header-panel-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .4);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.header-panel.is-open .header-panel-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.header-panel-inner {
  padding: 24px;
}

.header-panel-title h2 {
  margin: 0 0 16px;
  font-size: 1.25rem;
}

.header-panel-divider {
  height: 1px;
  background: var(--color-border);
  margin: 16px 0;
}

.header-service-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.header-service-item a {
  display: block;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  text-align: center;
}

.header-service-item a:hover {
  border-color: var(--color-base);
  background: #f8fbff;
}

.header-service-label {
  font-size: 0.9rem;
}

.g_container {
  max-width: var(--content-max);
  margin: 0 auto;
  min-height: 60vh;
  padding: 24px 20px;
  box-sizing: border-box;
}

.g_footer_area {
  border-top: 1px solid var(--color-border);

  margin-top: 40px;
  text-align: center;
}

.footer-inner a {
  margin: 0 12px;
}

.footer-copy {
  margin-top: 12px;
  color: #666;
  font-size: 0.9rem;
}

.hero {
  text-align: center;
  padding: 40px 20px;
}

.hero-brand {
  font-size: 1.75rem;
  font-weight: bold;
  margin: 0 0 20px;
}

.search_area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  flex-wrap: wrap;
  border: 4px solid var(--color-blue7);
}

.search_area .g_text {
  padding: 8px 12px;
  width: 280px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

.trade-btn {
  margin: 16px 0;
}

.trade-btn-blue {
  display: inline-block;
  padding: 12px 24px;
  background: var(--color-base);
  color: #fff;
  border-radius: 8px;
}

.trade-btn-blue:hover {
  opacity: 0.9;
  text-decoration: none;
}

.hero-cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-card {
  padding: 16px 24px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  width: 25%;
}

.trade-top10 {
  padding: 24px 0;
}

.trade-top10-title {
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.trade-top10-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.trade-top10-card {
  padding: 12px 20px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

.notice-strip {
  padding: 20px 0;
}

.notice-strip ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.notice-strip li {
  margin: 8px 0;
}

.list_top_wrap {
  padding: 20px 0;
}

.trade_game {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.detail_search .search_row {
  margin: 12px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.detail_search .search_tit {
  width: 80px;
}

.search_list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.search_list>li {
  display: flex;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-bottom: 8px;
}

.search_list>li.empty {
  justify-content: center;
}

.search_list .col.info {
  width: 70px;
}

.search_list .col.subject_info {
  flex: 1;
  min-width: 0;
}

.search_list .col.quantity {
  width: 100px;
  text-align: right;
}

.search_list .col.price {
  width: 120px;
  text-align: right;
  font-weight: bold;
}

.search_list .col.reg_date {
  width: 90px;
  font-size: 0.9rem;
  color: #666;
}

.search_list .badge {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: #f0f0f0;
}

.search_select label {
  margin-right: 12px;
}

.pagination {
  margin-top: 24px;
  text-align: center;
}

.pagination a {
  margin: 0 8px;
}

.listing-detail {
  margin: 20px 0;
}

.listing-detail h1 {
  font-size: 1.5rem;
}

.trade_money {
  font-weight: bold;
  color: var(--color-base);
}

.listing-form p {
  margin: 12px 0;
}

.listing-form label {
  display: inline-block;
  min-width: 80px;
}

.notice-list {
  list-style: none;
  padding: 0;
}

.notice-list li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.notice-meta {
  color: #666;
  font-size: 0.9rem;
}

.notice-content {
  margin: 20px 0;
}

form p {
  margin: 12px 0;
}

form label {
  display: inline-block;
  min-width: 100px;
}

button[type="submit"],
.btn_search {
  padding: 8px 20px;
  background: var(--color-base);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

/* 플래시 메시지 (등록 완료 등) */
.g_messages {
  max-width: var(--content-max);
  margin: 0 auto 16px;
  padding: 0;
}
.g_alert {
  padding: 12px 0;
  border-radius: 8px;
  font-size: 14px;
}
.g_alert-success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}
.g_alert-error {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ef9a9a;
}
.g_alert-warning {
  background: #fff8e1;
  color: #f57f17;
  border: 1px solid #ffe082;
}
.g_alert-info {
  background: #e3f2fd;
  color: #1565c0;
  border: 1px solid #90caf9;
}