/* =========================================
   Crypto Referral Site - Minimal SaaS UI
   Theme A: BG #F6F8FB / Primary #2B6CB0
   No build tools. Responsive by default.
========================================= */

:root{
  --bg: #F6F8FB;
  --surface: #FFFFFF;
  --text: #0F172A;        /* slate-900 */
  --muted: #475569;       /* slate-600 */
  --border: #E2E8F0;      /* slate-200 */
  --primary: #2B6CB0;     /* recommended */
  --primary-dark: #245B95;
  --ring: rgba(43, 108, 176, 0.25);
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  --radius: 14px;
  --maxw: 1040px;
}

/* Base */
*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Apple SD Gothic Neo",
               "Noto Sans KR", "Malgun Gothic", Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: none; }

img, video, canvas{ max-width: 100%; height: auto; }

/* Layout helpers */
.container{
  width: min(100%, var(--maxw));
  margin: 0 auto;
  padding: clamp(16px, 3vw, 28px);
}

.page-title{
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 10px 0;
}

.page-subtitle{
  margin: 0 0 18px 0;
  color: var(--muted);
  font-size: clamp(13px, 1.8vw, 15px);
}

/* Top bar / header area */
.topbar{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: clamp(12px, 2vw, 18px);
}

.badge{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.7);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
}

/* Search */
.search{
  width: min(520px, 100%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
}

.search input{
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
}

.search input::placeholder{ color: #94A3B8; }

/* Card grid (responsive automatically) */
.card-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(12px, 2vw, 18px);
}

.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
  padding: clamp(14px, 2.2vw, 18px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(43, 108, 176, 0.25);
}

.card-title{
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ===== exchange logo in title ===== */
.ex-logo{
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
  color: #475569; /* slate-600 */
}

.ex-logo-svg{
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

.ex-title-text{
  display: inline-block;
}

/* 제목 안에서 영문(부제) 스타일 */
.title-en{
  margin-left: 6px;
  font-weight: 700;
  font-size: 13px;
  color: #64748B; /* slate-500 */
}

/* 카드 헤더: 제목(좌) + 히어로 배지(우) */
.card-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

/* 카드 헤더 구분선 */
.card-divider{
  height: 1px;
  background: var(--border);
  margin: 12px 0 14px;
}

.card-title-wrap{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* 배지를 헤더 오른쪽에 두면 조금 더 컴팩트하게 */
.card-head .hero-badge{
  margin-top: 2px;
}

/* 카드 설명 */
.card-desc{
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

/* Small meta row */
.card-meta{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.pill{
  font-size: 12px;
  color: var(--muted);
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(246, 248, 251, 0.9);
}

/* 히어로 배지 (신뢰감 톤 / 이모지 없음) */
.hero-badge{
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(185, 28, 28, 0.18);
  background: rgba(185, 28, 28, 0.05);
  color: #0F172A; /* slate-900 */
  font-weight: 900;
  font-size: 13px;
  letter-spacing: -0.01em;
  width: fit-content;
}

/* 수수료 변화 박스 (라벨+숫자) */
.fee-box{
  border: 1px solid var(--border);
  background: rgba(246, 248, 251, 0.75);
  border-radius: 12px;
  padding: 10px 12px;
}

.fee-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.fee-label{
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.8);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.fee-value{
  margin: 0;
  font-size: 14px;
  font-weight: 900;
  color: #0F172A;
  letter-spacing: -0.01em;
}

/* 할인 후 숫자만 미세 강조 */
.fee-value .after{
  color: #1E40AF; /* muted blue */
  font-weight: 900;
}

/* Buttons */
.actions{
  margin-top: 8px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
  transition: transform .08s ease, background .12s ease, border-color .12s ease, box-shadow .12s ease;
  white-space: nowrap;
}

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

.btn-primary{
  background: var(--primary);
  color: white;
  box-shadow: 0 10px 18px rgba(43, 108, 176, 0.18);
}

.btn-primary:hover{ background: var(--primary-dark); }

.btn-outline{
  background: transparent;
  color: var(--primary);
  border-color: rgba(43, 108, 176, 0.35);
}

.btn-outline:hover{
  background: rgba(43, 108, 176, 0.08);
  border-color: rgba(43, 108, 176, 0.55);
}

/* Detail page */
.detail{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(16px, 3vw, 24px);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
}

.detail h1{
  margin: 0 0 10px 0;
  font-size: clamp(20px, 2.5vw, 30px);
  letter-spacing: -0.02em;
}

.detail p{
  margin: 0 0 12px 0;
  color: var(--muted);
}

/* Footer */
.footer{
  margin-top: 26px;
  padding: 18px 0;
  color: #64748B;
  font-size: 12px;
}

/* =========================================
   Support (Telegram) card - minimal & premium
   - 불필요한 중간 문구/태그 없음
   - 로고 크게 + 한 줄 멘트 + 버튼
========================================= */
.card-support{
  padding: 18px;
  gap: 14px;
}

.support-head{
  display: flex;
  align-items: center;
  gap: 14px;
}

.support-logo{
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: rgba(246, 248, 251, 0.9);
  flex: 0 0 56px;
}

/* 텔레그램 로고 크게 */
.support-logo .ex-logo-svg{
  width: 34px;
  height: 34px;
}

.support-title{
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}

.support-actions{
  margin-top: 0;
}

/* Mobile touch improvements */
@media (max-width: 480px){
  .btn{ height: 44px; padding: 0 14px; }
  .search{ padding: 12px 14px; }
}

/* =========================================
   Support (Telegram) Card - Premium Style
========================================= */

.card-support {
  padding: 18px;
  gap: 14px;
  position: relative;
  overflow: hidden;

  border: 1px solid rgba(43, 108, 176, 0.20);
  background: linear-gradient(
    180deg,
    rgba(43,108,176,0.06),
    rgba(255,255,255,0.95)
  );
}

.card-support::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 999px;
  background: rgba(43, 108, 176, 0.8);
}

.support-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.support-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 56px;

  border: 1px solid rgba(43, 108, 176, 0.22);
  background: rgba(255,255,255,0.85);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
}

.support-logo .ex-logo-svg {
  width: 34px;
  height: 34px;
}

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

.support-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}

.support-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;

  font-size: 12px;
  font-weight: 800;
  color: rgba(43, 108, 176, 0.95);

  border: 1px solid rgba(43, 108, 176, 0.25);
  background: rgba(43, 108, 176, 0.10);
}

.support-actions {
  margin-top: 10px;
}
