/* 이용권 구매 메인 - 사이드바 레이아웃 적용 */

/* 결제 방식 토글 */
.payment-mode-toggle {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.ticket-card .period-discount {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 5px 12px;
    background: #ff6c0f;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    z-index: 5;
}

.mode-btn {
    border: 1px solid #e0e0e0;
    background-color: #fff;
    border-radius: 14px;
    padding: 18px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.25s ease;
    cursor: pointer;
}

.mode-btn strong {
    font-size: 16px;
    color: #222;
}

.mode-btn span {
    font-size: 13px;
    color: #777;
}

.mode-btn.active {
    border: 2px solid #ff6c0f;
}

/* 일반결제 패널 */
.payment-option-panel {
    border: 1px solid #f0f0f0;
    border-radius: 18px;
    padding: 18px;
    background-color: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.payment-option-panel .panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.panel-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.panel-desc {
    margin: 4px 0 0;
    font-size: 13px;
    color: #777;
}

.panel-link {
    font-size: 13px;
    color: #ff6c0f;
    font-weight: 600;
}

.billing-method-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 14px;
    background: #f8f9fb;
}

.billing-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.billing-card-icon svg {
    width: 26px;
    height: 26px;
    stroke: currentColor;
}

.billing-card-info {
    flex: 1;
}

.billing-card-name {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 4px;
}

.billing-card-number {
    font-size: 14px;
    color: #555;
    letter-spacing: 1px;
}

.btn-card-manage {
    border: none;
    background: #fff;
    color: #ff6c0f;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 10px;
    box-shadow: none;
}

.general-method-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.general-method-btn {
    flex: 1 1 180px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 14px 18px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    transition: all 0.2s ease;
}

.general-method-btn.active {
    border-color: #2b90ff;
    background: #f0f7ff;
}

.method-selected {
    font-size: 12px;
    color: #2b90ff;
    font-weight: 700;
}

.general-method-notice {
    margin-top: 14px;
    font-size: 13px;
    color: #777;
}

/* 메인 컨텐츠 */
.main-content {
    flex: 1;
    padding: 32px;
    overflow-x: hidden;
    animation: fadeIn 0.8s ease;
    min-width: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* 페이지 헤더 - mypage_common.css 공통 스타일 사용 */

/* 이용권 그리드 */
.ticket-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-bottom: 50px;
    animation: fadeInUp 0.6s ease 0.2s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 현재 활성 이용권 섹션 */
.active-plan-section {
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease 0.1s backwards;
}

.active-plan-card {
    background: #ff6c0f;
    border-radius: 16px;
    padding: 28px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}


.active-plan-header {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.active-plan-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.active-plan-badge {
    display: inline-block;
    padding: 6px 14px;
    background-color: rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.3;
    word-break: keep-all;
    white-space: normal;
    text-align: center;
}

.active-plan-name {
    font-size: 28px;
    font-weight: 800;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.3;
    word-break: keep-all;
    overflow-wrap: break-word;
    white-space: normal;
    flex: 1 1 100%;
}

.active-plan-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.active-plan-date,
.active-plan-remain {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 12px;
}

.active-plan-date svg,
.active-plan-remain svg {
    stroke: #ffffff;
}

.active-plan-remain.warning {
    background-color: rgba(255, 255, 255, 0.35);
}

.btn-cancel-subscription {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-cancel-subscription:hover {
    background-color: rgba(255, 255, 255, 0.35);
}

.btn-cancel-subscription svg {
    stroke: #ffffff;
}

/* 이용권 카드 */
.ticket-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: border-color 0.2s;
    position: relative;
    display: flex;
    flex-direction: column;
    border: 2px solid #eee;
}

.ticket-card:hover {
    border-color: #ff6c0f;
}

/* 현재 이용중인 플랜 카드 강조 */
.ticket-card.current-plan {
    border: 3px solid #ff6c0f;
    position: relative;
}

.ticket-card.current-plan::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 18px;
    pointer-events: none;
    box-shadow: inset 0 0 0 2px rgba(255, 108, 15, 0.1);
}

.current-plan-tag {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 16px;
    background: #ff6c0f;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 0 0 8px 8px;
    z-index: 10;
}

.ticket-card.current-plan:hover {
    transform: translateY(-4px);
}

/* 비활성화된 라디오 라벨 */
.period-label.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #f0f0f0;
}

.period-label.disabled:hover {
    background-color: #f0f0f0;
    border-color: #e0e0e0;
    transform: none;
}

/* 뱃지 */
.ticket-badge {
    text-align: center;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-icon {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.ticket-card:hover .badge-icon {
    transform: scale(1.05);
}

/* 티켓 헤더 */
.ticket-header {
    text-align: center;
    margin-bottom: 25px;
}

.ticket-name {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 6px;
    line-height: 1.3;
    word-break: keep-all;
    overflow-wrap: break-word;
    white-space: normal;
}

.ticket-age {
    font-size: 14px;
    color: #656565;
    font-weight: 500;
}

/* 기간 선택 */
.ticket-period-select {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.period-radio {
    display: none;
}

.period-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 16px;
    background-color: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    min-height: 60px;
}

.period-label:hover {
    background-color: #fff5ed;
    border-color: #ff6c0f;
}

.period-radio:checked+.period-label {
    background: #fff5ed;
    border-color: #ff6c0f;
    border-width: 2px;
}

.period-radio:checked+.period-label::before {
    content: '✓';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    background: #ff6c0f;
    color: #ffffff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    animation: checkPop 0.3s ease;
}

@keyframes checkPop {
    0% {
        transform: translateY(-50%) scale(0);
    }

    50% {
        transform: translateY(-50%) scale(1.2);
    }

    100% {
        transform: translateY(-50%) scale(1);
    }
}

.period-label .period-discount {
    /* position: absolute;
    top: 8px;
    right: 8px; */
    padding: 3px 8px;
    background: linear-gradient(135deg, #ff6c0f, #ff8c3a);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    margin-bottom:10px;
    animation: pulse 2s infinite;
}


.period-price-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.period-label .period-text {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.period-label .period-price {
    font-size: 16px;
    font-weight: 700;
    color: #ff6c0f;
}

/* 안내 섹션 */
.notice-section {
    background-color: #fff5ed;
    padding: 24px 28px;
    border-radius: 16px;
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease 0.3s backwards;
}

.notice-title {
    font-size: 18px;
    font-weight: 700;
    color: #ff6c0f;
    margin-bottom: 14px;
}

.notice-content p {
    font-size: 14px;
    color: #656565;
    margin-bottom: 10px;
}

.notice-content p:last-child {
    margin-bottom: 0;
}

/* 선택한 상품 */
.selected-section {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 0;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #eee;
    animation: fadeInUp 0.6s ease 0.4s backwards;
    overflow: hidden;
}

.selected-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    background: #ff6c0f;
}

.selected-title {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.selected-title svg {
    stroke-width: 2.5;
}

.selected-count {
    font-size: 16px;
    color: #ffffff;
    font-weight: 500;
}

.selected-count strong {
    font-size: 24px;
    font-weight: 800;
    margin: 0 4px;
}

.selected-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* 선택된 상품 아이템 */
.selected-item {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    padding: 28px 32px;
    background-color: #ffffff;
    border-bottom: 2px solid #f0f0f0;
    transition: all 0.3s ease;
}

.selected-item:last-child {
    border-bottom: none;
}

.selected-item:hover {
    background-color: #fffbf7;
}

.selected-item-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.selected-item-badge {
    min-width: 80px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ff6c0f;
    border: none;
    border-radius: 14px;
    padding: 14px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}


.selected-badge-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
    position: relative;
    z-index: 1;
}

.badge-text-sm {
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    text-align: center;
    line-height: 1.3;
    letter-spacing: -0.3px;
    word-break: keep-all;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
}

.selected-item-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.selected-item-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.selected-item-name {
    font-size: 20px;
    font-weight: 800;
    color: #333;
    margin: 0;
}

.selected-item-age {
    display: inline-block;
    padding: 4px 10px;
    background-color: #f0f0f0;
    color: #656565;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
}

.selected-item-period-info {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ff6c0f;
    font-size: 15px;
    font-weight: 700;
}

.selected-item-period-info svg {
    stroke: #ff6c0f;
}

.selected-item-date {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #999;
    font-size: 13px;
    font-weight: 500;
}

.selected-item-date svg {
    stroke: #999;
}

.selected-item-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.selected-item-pricing {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    padding: 12px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #eee;
}

.original-price-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.original-price-label {
    font-size: 12px;
    color: #999;
    font-weight: 500;
}

.original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    font-weight: 600;
}

.discount-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.discount-badge {
    padding: 3px 8px;
    background: #ff6c0f;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
}

.discount-amount {
    font-size: 13px;
    background: #ff6c0f;
    color:#fff;
    font-weight: 700;
    padding:4px 13px;
    border-radius:6px;
}

.final-price-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 2px solid #e8ecf1;
}

.final-price-label {
    font-size: 13px;
    color: #333;
    font-weight: 600;
}

.final-price {
    font-size: 22px;
    color: #ff6c0f;
    font-weight: 800;
}

.selected-item-remove {
    width: 40px;
    height: 40px;
    border: none;
    background-color: #f8f9fa;
    color: #999;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.selected-item-remove:hover {
    background-color: #ffe5e5;
    color: #ff4444;
    transform: rotate(90deg);
}

/* 선택 상품 요약 */
.selected-summary {
    padding: 24px 28px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.summary-row {
    display: flex;
    justify-content: flex-end;
    gap:5px;
    align-items: center;
    padding: 12px 0;
}

.summary-label {
    font-size: 16px;
    color: #656565;
    font-weight: 600;
    margin-right:15px;
}

.summary-value {
    font-size: 18px;
    color: #333;
    font-weight: 700;
}

.summary-value.discount {
    color: #ff6c0f;
}

.summary-divider {
    height: 1px;
    background: #e6e6e6;
    margin: 12px 0;
}


.summary-row.total-row .summary-label {
    font-size: 20px;
    color: #333;
    font-weight: 800;
}

.summary-row.total-row .summary-value {
    font-size: 28px;
    color: #ff6c0f;
    font-weight: 800;
}

/* 약관동의 */
.agreement-section {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    animation: fadeInUp 0.6s ease 0.5s backwards;
}

.agreement-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

/* 전체 동의 */
.agreement-item.all-agree {
    border-radius: 12px;
    margin-bottom: 20px;
}

.agreement-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.agreement-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    flex: 1;
}

.agreement-checkbox {
    display: none;
}

.checkbox-custom {
    width: 24px;
    height: 24px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
}

.agreement-checkbox:checked+.checkbox-custom {
    background-color: #ff6c0f;
    border-color: #ff6c0f;
}

.agreement-checkbox:checked+.checkbox-custom::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 6px;
    height: 11px;
    border: solid white;
    border-width: 0 3px 3px 0;
}

.agreement-text {
    font-size: 15px;
    color: #333;
    font-weight: 600;
}

.agreement-divider {
    height: 2px;
    background-color: #f0f0f0;
    margin: 20px 0;
}

/* 약관 텍스트 박스 */
.terms-box {
    max-height: 200px;
    overflow-y: auto;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin: 12px 0 24px 0;
    scrollbar-width: thin;
    scrollbar-color: #d0d0d0 #f5f5f5;
}

.terms-box::-webkit-scrollbar {
    width: 8px;
}

.terms-box::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 10px;
}

