@layer components {

.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 60%, var(--accent) 100%);
  padding: 72px 0 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(255,255,255,.08), transparent 60%);
}
.hero-inner { position: relative; z-index: 1; }
.hero-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.05em;
  color: #fff;
  margin-bottom: 16px;
}
.hero-sub {
  color: rgba(255,255,255,.82);
  font-size: 16px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: var(--primary);
  font-weight: 900;
  min-height: 40px;
  padding: 0 28px;
  border-radius: 16px;
  border: none;
  font-size: 15px;
  box-shadow: 0 20px 40px rgba(0,0,0,.15);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 48px rgba(0,0,0,.22);
}
.btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
  min-height: 40px;
  padding: 0 28px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 700;
  backdrop-filter: blur(8px);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn-hero-ghost:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.25);
  border-color: rgba(255,255,255,.6);
}
.banner-strip {
  overflow-x: auto;
  display: flex;
  gap: 12px;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.banner-strip::-webkit-scrollbar { display: none; }
.banner-item {
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary-soft), var(--accent-soft));
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px;
  min-width: 260px;
  display: block;
}
.banner-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.7);
}
.banner-item-copy { margin-top: 8px; font-size: 12px; color: var(--text-2); }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.section-header h2 { font-size: 20px; font-weight: 900; letter-spacing: -.03em; }
.event-card {
  display: block;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #eef0f4;
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.event-card:hover {
  transform: translateY(-3px);
  border-color: #dfe3ea;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .10);
}
.event-card-visual {
  position: relative;
  height: 132px;
  padding: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #4f46e5);
}
.event-card-visual::before {
  content: "";
  position: absolute;
  inset: -40px;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 22px 22px;
  transform: rotate(-8deg);
}
.event-visual-top,
.event-visual-bottom {
  position: relative;
  z-index: 1;
}
.event-visual-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.event-chip {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.22);
}
.event-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(134,239,172,.85);
  box-shadow: 0 0 0 5px rgba(134,239,172,.18);
}
.event-dot.dot-yellow {
  background: rgba(253,224,71,.85);
  box-shadow: 0 0 0 5px rgba(253,224,71,.18);
}
.event-dot.dot-orange {
  background: rgba(253,186,116,.85);
  box-shadow: 0 0 0 5px rgba(253,186,116,.18);
}
.event-visual-bottom {
  position: absolute;
  left: 14px;
  bottom: 12px;
  color: rgba(255,255,255,.72);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
}
.event-card-body {
  padding: 14px 15px 15px;
}
.event-card-title {
  font-size: 15px;
  font-weight: 800;
  color: #111827;
  line-height: 1.35;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.event-card-venue {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.event-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.event-card-badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 12px;
  font-weight: 700;
}
.event-card-arrow {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #111827;
  color: #fff;
  font-size: 13px;
  transition: transform .18s ease;
}
.event-card:hover .event-card-arrow {
  transform: translateX(2px);
}
.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 1100px) {
  .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
  .grid-5 { grid-template-columns: 1fr; }
  .event-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    min-height: 132px;
    border-radius: 16px;
  }
  .event-card-visual { height: auto; min-height: 132px; padding: 12px; }
  .event-visual-bottom { left: 12px; bottom: 10px; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .event-card-body { padding: 13px 14px; min-width: 0; }
  .event-card-title {
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  .event-card-venue { margin-bottom: 8px; }
}
@media (max-width: 360px) {
  .event-card { grid-template-columns: 96px minmax(0, 1fr); }
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.guide-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: inherit;
  transition: border-color .18s, box-shadow .18s;
}
.guide-card:hover {
  border-color: rgba(91,108,255,.28);
  box-shadow: var(--shadow-sm);
}
.guide-card.seller:hover { border-color: rgba(124,92,255,.28); }
.guide-card-head { display: flex; align-items: center; gap: 16px; }
.guide-card-icon {
  width: 52px; height: 52px; border-radius: 16px;
  background: var(--primary-soft);
  display: grid; place-items: center;
  font-size: 26px; flex-shrink: 0;
}
.guide-card.seller .guide-card-icon { background: var(--accent-soft); }
.guide-card-title { font-size: 18px; font-weight: 900; letter-spacing: -.03em; }
.guide-card-sub { margin-top: 4px; font-size: 13px; color: var(--text-2); }
.guide-steps { display: flex; flex-direction: column; gap: 12px; }
.guide-step { display: flex; align-items: flex-start; gap: 12px; }
.guide-step-num {
  width: 24px; height: 24px; border-radius: 8px;
  background: var(--primary-soft); color: var(--primary);
  font-size: 12px; font-weight: 800;
  display: grid; place-items: center; flex-shrink: 0; margin-top: 1px;
}
.guide-card.seller .guide-step-num { background: var(--accent-soft); color: var(--accent); }
.guide-step-text { font-size: 14px; font-weight: 700; color: var(--text-2); line-height: 1.5; }
.guide-cta {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 800; color: var(--primary);
}
.guide-card.seller .guide-cta { color: var(--accent); }
@media (max-width: 768px) {
  .guide-grid { grid-template-columns: 1fr; }
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.trust-item {
  text-align: center;
  padding: 28px 20px;
  border-radius: var(--radius-sm);
  background: var(--panel);
  border: 1px solid var(--line);
  display: block;
  color: inherit;
  transition: border-color .18s, box-shadow .18s;
}
a.trust-item:hover {
  border-color: rgba(91,108,255,.28);
  box-shadow: var(--shadow-sm);
}
.trust-icon { font-size: 32px; margin-bottom: 12px; }
.trust-title { font-size: 15px; font-weight: 900; letter-spacing: -.02em; margin-bottom: 6px; }
.trust-desc { font-size: 13px; color: var(--text-2); line-height: 1.6; }
@media (max-width: 820px), (max-height: 500px) and (pointer: coarse) {
  .trust-grid { grid-template-columns: 1fr; }
}


/* 로그인한 회원의 할 일(2026-11-08 U17) — 히어로 위 얇은 띠. 할 일이 있을 때만 그린다 */
.main-todo { background: var(--primary-soft); border-bottom: 1px solid rgba(72,87,214,.12); }
.main-todo-list { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 12px; }
.main-todo-item {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 8px 14px;
  border-radius: 999px; background: var(--panel); border: 1px solid rgba(72,87,214,.18);
  color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none;
}
.main-todo-item b { color: var(--primary-text); font-weight: 800; }
.main-todo-item:hover { border-color: var(--primary); }
.main-todo-arrow { color: var(--primary-text); }
@media (max-width: 820px), (max-height: 500px) and (pointer: coarse) {
  .main-todo-list { flex-direction: column; gap: 6px; padding-block: 10px; }
  .main-todo-item { width: 100%; }
  .main-todo-arrow { margin-left: auto; }
}

}
