/* 마이페이지 출석 탭 (사용자). 변수는 mypage.css(.mp-wrap)에서 상속 */

/* 데일리 안내 */
.att-daily-note {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--mp-bg-soft); border: 1px solid var(--mp-border);
    border-radius: 999px; padding: 7px 14px;
    font-size: 0.85rem; font-weight: 700; color: var(--mp-text-soft);
    margin-bottom: 24px;
}
.att-daily-note i { color: var(--mp-accent); }
.att-daily-note b { color: var(--mp-primary-dark); font-weight: 900; }

/* 체크인 버튼 (마이페이지 출석 탭 상단) */
.att-checkin-row { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.att-btn-checkin {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 13px 22px;
    background: linear-gradient(135deg, #c08a2c, #7a5c1f);
    color: white; border: none; border-radius: 12px;
    font-size: 1rem; font-weight: 900; cursor: pointer;
    box-shadow: 0 6px 16px rgba(122, 92, 31, 0.22); transition: all 0.15s;
}
.att-btn-checkin:hover:not(:disabled) { filter: brightness(1.06); transform: translateY(-1px); }
.att-btn-checkin:disabled { background: #ece4cf; color: var(--mp-primary); box-shadow: none; cursor: default; }
.att-checkin-msg { font-size: 0.9rem; font-weight: 800; color: var(--mp-success); }

/* 로드맵 */
.att-roadmap { padding: 8px 4px; overflow-x: auto; }
.att-rm-nodes { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; min-width: 520px; position: relative; }
.att-rm-nodes::before {
    content: ''; position: absolute; top: 27px; left: 28px; right: 28px; height: 6px;
    background: #ece4cf; border-radius: 999px; z-index: 0;
}
.att-rm-node { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; flex: 1; z-index: 1; }
.att-rm-dot {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--mp-bg-panel); border: 3px solid var(--mp-border-strong);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: var(--mp-text-muted); transition: all 0.2s; position: relative;
}
.att-rm-node.achieved .att-rm-dot { background: linear-gradient(135deg, #f5d96b, #b48a00); border-color: #b48a00; color: #2b261d; box-shadow: 0 4px 12px rgba(180, 138, 0, 0.3); }
.att-rm-node.next .att-rm-dot { background: #fff; border-color: var(--mp-accent); color: var(--mp-accent); box-shadow: 0 0 0 4px rgba(192, 138, 44, 0.18); }
.att-rm-day { font-size: 0.92rem; font-weight: 900; color: var(--mp-text); }
.att-rm-node.start .att-rm-day { color: var(--mp-text-muted); }
.att-rm-reward { font-size: 0.8rem; font-weight: 800; color: var(--mp-primary); background: rgba(192, 138, 44, 0.1); border-radius: 6px; padding: 2px 8px; }
.att-rm-node.next .att-rm-reward { background: rgba(192, 138, 44, 0.18); color: var(--mp-primary-dark); }
.att-rm-state { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.att-rm-node.achieved .att-rm-state { color: var(--mp-success); }
.att-rm-node.next .att-rm-state { color: var(--mp-accent); }
.att-rm-node.upcoming .att-rm-state { color: var(--mp-border-strong); }
.att-rm-node.start .att-rm-state { color: var(--mp-text-muted); }
.att-rm-caption { margin-top: 22px; text-align: center; font-size: 0.95rem; font-weight: 700; color: var(--mp-text-soft); }
.att-rm-caption b { color: var(--mp-primary-dark); font-weight: 900; }
.att-rm-caption .max { color: var(--mp-accent); }

/* 달력 */
.att-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.att-cal-nav { display: flex; align-items: center; gap: 14px; }
.att-cal-nav button { width: 34px; height: 34px; border-radius: 9px; background: var(--mp-bg-panel); border: 1px solid var(--mp-border); color: var(--mp-text-soft); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: all 0.15s; }
.att-cal-nav button:hover { border-color: var(--mp-accent); color: var(--mp-primary); background: var(--mp-bg-soft); }
.att-cal-month { font-size: 1.05rem; font-weight: 900; color: var(--mp-text); min-width: 130px; text-align: center; font-variant-numeric: tabular-nums; }
.att-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.att-cal-dow { text-align: center; font-size: 0.78rem; font-weight: 800; color: var(--mp-text-muted); padding: 4px 0 8px; }
.att-cal-dow.sun { color: #b06a5a; }
.att-cal-dow.sat { color: #5a7ab0; }
.att-cal-cell { aspect-ratio: 1; border-radius: 12px; border: 1px solid var(--mp-border); background: var(--mp-bg-soft); display: flex; align-items: center; justify-content: center; position: relative; font-size: 0.95rem; font-weight: 800; color: var(--mp-text-soft); }
.att-cal-cell.empty { background: transparent; border: none; }
.att-cal-cell.future { opacity: 0.4; }
.att-cal-cell.checked { background: linear-gradient(135deg, #f5d96b, #b48a00); border-color: #b48a00; color: #2b261d; }
.att-cal-cell.checked::after { content: '\2713'; position: absolute; bottom: -4px; right: -4px; width: 18px; height: 18px; border-radius: 50%; background: var(--mp-primary); color: white; font-size: 0.62rem; display: flex; align-items: center; justify-content: center; border: 2px solid white; }
.att-cal-cell.today { box-shadow: 0 0 0 2px var(--mp-accent), 0 0 0 5px rgba(192, 138, 44, 0.18); }
.att-cal-cell.today:not(.checked) { background: #fff; color: var(--mp-primary-dark); border-color: var(--mp-accent); }
.att-cal-legend { display: flex; gap: 18px; margin-top: 18px; flex-wrap: wrap; font-size: 0.82rem; font-weight: 700; color: var(--mp-text-muted); align-items: center; }
.att-cal-legend .lg { display: inline-flex; align-items: center; gap: 7px; }
.att-cal-legend .sw { width: 16px; height: 16px; border-radius: 5px; border: 1px solid var(--mp-border); }
.att-cal-legend .sw.checked { background: linear-gradient(135deg, #f5d96b, #b48a00); border-color: #b48a00; }
.att-cal-legend .sw.today { background: #fff; box-shadow: inset 0 0 0 2px var(--mp-accent); }
.att-cal-month-count { margin-left: auto; }
.att-cal-month-count b { color: var(--mp-primary-dark); font-weight: 900; }
