/*
 * tips257/style.css  v1.0.0
 * 텔레그램 공유 폴더(Shareable Folders) 완벽 가이드 전용 스타일
 * 그누보드5 완전 격리 | BEM 네이밍 | 모바일 퍼스트
 * 테마: 바이올렛·퍼플 (공유·연결·협업)
 */

/* ==============================================
   그누보드5 CSS 충돌 완전 방지 리셋
   ============================================== */
#tg-257-wrapper,
#tg-257-wrapper *,
#tg-257-wrapper *::before,
#tg-257-wrapper *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    text-decoration: none;
    list-style: none;
    background: none;
    font-style: normal;
}

#tg-257-wrapper h1,
#tg-257-wrapper h2,
#tg-257-wrapper h3,
#tg-257-wrapper h4,
#tg-257-wrapper h5,
#tg-257-wrapper h6 {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    line-height: 1.3;
}

#tg-257-wrapper p {
    margin-bottom: 14px !important;
    line-height: 1.75 !important;
}
#tg-257-wrapper p:last-child {
    margin-bottom: 0 !important;
}

/* ==============================================
   CSS 변수 (Design Tokens)
   ============================================== */
#tg-257-wrapper {
    --violet-400: #a78bfa;
    --violet-500: #8b5cf6;
    --violet-600: #7c3aed;
    --violet-700: #6d28d9;
    --violet-800: #5b21b6;
    --purple-500: #a855f7;
    --purple-600: #9333ea;
    --blue-600:   #2283dd;
    --green-500:  #22c55e;
    --green-700:  #15803d;
    --amber-500:  #f59e0b;
    --amber-600:  #d97706;
    --red-500:    #ef4444;
    --slate-50:   #f8fafc;
    --slate-100:  #f1f5f9;
    --slate-200:  #e2e8f0;
    --slate-300:  #cbd5e1;
    --slate-400:  #94a3b8;
    --slate-500:  #64748b;
    --slate-700:  #334155;
    --slate-800:  #1e293b;
    --slate-900:  #0f172a;
    --text-main:  #1e293b;
    --text-sub:   #475569;
    --border-r:   14px;
    --shadow-md:  0 4px 20px rgba(0,0,0,0.07);
    --shadow-violet: 0 8px 28px rgba(124,58,237,0.12);
}

/* ==============================================
   최상위 래퍼 (와이드 1100px)
   ============================================== */
#tg-257-wrapper.tg-257-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    font-family: 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
    color: var(--text-main);
    line-height: 1.75;
    background-color: var(--slate-50);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(124,58,237,0.08);
}

/* ==============================================
   히어로 헤더 (바이올렛·퍼플 그라데이션)
   ============================================== */
#tg-257-wrapper .tg-257-hero {
    position: relative;
    background: linear-gradient(135deg, #6d28d9 0%, #4c1d95 60%, #2e1065 100%);
    padding: 52px 24px 52px;
    text-align: center;
    overflow: hidden;
}

#tg-257-wrapper .tg-257-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 75% 20%, rgba(167,139,250,0.18) 0%, transparent 55%),
                radial-gradient(circle at 20% 80%, rgba(168,85,247,0.12) 0%, transparent 50%);
    pointer-events: none;
}

#tg-257-wrapper .tg-257-hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 40px;
    background: var(--slate-50);
    clip-path: ellipse(55% 100% at 50% 100%);
}

#tg-257-wrapper .tg-257-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

#tg-257-wrapper .tg-257-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.18) !important;
    color: #fff !important;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.25);
}

/* ── 히어로 폴더 애니메이션 ── */
#tg-257-wrapper .tg-257-hero__folder-anim {
    display: flex;
    align-items: center;
    gap: 16px;
}

#tg-257-wrapper .tg-257-hero__folder {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: rgba(255,255,255,0.15) !important;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 16px;
    font-size: 2.2rem;
    color: #fff !important;
}

