@charset "utf-8";

/* ============================================
   텔레그램 프리미엄 가이드 - 구독 취소 & 환불 편
   접두사: tg-p05- (기존 사이트 오염 방지)
   컬러 톤: 앰버(Amber) + 딥 슬레이트
   v1.2.0 - 아이콘 깨짐 수정 / CSS 충돌 수정
============================================ */

/* ── CSS 변수 (디자인 토큰) ── */
:root {
    /* 주요 컬러: 앰버/오렌지 계열 */
    --p05-amber:         #d97706;
    --p05-amber-dark:    #b45309;
    --p05-amber-deep:    #78350f;
    --p05-amber-light:   #fffbeb;
    --p05-amber-border:  #fcd34d;
    --p05-amber-mid:     #fde68a;

    /* 액센트: 텔레그램 블루 */
    --p05-blue:          #0088cc;
    --p05-blue-light:    #e0f2fe;
    --p05-blue-border:   #38bdf8;

    /* 환불 플랫폼 색상 */
    --p05-apple:         #1c1c1e;
    --p05-google:        #ea4335;
    --p05-bot:           #0088cc;

    /* 모노 슬레이트 */
    --p05-slate-900:     #0f172a;
    --p05-slate-700:     #334155;
    --p05-slate-500:     #64748b;
    --p05-slate-300:     #cbd5e1;
    --p05-slate-200:     #e2e8f0;
    --p05-slate-100:     #f1f5f9;
    --p05-bg:            #fffbeb;
    --p05-white:         #ffffff;

    /* 공통 */
    --p05-radius:        14px;
    --p05-shadow:        0 2px 12px rgba(217, 119, 6, 0.08);
}

/* ============================================
   그누보드5 완전 리셋 (CSS 충돌 방지 필수)
   ⚠ ::before / ::after 에는 font-style 리셋 제외
     → Font Awesome pseudo-element 보호 목적
============================================ */
#tg-p05-wrapper,
#tg-p05-wrapper * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    text-decoration: none;
    list-style: none;
    background: none;
    font-style: normal;
}

/* ::before / ::after 는 box-sizing + margin/padding 만 리셋 */
#tg-p05-wrapper *::before,
#tg-p05-wrapper *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* h1~h6 리셋 */
#tg-p05-wrapper h1,
#tg-p05-wrapper h2,
#tg-p05-wrapper h3,
#tg-p05-wrapper h4,
#tg-p05-wrapper h5,
#tg-p05-wrapper h6 {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    line-height: inherit;
}

/* p 태그 여백 강제 보장 */
#tg-p05-wrapper p {
    margin-bottom: 14px !important;
    line-height: 1.7 !important;
}

#tg-p05-wrapper p:last-child {
    margin-bottom: 0 !important;
}

/* strong 태그 */
#tg-p05-wrapper strong {
    font-weight: 700;
    color: var(--p05-slate-900);
}

/* mark 태그 */
#tg-p05-wrapper mark {
    background: linear-gradient(120deg, var(--p05-amber-mid) 0%, #fbbf24 100%);
    color: var(--p05-amber-deep);
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

/* a 태그 */
#tg-p05-wrapper a {
    color: var(--p05-blue);
    text-decoration: underline;
    font-weight: 600;
}

#tg-p05-wrapper a:hover {
    color: var(--p05-amber);
}

/* ============================================
   래퍼 (최상위 컨테이너)
============================================ */
#tg-p05-wrapper.tg-p05-wrapper {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    color: var(--p05-slate-500);
    background-color: var(--p05-bg);
    line-height: 1.7;
    overflow: hidden;
    padding-bottom: 60px;
    text-align: left;   /* 그누보드5 전역 text-align:center 오염 차단 */
}