.terms-box::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 10px;
}

.terms-box::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0;
}

.terms-content h4 {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    margin-top: 16px;
}

.terms-content h4:first-child {
    margin-top: 0;
}

.terms-content p {
    font-size: 13px;
    color: #656565;
    line-height: 1.6;
    margin-bottom: 8px;
}

/* 결제방법 */
.payment-section {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    animation: fadeInUp 0.6s ease 0.6s backwards;
}

.payment-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.payment-options {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background-color: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 140px;
}

.payment-option:hover {
    background-color: #fff5ed;
    border-color: #ff6c0f;
    transform: translateY(-2px);
}

.payment-radio {
    display: none;
}

.radio-custom {
    width: 22px;
    height: 22px;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
    background-color: #ffffff;
}

.payment-radio:checked+.radio-custom {
    border-color: #ff6c0f;
    background-color: #ff6c0f;
}

.payment-radio:checked+.radio-custom::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: #ffffff;
    border-radius: 50%;
}

.payment-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.payment-text svg {
    color: #656565;
    flex-shrink: 0;
}

.section-grid-wrap {
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap:30px;
}

/* 총 결제금액 */
.total-section {
    background: #fff5ed;
    border: 3px solid #ff6c0f;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 30px;
    animation: fadeInUp 0.6s ease 0.7s backwards;
}