#tg-257-wrapper .tg-257-hero__folder-items {
    position: absolute;
    top: -8px;
    right: -10px;
    display: flex;
    gap: 2px;
}

#tg-257-wrapper .tg-257-hero__folder-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--violet-500) !important;
    border-radius: 50%;
    font-size: 0.6rem;
    color: #fff !important;
    animation: tg257-pop 2s ease-in-out infinite;
}

#tg-257-wrapper .tg-257-hero__folder-item--2 {
    animation-delay: 0.3s;
    background: var(--purple-500) !important;
}

#tg-257-wrapper .tg-257-hero__folder-item--3 {
    animation-delay: 0.6s;
    background: var(--violet-400) !important;
}

@keyframes tg257-pop {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

#tg-257-wrapper .tg-257-hero__link-icon,
#tg-257-wrapper .tg-257-hero__share-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.12) !important;
    border: 2px solid rgba(255,255,255,0.28);
    border-radius: 14px;
    font-size: 1.6rem;
    color: #fff !important;
}

#tg-257-wrapper .tg-257-hero__share-icon {
    background: rgba(255,255,255,0.22) !important;
    border-color: rgba(255,255,255,0.45);
    animation: tg257-pulse 2.5s ease-in-out infinite;
}

@keyframes tg257-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.2); }
    50% { box-shadow: 0 0 0 12px rgba(255,255,255,0); }
}

#tg-257-wrapper .tg-257-hero__flow-arrow {
    color: rgba(255,255,255,0.45) !important;
    font-size: 1.1rem;
}

#tg-257-wrapper .tg-257-hero__title {
    font-size: 1.6rem;
    font-weight: 900;
    color: #fff !important;
    line-height: 1.35;
    word-break: keep-all;
}

#tg-257-wrapper .tg-257-hero__subtitle {
    font-size: 0.97rem;
    color: rgba(255,255,255,0.88) !important;
    word-break: keep-all;
    max-width: 700px;
    margin-bottom: 0 !important;
}

#tg-257-wrapper .tg-257-hero__tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

#tg-257-wrapper .tg-257-hero__tag {
    background: rgba(255,255,255,0.12) !important;
    color: rgba(255,255,255,0.92) !important;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 4px 13px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);
}

/* ==============================================
   메인 콘텐츠
   ============================================== */
#tg-257-wrapper .tg-257-main {
    background: #fff;
    padding: 48px 20px 40px;
    display: flex;
    flex-direction: column;
    gap: 44px;
}

/* ==============================================
   도입부
   ============================================== */
#tg-257-wrapper .tg-257-intro {
    background: var(--slate-50) !important;
    border: 1px solid var(--slate-200);
    border-radius: var(--border-r);
    padding: 28px 24px;
    text-align: left;
}

#tg-257-wrapper .tg-257-intro__icon {
    margin-bottom: 12px;
    font-size: 2rem;
    color: var(--amber-500);
    text-align: center;
}

#tg-257-wrapper .tg-257-intro__heading {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--violet-600) !important;
    margin-bottom: 14px;
    text-align: center;
}

#tg-257-wrapper .tg-257-intro p {
    font-size: 0.97rem;
    color: var(--text-sub) !important;
    word-break: keep-all;
    text-align: left;
}

#tg-257-wrapper .tg-257-intro p strong {
    color: var(--violet-700) !important;
}

/* ==============================================
   섹션 공통
   ============================================== */
#tg-257-wrapper .tg-257-section__label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--violet-600) !important;
    color: #fff !important;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}

#tg-257-wrapper .tg-257-section__label--demo {
    background: var(--purple-600) !important;
}

#tg-257-wrapper .tg-257-section__label--tips {
    background: var(--amber-600) !important;
}

#tg-257-wrapper .tg-257-section__title {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--slate-800) !important;
    border-left: 4px solid var(--violet-500);
    padding-left: 14px;
    margin-bottom: 18px;
    line-height: 1.4;
    word-break: keep-all;
}