/* ============================================
   히어로 헤더
============================================ */
#tg-p05-wrapper .tg-p05-hero {
    background: linear-gradient(145deg, #1c0a00 0%, #78350f 30%, #d97706 70%, #fbbf24 100%) !important;
    color: var(--p05-white);
    padding: 56px 24px 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* 장식 원형 - 우상단 */
#tg-p05-wrapper .tg-p05-hero::before {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    border: 70px solid rgba(251, 191, 36, 0.07);
    border-radius: 50%;
    top: -120px;
    right: -120px;
    pointer-events: none;
}

/* 장식 원형 - 좌하단 */
#tg-p05-wrapper .tg-p05-hero::after {
    content: "";
    position: absolute;
    width: 250px;
    height: 250px;
    border: 50px solid rgba(0, 136, 204, 0.06);
    border-radius: 50%;
    bottom: -70px;
    left: -60px;
    pointer-events: none;
}

#tg-p05-wrapper .tg-p05-hero__inner {
    position: relative;
    z-index: 1;
}

#tg-p05-wrapper .tg-p05-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.25) 0%, rgba(56, 189, 248, 0.12) 100%);
    color: var(--p05-blue-border);
    font-size: 13px;
    font-weight: 700;
    padding: 7px 18px;
    border-radius: 100px;
    margin-bottom: 20px;
    border: 1px solid rgba(56, 189, 248, 0.25);
    backdrop-filter: blur(4px);
}

#tg-p05-wrapper .tg-p05-hero__title {
    font-size: 26px;
    font-weight: 900;
    line-height: 1.35;
    margin-bottom: 16px;
    color: var(--p05-white);
}

#tg-p05-wrapper .tg-p05-hero__title--accent {
    color: var(--p05-amber-border);
}

#tg-p05-wrapper .tg-p05-hero__desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    max-width: 520px;
    margin: 0 auto 32px;
}

/* 히어로 플로우 비주얼 */
#tg-p05-wrapper .tg-p05-hero__flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

#tg-p05-wrapper .tg-p05-hero__flow-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 14px 20px;
    min-width: 100px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s ease;
}

#tg-p05-wrapper .tg-p05-hero__flow-item:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-3px);
}

#tg-p05-wrapper .tg-p05-hero__flow-item i {
    font-size: 22px;
    color: var(--p05-amber-border);
}

/* 강조 플로우 아이템 */
#tg-p05-wrapper .tg-p05-hero__flow-item--accent {
    background: rgba(252, 211, 77, 0.15) !important;
    border-color: rgba(252, 211, 77, 0.35) !important;
    color: var(--p05-white) !important;
}

#tg-p05-wrapper .tg-p05-hero__flow-item--accent i {
    color: var(--p05-amber-border) !important;
}

#tg-p05-wrapper .tg-p05-hero__flow-arrow {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
}

/* ============================================
   메인 레이아웃
============================================ */
#tg-p05-wrapper .tg-p05-main {
    padding: 28px 20px 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* ============================================
   도입부 섹션
============================================ */
#tg-p05-wrapper .tg-p05-intro {
    background-color: var(--p05-white);
    padding: 26px 22px;
    border-radius: var(--p05-radius);
    border-left: 4px solid var(--p05-amber);
    box-shadow: var(--p05-shadow);
    text-align: left; /* 좌측 정렬 유지 */
}

#tg-p05-wrapper .tg-p05-intro p {
    font-size: 15px;
    color: var(--p05-slate-700);
}

/* ============================================
   섹션 공통
============================================ */
#tg-p05-wrapper .tg-p05-section {
    background-color: var(--p05-white);
    padding: 32px 22px;
    border-radius: var(--p05-radius);
    box-shadow: var(--p05-shadow);
    border: 1px solid var(--p05-slate-200);
    text-align: left; /* 섹션 내부 순수 좌측 정렬 보장 */
}

/* 팁 섹션 변형 */
#tg-p05-wrapper .tg-p05-section--tip {
    background-color: var(--p05-blue-light) !important;
    border-color: var(--p05-blue-border) !important;
}

