:root{
  --brand:  #2563EB;  /* 메인 블루 */
  --brand2: #7C3AED;  /* 보조 퍼플 */

  --btn-pay: #8B5A2B;
  --btn-worklife: #2563EB;
  --btn-money: #0F766E;
  --btn-daily: #65A30D;
  --btn-tools: #DB2777;
}


*{box-sizing:border-box;}
.hub{
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 16px 60px;
  color:var(--text);
  background: transparent;
}

/* ===== HERO (타사이트와 느낌 다르게: grid + glow + wave) ===== */
.hero{
  border-radius: 18px;
  overflow:hidden;
  box-shadow: var(--shadow);
  border:1px solid rgba(255,255,255,.55);
  background: linear-gradient(135deg, rgba(17,24,39,.02), rgba(43,99,241,.06));
}

.hero__inner{
  position:relative;
  padding: 34px 28px;
  min-height: 150px;
}

.hero__content{position:relative; z-index:2;}

.hero__title{
  margin:0 0 10px;
  font-size: 40px;
  letter-spacing:-0.03em;
  line-height: 1.15;
}

.hero__accent{
  background: linear-gradient(90deg, var(--brand2), var(--brand));
  -webkit-background-clip: text;
  background-clip:text;
  color: transparent;
  font-weight: 900;
}

.hero__desc{
  margin:0;
  color: var(--muted);
  font-size: 15px;
  line-height:1.5;
}

/* 배경 레이어 */
.hero__bg{
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
}

/* 미세 그리드 */
.hero__grid{
  position:absolute;
  inset:-40px;
  opacity:.55;
  background-image:
    linear-gradient(rgba(17,24,39,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,24,39,.06) 1px, transparent 1px);
  background-size: 26px 26px;
  transform: rotate(-2deg);
}

/* 글로우 */
.hero__glow{
  position:absolute;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(40px);
  opacity:.55;
}

.hero__glow--a{
  left:-120px;
  top:-140px;
  background: radial-gradient(circle at 30% 30%, rgba(43,99,241,.55), transparent 60%);
}

.hero__glow--b{
  right:-140px;
  bottom:-160px;
  background: radial-gradient(circle at 60% 60%, rgba(124,58,237,.55), transparent 60%);
}

/* 웨이브 라인 */
.hero__wave,
.hero__wave2{
  position:absolute;
  left:0;
  bottom:-2px;
  width:100%;
  height: 120px;
  opacity:.25;
}

.hero__wave path{
  fill: rgba(43,99,241,.25);
}
.hero__wave2{
  bottom: 10px;
  opacity:.18;
}
.hero__wave2 path{
  fill: rgba(124,58,237,.22);
}

@media (max-width:720px){
  .hero__title{font-size:30px;}
  .hero__inner{padding:26px 18px;}
}

/* ===== FILTERS ===== */
.filters{ margin-top: 18px; }

.filters__bar{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px;
  background: #f3f4f6;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  cursor:pointer;
  transition: transform .06s ease, border-color .12s ease, box-shadow .12s ease;
}
.chip__icon{font-size:14px; opacity:.9;}
.chip:hover{box-shadow:0 8px 18px rgba(17,24,39,.08);}
.chip:active{transform: translateY(1px);}
.chip.is-active{
  border-color: rgba(43,99,241,.35);
  box-shadow: 0 10px 22px rgba(43,99,241,.10);
}

/* ===== GRID ===== */
.grid-wrap{ margin-top: 18px; }

.grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width:1020px){
  .grid{grid-template-columns: repeat(2, minmax(0, 1fr));}
}
@media (max-width:520px){
  .grid{grid-template-columns: 1fr;}
}

/* ===== CARD ===== */
.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(17,24,39,.06);
  padding: 18px;
  display:flex;
  flex-direction: column;
  min-height: 210px;
}

.card__icon{
  width: 46px; height: 46px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 22px;
  background: rgba(43,99,241,.10);
  border: 1px solid rgba(43,99,241,.18);
  margin-bottom: 10px;
}

.card__title{
  margin:0 0 8px;
  font-size: 18px;
  letter-spacing:-0.02em;
}

.card__desc{
  margin:0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  flex: 1;
}

.card__btn{
  margin-top: 14px;
  width: 100%;
  border: 0;
  cursor:pointer;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 900;
  background: var(--brand);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  text-decoration:none;
}

.card__btn:active{transform: translateY(1px);}

.card__btn .mini{
  display:inline-flex;
  width: 18px; height: 18px;
  border-radius: 6px;
  background: rgba(255,255,255,.18);
  align-items:center;
  justify-content:center;
  font-size: 12px;
}

/* ===== EMPTY (버튼 없음) ===== */
/* ===== EMPTY (준비중입니다: 테두리 있는 박스) ===== */
.empty{
  margin-top: 16px;
  padding: 18px 18px;
  border-radius: 16px;

  border: 1px solid var(--line);     /* ✅ 점선 → 실선 */
  background: #ffffff;

  box-shadow: 0 10px 24px rgba(17,24,39,.06); /* ✅ 카드 느낌 */
  color: var(--muted);
}

.empty__title{
  font-weight: 900;
  color: var(--text);
  margin-bottom: 6px;
  font-size: 16px;
}

.empty__desc{
  font-size: 13px;
  line-height: 1.55;
}

.is-hidden{display:none;}

/* 기본 버튼 스타일(색상은 var로) */
.card__btn{
  margin-top: 14px;
  width: 100%;
  border: 0;
  cursor:pointer;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 900;

  background: var(--btn-color, var(--btn-pay)); /* ✅ 핵심 */
  color:#fff;

  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  text-decoration:none;
}

/* hover/클릭 시: 글자색만 연한 노랑 */
.card__btn:hover,
.card__btn:focus-visible,
.card__btn:active{
  color: #FFF3BF !important;  /* 연한 노랑 */
}

/* 버튼 안 mini 아이콘(▦)도 같이 연노랑으로 */
.card__btn:hover .mini,
.card__btn:focus-visible .mini,
.card__btn:active .mini{
  color: #FFF3BF !important;
}


/* 버튼 내부 mini 배경 */
.card__btn .mini{
  display:inline-flex;
  width: 18px; height: 18px;
  border-radius: 6px;
  background: rgba(255,255,255,.18);
  align-items:center;
  justify-content:center;
  font-size: 12px;
}