#tg-257-wrapper .tg-257-section p {
    font-size: 0.97rem;
    color: var(--text-sub) !important;
    word-break: keep-all;
    text-align: left;
}

#tg-257-wrapper .tg-257-section p strong {
    color: var(--violet-700) !important;
    font-weight: 700;
}

/* ==============================================
   기능 카드 (클릭 확장형)
   ============================================== */
#tg-257-wrapper .tg-257-feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 22px;
}

#tg-257-wrapper .tg-257-feature-card {
    position: relative;
    background: var(--slate-50) !important;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
}

#tg-257-wrapper .tg-257-feature-card:hover {
    border-color: var(--violet-400);
    box-shadow: var(--shadow-violet);
}

#tg-257-wrapper .tg-257-feature-card.is-expanded {
    border-color: var(--violet-500);
}

#tg-257-wrapper .tg-257-feature-card__header {
    padding: 18px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#tg-257-wrapper .tg-257-feature-card__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: var(--violet-600) !important;
    color: #fff !important;
    font-size: 0.75rem;
    font-weight: 900;
    border-radius: 50%;
    flex-shrink: 0;
}

#tg-257-wrapper .tg-257-feature-card__icon {
    font-size: 1.3rem;
    color: var(--violet-500);
    flex-shrink: 0;
}

#tg-257-wrapper .tg-257-feature-card__header strong {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--slate-800) !important;
    flex: 1;
}

#tg-257-wrapper .tg-257-feature-card__arrow {
    color: var(--slate-400) !important;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

#tg-257-wrapper .tg-257-feature-card.is-expanded .tg-257-feature-card__arrow {
    transform: rotate(180deg);
}

#tg-257-wrapper .tg-257-feature-card__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 16px;
}

#tg-257-wrapper .tg-257-feature-card.is-expanded .tg-257-feature-card__body {
    max-height: 300px;
    padding: 0 16px 18px;
}

#tg-257-wrapper .tg-257-feature-card__body p {
    font-size: 0.9rem;
    color: var(--text-sub) !important;
    margin-bottom: 0 !important;
}

#tg-257-wrapper .tg-257-feature-card__body p strong {
    color: var(--violet-600) !important;
}

/* ==============================================
   탭 전환 UI
   ============================================== */
#tg-257-wrapper .tg-257-tab-group {
    display: flex;
    gap: 0;
    margin-top: 22px;
    margin-bottom: 0;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    border: 1px solid var(--slate-200);
    border-bottom: none;
}

#tg-257-wrapper .tg-257-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 12px;
    background: var(--slate-100) !important;
    color: var(--text-sub) !important;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
    border-right: 1px solid var(--slate-200);
}

#tg-257-wrapper .tg-257-tab-btn:last-child {
    border-right: none;
}

#tg-257-wrapper .tg-257-tab-btn:hover {
    background: var(--slate-200) !important;
}

#tg-257-wrapper .tg-257-tab-btn--active {
    background: var(--violet-600) !important;
    color: #fff !important;
}

#tg-257-wrapper .tg-257-tab-btn--active:hover {
    background: var(--violet-700) !important;
}

#tg-257-wrapper .tg-257-tab-btn i {
    font-size: 1.1rem;
}

/* ── 탭 패널 ── */
#tg-257-wrapper .tg-257-tab-panel {
    display: none;
    background: var(--slate-50) !important;
    border: 1px solid var(--slate-200);
    border-top: 3px solid var(--violet-500);
    border-radius: 0 0 var(--border-r) var(--border-r);
    padding: 22px 20px;
    text-align: left;
    animation: tg257-fadeIn 0.35s ease;
}

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

@keyframes tg257-fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

#tg-257-wrapper .tg-257-tab-panel__header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

#tg-257-wrapper .tg-257-tab-panel__icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    flex-shrink: 0;
    font-size: 1.6rem;
    color: #fff !important;
}

#tg-257-wrapper .tg-257-tab-panel__icon-wrap--pc {
    background: linear-gradient(135deg, #2283dd, #005bb5) !important;
}