/* 마무리 섹션 변형 (dark gradient) */
#tg-p05-wrapper .tg-p05-section--summary {
    background: linear-gradient(145deg, #1c0a00 0%, #78350f 50%, #d97706 100%) !important;
    border: none !important;
    color: var(--p05-white);
}

/* summary 내부 strong은 어두운 배경 위 → 흰색 보정 */
#tg-p05-wrapper .tg-p05-section--summary strong {
    color: var(--p05-amber-border) !important;
}

#tg-p05-wrapper .tg-p05-section__head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}

#tg-p05-wrapper .tg-p05-section__num {
    font-size: 36px;
    font-weight: 900;
    color: var(--p05-amber);
    opacity: 0.2;
    line-height: 1;
    flex-shrink: 0;
}

#tg-p05-wrapper .tg-p05-section__title {
    font-size: 19px;
    font-weight: 800;
    color: var(--p05-slate-900);
    line-height: 1.3;
    padding-top: 6px;
}

#tg-p05-wrapper .tg-p05-section__desc {
    font-size: 15px;
    color: var(--p05-slate-700);
    margin-bottom: 22px !important;
}

/* ============================================
   카드 그리드 (필수 확인 사항)
============================================ */
#tg-p05-wrapper .tg-p05-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

#tg-p05-wrapper .tg-p05-card {
    background: var(--p05-slate-100);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid var(--p05-slate-200);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#tg-p05-wrapper .tg-p05-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.1);
}

#tg-p05-wrapper .tg-p05-card__icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--p05-amber), var(--p05-amber-dark));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    color: var(--p05-white);
    font-size: 18px;
    flex-shrink: 0;
}

#tg-p05-wrapper .tg-p05-card__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--p05-slate-900);
    margin-bottom: 8px !important;
}

#tg-p05-wrapper .tg-p05-card__text {
    font-size: 14px;
    color: var(--p05-slate-500);
}

/* ============================================
   탭 UI (기기별 취소 방법)
============================================ */
#tg-p05-wrapper .tg-p05-tabs {
    display: flex;
    gap: 4px;
    background: var(--p05-slate-100);
    padding: 5px;
    border-radius: 12px;
    margin-bottom: 22px;
}

#tg-p05-wrapper .tg-p05-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px 8px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    color: var(--p05-slate-500);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

#tg-p05-wrapper .tg-p05-tab i {
    font-size: 15px;
}

#tg-p05-wrapper .tg-p05-tab--active {
    background: var(--p05-white);
    color: var(--p05-amber-dark);
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

#tg-p05-wrapper .tg-p05-tab:hover:not(.tg-p05-tab--active) {
    background: var(--p05-slate-200);
    color: var(--p05-slate-700);
}

/* 탭 패널 */
#tg-p05-wrapper .tg-p05-tab-panel {
    display: none;
    animation: tg-p05-fadein 0.3s ease;
}

#tg-p05-wrapper .tg-p05-tab-panel--active {
    display: block;
}

@keyframes tg-p05-fadein {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* 패널 헤더 (기기명 표시) */
#tg-p05-wrapper .tg-p05-panel-head {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--p05-amber-light);
    border: 1px solid var(--p05-amber-mid);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 18px;
}

#tg-p05-wrapper .tg-p05-panel-head i {
    font-size: 20px;
    color: var(--p05-amber);
}

#tg-p05-wrapper .tg-p05-panel-head__name {
    font-size: 15px;
    font-weight: 700;
    color: var(--p05-amber-deep);
}

/* ============================================
   스텝 리스트
============================================ */
#tg-p05-wrapper .tg-p05-step-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

#tg-p05-wrapper .tg-p05-step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

#tg-p05-wrapper .tg-p05-step__num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--p05-amber), var(--p05-amber-dark));
    color: var(--p05-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    margin-top: 2px;
}

#tg-p05-wrapper .tg-p05-step__text {
    font-size: 15px;
    color: var(--p05-slate-700);
    line-height: 1.65 !important;
    margin-bottom: 0 !important;
}