.total-row {
    display: flex;
    justify-content: flex-end;
    gap:15px;
    align-items: center;
}

.total-label {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.total-amount {
    font-size: 28px;
    font-weight: 800;
    color: #ff6c0f;
}

/* 결제하기 버튼 */
.submit-section {
    text-align: center;
    animation: fadeInUp 0.6s ease 0.8s backwards;
}

.submit-button {
    padding: 18px 80px;
    background: #ff6c0f;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
}

.submit-button:hover {
    opacity: 0.9;
}

.submit-button:active {
    opacity: 0.8;
}

.submit-button.btn-inactive {
    background: #ff6c0f;
    cursor: pointer;
}

.submit-button.btn-inactive:hover {
    opacity: 0.9;
}

.submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}



/* 결제수단 섹션 */
.payment-method-section {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.payment-method-section .section-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 16px;
}

.payment-method-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.payment-method-info {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #333;
    font-size: 15px;
}

.payment-method-info svg {
    color: #4A7DFF;
}

.btn-change-card {
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #666;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-change-card:hover {
    background: #f5f5f5;
    color: #333;
}

.no-payment-method {
    text-align: center;
    padding: 24px;
    background: #fff8e6;
    border: 1px dashed #ffe5a0;
    border-radius: 12px;
}

.no-payment-method p {
    color: #666;
    margin: 0 0 12px;
    font-size: 14px;
}