#tg-257-wrapper .tg-257-tab-panel__icon-wrap--android {
    background: linear-gradient(135deg, #22c55e, #15803d) !important;
}

#tg-257-wrapper .tg-257-tab-panel__icon-wrap--ios {
    background: linear-gradient(135deg, #64748b, #334155) !important;
}

#tg-257-wrapper .tg-257-tab-panel__title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--slate-800) !important;
    margin-bottom: 4px;
}

#tg-257-wrapper .tg-257-tab-panel__desc {
    font-size: 0.88rem;
    color: var(--text-sub) !important;
    word-break: keep-all;
    line-height: 1.55;
    margin-bottom: 0 !important;
}

/* ==============================================
   프로그레스 바
   ============================================== */
#tg-257-wrapper .tg-257-progress {
    margin-bottom: 18px;
}

#tg-257-wrapper .tg-257-progress__bar {
    height: 6px;
    background: var(--slate-200) !important;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

#tg-257-wrapper .tg-257-progress__fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--violet-500), var(--purple-500)) !important;
    border-radius: 3px;
    transition: width 0.4s ease;
}

#tg-257-wrapper .tg-257-progress__label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--slate-500) !important;
    text-align: right;
}

/* ==============================================
   인터랙티브 단계 목록
   ============================================== */
#tg-257-wrapper .tg-257-steps {
    counter-reset: step257;
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 16px;
    text-align: left;
}

#tg-257-wrapper .tg-257-steps__item {
    counter-increment: step257;
    position: relative;
    padding: 10px 12px 10px 36px;
    font-size: 0.9rem;
    color: var(--text-sub) !important;
    line-height: 1.55;
    background: #fff !important;
    border: 1px solid var(--slate-200);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.25s ease, border-color 0.25s ease;
}

#tg-257-wrapper .tg-257-steps__item.is-checked {
    background: linear-gradient(135deg, #f5f3ff, #ede9fe) !important;
    border-color: var(--violet-400);
}

#tg-257-wrapper .tg-257-steps__item::before {
    content: counter(step257);
    position: absolute;
    left: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--violet-600) !important;
    color: #fff !important;
    font-size: 0.65rem;
    font-weight: 900;
    border-radius: 50%;
    flex-shrink: 0;
}

#tg-257-wrapper .tg-257-steps__item.is-checked::before {
    background: var(--green-500) !important;
}

#tg-257-wrapper .tg-257-steps__content {
    flex: 1;
}

#tg-257-wrapper .tg-257-steps__item strong {
    color: var(--violet-700) !important;
    font-weight: 700;
}

/* 체크 버튼 */
#tg-257-wrapper .tg-257-steps__check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--slate-200) !important;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
    font-family: inherit;
    font-size: 0.7rem;
    color: var(--slate-500) !important;
}

#tg-257-wrapper .tg-257-steps__check:hover {
    background: var(--violet-400) !important;
    color: #fff !important;
    transform: scale(1.1);
}

#tg-257-wrapper .tg-257-steps__item.is-checked .tg-257-steps__check {
    background: var(--green-500) !important;
    color: #fff !important;
}

/* ==============================================
   링크 복사 시뮬레이션
   ============================================== */
#tg-257-wrapper .tg-257-link-demo__box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff !important;
    border: 2px dashed var(--violet-400);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.88rem;
}

#tg-257-wrapper .tg-257-link-demo__box > i {
    color: var(--violet-500) !important;
    font-size: 1rem;
    flex-shrink: 0;
}

#tg-257-wrapper .tg-257-link-demo__url {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--violet-700) !important;
    word-break: break-all;
}

#tg-257-wrapper .tg-257-link-demo__copy {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--violet-600) !important;
    color: #fff !important;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

#tg-257-wrapper .tg-257-link-demo__copy:hover {
    background: var(--violet-700) !important;
    transform: scale(1.05);
}

