body {
    margin: 0;
    font-family: "Pretendard", sans-serif;
    background: #fff;
    color: #000;
    text-align: center;
    padding-top: 80px; /* 헤더 높이만큼 여유 공간 추가 */
}

header {
    position: fixed; /* 화면에 고정 */
    top: 0; /* 상단에 위치 */
    left: 0; /* 왼쪽 끝 */
    width: 100%; /* 화면 가로 전체 */
    z-index: 1000; /* 다른 요소 위로 표시 */
    background: #111;
    color: white;
    padding: 20px 0;
    font-size: 2rem;
    font-weight: 700;
}
header .header-link {
    color: #fff;
    text-decoration: none;
}
.section-title {
    display: flex;
    align-items: center;
    font-size: 36px;
    font-weight: 600;
    margin: 0 40px 20px 40px;
    color: #222;
    gap: 15px;
}
.section-title::after {
    content: "";
    flex: 1;
    height: 2px;
    background: #333;
}
.buttons {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 24px auto;
    background: #dddddd;
    padding: 6px 10px;
    width: fit-content;
    border-radius: 14px;
}
.buttons .active-indicator {
    position: absolute;
    top: 6px; /* 컨테이너 padding-top과 동일 */
    left: 8px;
    height: calc(100% - 12px); /* 전체 높이 - 상하 패딩 */
    width: 60px;
    background: #8a8a8a;
    border-radius: 10px;
    transition: left 240ms ease, width 240ms ease;
}
.buttons button {
    position: relative;
    z-index: 1;
    background: transparent;
    border: none;
    padding: 6px 16px;
    border-radius: 10px;
    font-size: 1.15rem;
    font-weight: bold;
    transition: 0.2s;
    pointer-events: none; /* 표시 전용 - 클릭 비활성화 */
}
.buttons button.active {
    color: #000;
}
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 가로 3칸 고정 */
    gap: 30px;
    padding: 0 40px 40px;
}
.section {
    margin-bottom: 60px;
}
.section:last-child {
    margin-bottom: 0;
}
.card {
    background: #979797;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 400px; /* 카드 높이 늘리기 */
}
.card:hover {
    transform: scale(1.03);
}
.card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}
.card p {
    margin: 27px;
    font-weight: 700;
    font-size: 1.5rem; /* 텍스트 크기 크게 */
    line-height: 1.4;
}
.hidden {
    display: none;
}

.pay-screen {
    padding: 40px;
    max-width: 720px;
    margin: 0 auto;
}
.pay-info,
.total,
.account,
.pay-buttons {
    margin-bottom: 20px;
}

/* 페이드인 효과 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

.pay-info {
    font-size: 1.25rem;
    line-height: 1.8;
}
.total {
    font-size: 3rem;
    font-weight: 800;
    margin-top: 8px;
}
.account {
    font-size: 1rem;
    color: #666;
}
.pay-buttons button {
    margin: 5px;
    padding: 12px 22px;
    border: none;
    border-radius: 10px;
    font-size: 1.05rem;
    cursor: pointer;
}
.copy {
    background: #007bff;
    color: #fff;
}
.reset {
    background: #444;
    color: white;
}