.btn-register-card {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #666;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-register-card:hover {
    background: #3a6de8;
}



/* 반응형 디자인 */
@media (max-width: 1200px) {
    .ticket-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 24px;
    }

    .section-grid-wrap {
        grid-template-columns: 1fr;
    }


}

@media (max-width: 768px) {

    .agreement-section {
        padding:15px;
    }

    .ticket-card .period-discount {
        top: 10px;
        right: 10px;
        padding: 4px 10px;
        font-size: 11px;
    }

    .summary-row {
        padding: 5px 0;
    }
    
    .payment-option-panel .panel-head {
        flex-direction: column;
        align-items: flex-start;
    }

    /* page-header 반응형은 mypage_common.css에서 처리 */

    .active-plan-date, .active-plan-remain {
        padding:5px 15px;
        font-size:14px;
    }

    .active-plan-info {
        gap:10px;
    }
    
    .btn-cancel-subscription {
        padding: 5px 12px;
        font-size: 11px;
    }

    .main-content {
        padding:20px;
    }

    .payment-method-section {
        padding:15px;
    }

    .payment-method-section {
        padding:15px;
    }

    .purchase-main {
        padding: 40px 20px 60px;
    }

    .active-plan-card {
        padding: 24px;
    }

    .active-plan-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        margin-bottom:10px;
    }

    .active-plan-badge {
        margin-bottom: 4px;
    }

    .active-plan-name {
        font-size: 19px;
    }

    .ticket-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ticket-card {
        padding: 24px 20px;
    }

    .badge-icon {
        height: 50px;
    }

    .ticket-name {
        font-size: 19px;
    }

    .period-label {
        min-height: 55px;
    }

    .period-checkbox:checked+.period-label::before {
        left: 10px;
        width: 20px;
        height: 20px;
        font-size: 14px;
    }

    .period-label .period-text {
        font-size: 14px;
    }

    .period-label .period-price {
        font-size: 15px;
    }

    .selected-header {
        padding: 20px 24px;
        gap: 10px;
    }

    .selected-title {
        font-size: 20px;
    }

    .selected-item {
        gap: 20px;
        padding: 24px;
    }

    .selected-item-left {
        width: 100%;
    }

    .selected-item-right {
        justify-content: space-between;
    }

    .selected-item-pricing {
        flex: 1;
    }

    .selected-summary {
        padding: 20px 24px;
    }

    .payment-options {
        flex-direction: column;
    }

    .payment-option {
        min-width: 0;
    }

    .submit-button {
        width: 100%;
        padding: 16px 50px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .purchase-main {
        padding: 30px 15px 50px;
    }

    .ticket-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .ticket-card {
        padding: 28px 22px;
    }

    .period-label {
        padding: 10px 12px 10px 38px;
        min-height: 50px;
    }

    .period-checkbox:checked+.period-label::before {
        left: 8px;
        width: 20px;
        height: 20px;
        font-size: 13px;
    }

    .ticket-card .period-discount {
        top: 8px;
        right: 8px;
        padding: 3px 8px;
        font-size: 10px;
    }

    .period-label .period-text {
        font-size: 13px;
    }

    .period-label .period-price {
        font-size: 14px;
    }

    .selected-header {
        padding: 18px 20px;
    }

    .selected-title {
        font-size: 18px;
        gap: 8px;
    }

    .selected-title svg {
        width: 22px;
        height: 22px;
    }

    .selected-count {
        font-size: 14px;
    }

    .selected-count strong {
        font-size: 20px;
    }

    .selected-item {
        padding: 20px;
    }

    .selected-item-left {
        gap: 14px;
    }

    .selected-item-badge {
        min-width: 75px;
        width: 75px;
        height: 75px;
        padding: 12px;
        border-radius: 16px;
    }

    .badge-text-sm {
        font-size: 11px;
    }

    .selected-item-name {
        font-size: 18px;
    }

    .selected-item-period-info {
        font-size: 14px;
    }

    .selected-item-date {
        font-size: 12px;
    }

    .final-price {
        font-size: 20px;
    }

    .selected-summary {
        padding: 18px 20px;
    }

    .summary-row.total-row .summary-label {
        font-size: 18px;
    }

    .summary-row.total-row .summary-value {
        font-size: 24px;
    }

    .notice-section,
    .agreement-section,
    .payment-section,
    .total-section {
        padding: 22px;
    }

    .total-label {
        font-size: 18px;
    }

    .total-amount {
        font-size: 24px;
    }

    .terms-box {
        max-height: 150px;
        padding: 16px;
    }
}