#tg-257-wrapper .tg-257-link-demo__copy.is-copied {
    background: var(--green-500) !important;
}

/* ==============================================
   폴더 시뮬레이션 데모
   ============================================== */
#tg-257-wrapper .tg-257-folder-demo {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#tg-257-wrapper .tg-257-folder-demo__folder {
    background: #fff !important;
    border: 2px solid var(--slate-200);
    border-radius: var(--border-r);
    overflow: hidden;
    transition: border-color 0.3s ease;
}

#tg-257-wrapper .tg-257-folder-demo__folder.is-open {
    border-color: var(--violet-500);
}

#tg-257-wrapper .tg-257-folder-demo__folder-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 18px;
    background: linear-gradient(135deg, #f5f3ff, #ede9fe) !important;
    cursor: pointer;
    transition: background 0.3s ease;
    user-select: none;
}

#tg-257-wrapper .tg-257-folder-demo__folder-tab:hover {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe) !important;
}

#tg-257-wrapper .tg-257-folder-demo__folder-tab > i:first-child {
    font-size: 1.4rem;
    color: var(--violet-600) !important;
}

#tg-257-wrapper .tg-257-folder-demo__folder-tab > span {
    flex: 1;
    font-size: 1rem;
    font-weight: 800;
    color: var(--slate-800) !important;
}

#tg-257-wrapper .tg-257-folder-demo__toggle-icon {
    color: var(--slate-400) !important;
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

#tg-257-wrapper .tg-257-folder-demo__folder.is-open .tg-257-folder-demo__toggle-icon {
    transform: rotate(180deg);
}

#tg-257-wrapper .tg-257-folder-demo__folder-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s ease;
}

#tg-257-wrapper .tg-257-folder-demo__folder.is-open .tg-257-folder-demo__folder-body {
    max-height: 400px;
}

/* 대화방 아이템 */
#tg-257-wrapper .tg-257-folder-demo__room {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--slate-100);
    transition: background 0.2s ease;
}

#tg-257-wrapper .tg-257-folder-demo__room:last-child {
    border-bottom: none;
}

#tg-257-wrapper .tg-257-folder-demo__room:hover {
    background: var(--slate-50) !important;
}

#tg-257-wrapper .tg-257-folder-demo__room-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1rem;
    color: #fff !important;
    flex-shrink: 0;
}

#tg-257-wrapper .tg-257-folder-demo__room-icon--group {
    background: var(--violet-500) !important;
}

#tg-257-wrapper .tg-257-folder-demo__room-icon--channel {
    background: var(--purple-600) !important;
}

#tg-257-wrapper .tg-257-folder-demo__room-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

#tg-257-wrapper .tg-257-folder-demo__room-info strong {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--slate-800) !important;
}

#tg-257-wrapper .tg-257-folder-demo__room-info span {
    font-size: 0.75rem;
    color: var(--slate-400) !important;
}

/* 커스텀 체크박스 */
#tg-257-wrapper .tg-257-folder-demo__check {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
}

#tg-257-wrapper .tg-257-folder-demo__check input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

#tg-257-wrapper .tg-257-folder-demo__checkmark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--slate-200) !important;
    border-radius: 6px;
    transition: background 0.2s ease, transform 0.2s ease;
}

#tg-257-wrapper .tg-257-folder-demo__check input:checked + .tg-257-folder-demo__checkmark {
    background: var(--violet-600) !important;
}

#tg-257-wrapper .tg-257-folder-demo__checkmark::after {
    content: '✓';
    font-size: 0.75rem;
    font-weight: 900;
    color: transparent;
    transition: color 0.2s ease;
}

#tg-257-wrapper .tg-257-folder-demo__check input:checked + .tg-257-folder-demo__checkmark::after {
    color: #fff;
}

/* 선택 결과 */
#tg-257-wrapper .tg-257-folder-demo__result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    background: var(--slate-50) !important;
    border: 1px solid var(--slate-200);
    border-radius: 10px;
    padding: 14px 18px;
}

