:root {
  --tm-purple: #920783;      /* 티머니 브랜드 보라 (배경) */
  --tm-purple-text: #920883; /* 텍스트용 보라 */
  --tm-purple-dark: #6d0562;
  --tm-orange: #f08200;      /* 보조 액센트 */
  --tm-navy: #1a2f5a;
  --tm-gray: #f5f6f8;
  --tm-text: #222;
  --tm-muted: #777;
  --tm-border: #e3e5e8;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  color: var(--tm-text);
  background: var(--tm-gray);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }

.nav {
  background: #fff;
  border-bottom: 1px solid var(--tm-border);
}
.nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; }
.logo .tmark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--tm-purple); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 900;
}
.nav-links { display: flex; align-items: center; gap: 18px; font-size: 14px; color: var(--tm-muted); }
.nav-links .btn { padding: 8px 14px; }

.center-wrap {
  min-height: calc(100vh - 63px);
  display: flex; align-items: center; justify-content: center; padding: 40px 16px;
}
.card {
  background: #fff; border: 1px solid var(--tm-border); border-radius: 14px;
  padding: 34px; width: 100%; max-width: 420px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
.card h1 { font-size: 22px; margin-bottom: 6px; }
.card .sub { color: var(--tm-muted); font-size: 14px; margin-bottom: 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field input {
  width: 100%; padding: 11px 13px; border: 1px solid var(--tm-border);
  border-radius: 8px; font-size: 15px;
}
.field input:focus { outline: 2px solid var(--tm-purple); border-color: transparent; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px; border: none; border-radius: 8px; cursor: pointer;
  font-size: 15px; font-weight: 700; transition: opacity 0.15s;
}
.btn:hover { opacity: 0.88; }
.btn-primary { background: var(--tm-purple); color: #fff; width: 100%; }
.btn-navy { background: var(--tm-purple-dark); color: #fff; width: 100%; }
.btn-outline { background: #fff; border: 1px solid var(--tm-border); color: var(--tm-text); }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.error {
  background: #fdecec; color: #b3001b; border: 1px solid #f5c2c7;
  padding: 11px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 16px;
}
.info {
  background: #e8f1fd; color: #1a4d8f; border: 1px solid #c6dbf5;
  padding: 11px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 16px;
}
.muted-link { display: block; text-align: center; margin-top: 16px; font-size: 13px; color: var(--tm-muted); }
.muted-link a { text-decoration: underline; }

.mfa-status { text-align: center; padding: 26px 0; color: var(--tm-muted); font-size: 15px; }
.mfa-icon {
  width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%;
  background: #f6e3f4; color: var(--tm-purple);
  display: flex; align-items: center; justify-content: center;
}
.mfa-icon svg { width: 34px; height: 34px; }

/* home */
.hero {
  background: linear-gradient(135deg, #5c0353 0%, var(--tm-purple) 55%, #b4109f 100%);
  color: #fff; padding: 72px 24px;
}
.hero-inner { max-width: 1080px; margin: 0 auto; }
.hero .badge {
  display: inline-block; background: rgba(255,255,255,0.14);
  padding: 6px 14px; border-radius: 999px; font-size: 13px; margin-bottom: 18px;
}
.hero h1 { font-size: 40px; line-height: 1.25; margin-bottom: 14px; }
.hero h1 .accent { color: #ffc9f4; }
.hero p { font-size: 17px; opacity: 0.85; max-width: 560px; }
.section { max-width: 1080px; margin: 0 auto; padding: 56px 24px; }
.section h2 { font-size: 26px; margin-bottom: 8px; }
.section .sub { color: var(--tm-muted); margin-bottom: 32px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.feature {
  background: #fff; border: 1px solid var(--tm-border); border-radius: 14px; padding: 26px;
}
.feature .icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  background: #f6e3f4;
  border: 2px solid rgba(147, 7, 132, 0.35);
}
.feature:nth-child(even) .icon {
  background: #fdeedd;
  border-color: rgba(240, 131, 0, 0.45);
}
.feature h3 { font-size: 17px; margin-bottom: 6px; }
.feature h3 .tag { color: var(--tm-purple-text); }
.feature p { font-size: 14px; color: var(--tm-muted); }
.footer { text-align: center; color: var(--tm-muted); font-size: 13px; padding: 30px; }

/* home CTA band */
.cta-band {
  background: #111; color: #fff; text-align: center; padding: 54px 24px;
}
.cta-band img { width: 84px; height: 84px; margin-bottom: 16px; }
.cta-band h2 { font-size: 30px; margin-bottom: 10px; }
.cta-band p { color: #cfcfcf; font-size: 15px; max-width: 560px; margin: 0 auto; }

.nav .logo img { height: 26px; display: block; }

/* security settings */
.settings-wrap { max-width: 760px; margin: 0 auto; padding: 40px 24px; }
.panel { background: #fff; border: 1px solid var(--tm-border); border-radius: 14px; margin-bottom: 24px; }
.panel-head { padding: 20px 26px; border-bottom: 1px solid var(--tm-border); }
.panel-head h2 { font-size: 18px; }
.panel-head .sub { font-size: 13px; color: var(--tm-muted); }
.panel-body { padding: 20px 26px; }
.cred-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; border-bottom: 1px solid var(--tm-gray);
}
.cred-row:last-child { border-bottom: none; }
.cred-name { font-weight: 600; font-size: 15px; }
.cred-meta { font-size: 12.5px; color: var(--tm-muted); }
.cred-actions { display: flex; gap: 8px; }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
  font-family: ui-monospace, monospace; font-size: 14px;
  background: var(--tm-gray); border-radius: 8px; padding: 16px; margin-top: 12px; }