#tg-p05-wrapper .tg-p05-step__text strong {
    color: var(--p05-amber-dark);
}

/* ============================================
   환불 플랫폼 항목
============================================ */
#tg-p05-wrapper .tg-p05-refund-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

#tg-p05-wrapper .tg-p05-refund-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    border: 1px solid var(--p05-slate-200);
    border-radius: 10px;
    padding: 18px;
    background: var(--p05-slate-100);
    transition: transform 0.2s, box-shadow 0.2s;
}

#tg-p05-wrapper .tg-p05-refund-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(217, 119, 6, 0.09);
}

#tg-p05-wrapper .tg-p05-refund-item__icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

#tg-p05-wrapper .tg-p05-refund-item__icon--apple  { background: #f3f4f6; color: #1c1c1e; }
#tg-p05-wrapper .tg-p05-refund-item__icon--google { background: #fef2f2; color: #ea4335; }
#tg-p05-wrapper .tg-p05-refund-item__icon--bot    { background: #e0f2fe; color: #0088cc; }

#tg-p05-wrapper .tg-p05-refund-item__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--p05-slate-900);
    display: block;
    margin-bottom: 5px !important;
}

#tg-p05-wrapper .tg-p05-refund-item__text {
    font-size: 14px;
    color: var(--p05-slate-500);
    line-height: 1.65 !important;
    margin-bottom: 0 !important;
}

/* ============================================
   팁 섹션 (직장인 활용 팁)
============================================ */
#tg-p05-wrapper .tg-p05-tip-inner {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

#tg-p05-wrapper .tg-p05-tip-inner i {
    color: var(--p05-blue);
    font-size: 22px;
    margin-top: 2px;
    flex-shrink: 0;
}

#tg-p05-wrapper .tg-p05-tip-inner .tg-p05-tip__label {
    font-size: 13px;
    font-weight: 700;
    color: var(--p05-blue);
    background: var(--p05-blue-light);
    border-radius: 5px;
    padding: 2px 8px;
    display: inline-block;
    margin-bottom: 8px !important;
}

#tg-p05-wrapper .tg-p05-tip-inner p {
    font-size: 14.5px;
    color: var(--p05-slate-700);
}

/* ============================================
   마무리 요약 섹션
============================================ */
#tg-p05-wrapper .tg-p05-summary__title {
    font-size: 20px;
    font-weight: 800;
    color: var(--p05-white);
    margin-bottom: 20px !important;
    text-align: center;
}

#tg-p05-wrapper .tg-p05-summary__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 520px;
    margin: 0 auto;
}

#tg-p05-wrapper .tg-p05-summary__list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.88);
}

#tg-p05-wrapper .tg-p05-summary__list li i {
    color: var(--p05-amber-border);
    margin-top: 2px;
    flex-shrink: 0;
}

#tg-p05-wrapper .tg-p05-summary__footer {
    text-align: center;
    margin-top: 22px !important;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0 !important;
}

/* ============================================
   스크롤 등장 애니메이션
============================================ */
#tg-p05-wrapper .tg-p05-motion {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

#tg-p05-wrapper .tg-p05-motion.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   반응형 (모바일 퍼스트 기준)
============================================ */
@media (min-width: 600px) {
    #tg-p05-wrapper .tg-p05-cards {
        grid-template-columns: 1fr 1fr;
    }

    #tg-p05-wrapper .tg-p05-tab {
        font-size: 14px;
        padding: 12px 10px;
    }
}

@media (min-width: 900px) {
    #tg-p05-wrapper .tg-p05-hero {
        padding: 72px 48px 80px;
    }

    #tg-p05-wrapper .tg-p05-hero__title {
        font-size: 36px;
    }

    #tg-p05-wrapper .tg-p05-main {
        padding: 40px 48px 0;
    }

    #tg-p05-wrapper .tg-p05-section {
        padding: 40px 36px;
    }

    #tg-p05-wrapper .tg-p05-tab {
        font-size: 15px;
        padding: 13px 14px;
    }
}