#tg-257-wrapper .tg-257-folder-demo__result p {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main) !important;
    margin-bottom: 0 !important;
    display: flex;
    align-items: center;
    gap: 6px;
}

#tg-257-wrapper .tg-257-folder-demo__result p i {
    color: var(--violet-500) !important;
}

#tg-257-wrapper .tg-257-folder-demo__result p strong {
    color: var(--violet-600) !important;
    font-weight: 900;
    font-size: 1.1rem;
}

#tg-257-wrapper .tg-257-folder-demo__share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--violet-600) !important;
    color: #fff !important;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

#tg-257-wrapper .tg-257-folder-demo__share-btn:hover {
    background: var(--violet-700) !important;
    transform: scale(1.03);
}

#tg-257-wrapper .tg-257-folder-demo__share-btn.is-shared {
    background: var(--green-500) !important;
}

/* ==============================================
   아코디언 (활용 팁)
   ============================================== */
#tg-257-wrapper .tg-257-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

#tg-257-wrapper .tg-257-accordion__item {
    background: var(--slate-50) !important;
    border: 1px solid var(--slate-200);
    border-radius: var(--border-r);
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#tg-257-wrapper .tg-257-accordion__item.is-open {
    border-color: var(--violet-400);
    box-shadow: var(--shadow-violet);
}

#tg-257-wrapper .tg-257-accordion__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 18px;
    width: 100%;
    background: none !important;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}

#tg-257-wrapper .tg-257-accordion__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #f5f3ff, #ede9fe) !important;
    border-radius: 10px;
    font-size: 1.1rem;
    color: var(--violet-600) !important;
    flex-shrink: 0;
}

#tg-257-wrapper .tg-257-accordion__title {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--slate-800) !important;
}

#tg-257-wrapper .tg-257-accordion__arrow {
    color: var(--slate-400) !important;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

#tg-257-wrapper .tg-257-accordion__item.is-open .tg-257-accordion__arrow {
    transform: rotate(180deg);
}

#tg-257-wrapper .tg-257-accordion__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s ease, padding 0.45s ease;
    padding: 0 18px;
}

#tg-257-wrapper .tg-257-accordion__item.is-open .tg-257-accordion__body {
    max-height: 600px;
    padding: 0 18px 20px;
}

#tg-257-wrapper .tg-257-accordion__body p {
    font-size: 0.9rem;
    color: var(--text-sub) !important;
}

#tg-257-wrapper .tg-257-accordion__body p strong {
    color: var(--violet-600) !important;
}

/* 아코디언 비주얼: 권한 분리 뱃지 */
#tg-257-wrapper .tg-257-accordion__visual {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 14px 0;
}

#tg-257-wrapper .tg-257-accordion__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
}

#tg-257-wrapper .tg-257-accordion__badge i {
    font-size: 1rem;
}

#tg-257-wrapper .tg-257-accordion__badge--full {
    background: linear-gradient(135deg, #f5f3ff, #ede9fe) !important;
    border: 1px solid var(--violet-400);
    color: var(--violet-700) !important;
}

#tg-257-wrapper .tg-257-accordion__badge--limited {
    background: linear-gradient(135deg, #fffbeb, #fef3c7) !important;
    border: 1px solid #fde68a;
    color: var(--amber-600) !important;
}

/* 아코디언 비주얼: 알림 시뮬레이션 */
#tg-257-wrapper .tg-257-accordion__noti-demo {
    margin: 14px 0;
}

#tg-257-wrapper .tg-257-accordion__noti {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #f5f3ff, #ede9fe) !important;
    border: 1px solid var(--violet-400);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--slate-800) !important;
    animation: tg257-noti-flash 2s ease-in-out infinite;
}

#tg-257-wrapper .tg-257-accordion__noti > i {
    color: var(--violet-600) !important;
    font-size: 1.1rem;
    animation: tg257-bell 1.5s ease-in-out infinite;
}

@keyframes tg257-noti-flash {
    0%, 100% { box-shadow: 0 0 0 0 rgba(124,58,237,0.15); }
    50% { box-shadow: 0 0 0 8px rgba(124,58,237,0); }
}

@keyframes tg257-bell {
    0%, 100% { transform: rotate(0deg); }
    15% { transform: rotate(12deg); }
    30% { transform: rotate(-12deg); }
    45% { transform: rotate(0deg); }
}

/* ==============================================
   결론 요약 (다크 바이올렛 그라데이션 섹션)
   ============================================== */
#tg-257-wrapper .tg-257-summary {
    background: linear-gradient(150deg, var(--slate-900) 0%, #2e1065 100%) !important;
    border-radius: var(--border-r);
    padding: 44px 24px;
    text-align: center;
}

#tg-257-wrapper .tg-257-summary__title {
    font-size: 1.3rem;
    font-weight: 900;
    color: #fff !important;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#tg-257-wrapper .tg-257-summary__flow {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 36px;
}

#tg-257-wrapper .tg-257-summary__flow-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

#tg-257-wrapper .tg-257-summary__flow-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,0.1) !important;
    border: 2px solid rgba(255,255,255,0.18);
    border-radius: 12px;
    font-size: 1.3rem;
    color: #fff !important;
}

#tg-257-wrapper .tg-257-summary__flow-item span {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--slate-300) !important;
    max-width: 80px;
    text-align: center;
    line-height: 1.3;
}

#tg-257-wrapper .tg-257-summary__flow-arrow {
    color: rgba(255,255,255,0.3) !important;
    font-size: 0.9rem;
}

#tg-257-wrapper .tg-257-summary__checklist {
    text-align: left;
    max-width: 640px;
    margin: 0 auto 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#tg-257-wrapper .tg-257-summary__checklist li {
    font-size: 0.93rem;
    color: var(--slate-300) !important;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.6;
}

#tg-257-wrapper .tg-257-summary__checklist li i {
    color: var(--violet-400) !important;
    flex-shrink: 0;
    margin-top: 4px;
}

#tg-257-wrapper .tg-257-summary__checklist li strong {
    color: #fff !important;
    font-weight: 700;
}

#tg-257-wrapper .tg-257-summary__desc {
    font-size: 0.92rem;
    color: var(--slate-300) !important;
    word-break: keep-all;
    max-width: 700px;
    margin: 0 auto !important;
}

#tg-257-wrapper .tg-257-summary__desc strong {
    color: #fff !important;
}

/* ==============================================
   푸터 링크 버튼
   ============================================== */
#tg-257-wrapper .tg-257-footer {
    margin-top: 28px;
}

#tg-257-wrapper .tg-257-footer__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff !important;
    color: var(--violet-700) !important;
    font-size: 0.92rem;
    font-weight: 800;
    padding: 13px 30px;
    border-radius: 30px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

#tg-257-wrapper .tg-257-footer__btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 22px rgba(0,0,0,0.25);
}

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

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

/* ==============================================
   반응형 - 태블릿 (640px+)
   ============================================== */
@media (min-width: 640px) {
    #tg-257-wrapper .tg-257-hero {
        padding: 64px 40px 60px;
    }
    #tg-257-wrapper .tg-257-hero__title {
        font-size: 2rem;
    }
    #tg-257-wrapper .tg-257-main {
        padding: 56px 40px 48px;
        gap: 52px;
    }
    #tg-257-wrapper .tg-257-feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    #tg-257-wrapper .tg-257-summary {
        padding: 56px 40px;
    }
    #tg-257-wrapper .tg-257-tab-panel__header {
        align-items: center;
    }
}

/* ==============================================
   반응형 - 데스크톱 (900px+)
   ============================================== */
@media (min-width: 900px) {
    #tg-257-wrapper .tg-257-hero__title {
        font-size: 2.3rem;
    }
    #tg-257-wrapper .tg-257-section__title {
        font-size: 1.4rem;
    }
}
