/*
 * tips323/style.css  v1.2.0
 * 텔레그램 스타(Stars) 가이드 전용 스타일
 * 그누보드5 완전 격리 | BEM | 모바일 퍼스트
 * 테마: 골드·딥인디고·다크슬레이트
 * v1.2 — 전체 타이포그래피·여백 가독성 개선
 */

/* ─────────────────────────────────────────
   전체 리셋
───────────────────────────────────────── */
#tg-323-wrapper,
#tg-323-wrapper * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    text-decoration: none;
    list-style: none;
    background: none;
    font-style: normal;
}

#tg-323-wrapper h1,
#tg-323-wrapper h2,
#tg-323-wrapper h3,
#tg-323-wrapper h4 {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    line-height: 1.35;
}

#tg-323-wrapper strong,
#tg-323-wrapper b { color: inherit; font-weight: 700; }

#tg-323-wrapper p {
    margin-bottom: 16px !important;
    line-height: 1.85 !important;
}

#tg-323-wrapper p:last-child { margin-bottom: 0 !important; }
#tg-323-wrapper button { cursor: pointer; }
#tg-323-wrapper em { font-style: italic; }
#tg-323-wrapper code { font-family: 'Courier New', monospace; }

/* ─────────────────────────────────────────
   CSS 디자인 토큰
───────────────────────────────────────── */
#tg-323-wrapper {
    /* 골드 */
    --gold-300: #fde68a;
    --gold-400: #fbbf24;
    --gold-500: #f59e0b;
    --gold-600: #d97706;
    --gold-700: #b45309;
    /* 인디고 */
    --indigo-400: #818cf8;
    --indigo-500: #6366f1;
    --indigo-600: #4f46e5;
    --indigo-700: #4338ca;
    /* 슬레이트(명도 스케일) */
    --slate-50:  #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    /* 그린 */
    --green-400: #4ade80;
    --green-500: #22c55e;
    /* 레드 */
    --red-500: #ef4444;
    /* 의미론적 색상 */
    --text-main: #1e293b;
    --text-sub:  #475569;
    --text-muted: #94a3b8;
    /* 반경 */
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    /* 그림자 */
    --shadow-xs: 0 1px 4px rgba(0,0,0,.06);
    --shadow-sm: 0 2px 10px rgba(0,0,0,.08);
    --shadow-md: 0 8px 28px rgba(0,0,0,.13);
    --shadow-lg: 0 16px 48px rgba(0,0,0,.2);
    /* 타이포 */
    --fs-xs:   .8rem;      /* 12.8px */
    --fs-sm:   .9rem;      /* 14.4px */
    --fs-base: 1rem;       /* 16px   */
    --fs-md:   1.05rem;    /* 16.8px */
    --fs-lg:   1.2rem;     /* 19.2px */
    --fs-xl:   1.45rem;    /* 23.2px */

    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    font-size: var(--fs-base);
    color: var(--text-main);
    line-height: 1.7;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

#tg-323-wrapper .material-symbols-outlined {
    font-size: inherit;
    vertical-align: middle;
    line-height: 1;
}

/* ─────────────────────────────────────────
   스크롤 등장 애니메이션
───────────────────────────────────────── */
#tg-323-wrapper .tg-323-motion {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .65s ease, transform .65s ease;
}
#tg-323-wrapper .tg-323-motion.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═════════════════════════════════════════
   HERO
═════════════════════════════════════════ */
#tg-323-wrapper .tg-323-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    padding: 56px 32px 64px;
    background: linear-gradient(135deg, var(--slate-900) 0%, #1a1040 55%, var(--indigo-700) 100%);
    text-align: center;
    margin-bottom: 32px;
}

#tg-323-wrapper .tg-323-hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 20% 30%, rgba(245,158,11,.15) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 80% 70%, rgba(99,102,241,.22) 0%, transparent 70%);
    pointer-events: none;
}

#tg-323-wrapper .tg-323-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}

/* 아이콘 플로우 */
#tg-323-wrapper .tg-323-hero__flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 28px;
}

#tg-323-wrapper .tg-323-hero__flow-item {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    color: rgba(255,255,255,.8);
    border: 1px solid rgba(255,255,255,.15);
}

#tg-323-wrapper .tg-323-hero__flow-item--accent {
    background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
    color: #fff;
    box-shadow: 0 0 28px rgba(245,158,11,.45);
    border-color: var(--gold-400);
    font-size: 1.8rem;
    width: 64px;
    height: 64px;
}

#tg-323-wrapper .tg-323-hero__flow-arrow {
    font-size: 1.3rem;
    color: rgba(255,255,255,.3);
}

/* 배지 */
#tg-323-wrapper .tg-323-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(245,158,11,.2);
    border: 1px solid rgba(245,158,11,.4);
    color: var(--gold-300);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 20px;
}

#tg-323-wrapper .tg-323-hero__badge .material-symbols-outlined { font-size: 1rem; }

/* 제목 */
#tg-323-wrapper .tg-323-hero__title {
    font-size: clamp(1.6rem, 4.5vw, 2.25rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.3;
    letter-spacing: -.02em;
    margin-bottom: 18px;
}

/* 부제목 */
#tg-323-wrapper .tg-323-hero__subtitle {
    font-size: clamp(.93rem, 2.2vw, 1.05rem);
    color: rgba(255,255,255,.68);
    line-height: 1.8;
    margin-bottom: 28px !important;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* 태그 */
#tg-323-wrapper .tg-323-hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

#tg-323-wrapper .tg-323-hero__tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    color: rgba(255,255,255,.78);
    font-size: .82rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
}

#tg-323-wrapper .tg-323-hero__tag .material-symbols-outlined { font-size: 1rem; }

/* ═════════════════════════════════════════
   메인 레이아웃
═════════════════════════════════════════ */
#tg-323-wrapper .tg-323-main {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* ─── 도입부 ───────────────────────────── */
#tg-323-wrapper .tg-323-intro {
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    text-align: center;
}

#tg-323-wrapper .tg-323-intro__icon {
    font-size: 2.2rem;
    color: var(--gold-500);
    margin-bottom: 14px;
}

#tg-323-wrapper .tg-323-intro__icon .material-symbols-outlined { font-size: 2.2rem; }

#tg-323-wrapper .tg-323-intro__heading {
    font-size: clamp(1.1rem, 2.6vw, 1.3rem);
    font-weight: 800;
    color: var(--slate-800);
    letter-spacing: -.01em;
    margin-bottom: 14px;
    line-height: 1.45;
}

#tg-323-wrapper .tg-323-intro p {
    font-size: var(--fs-base);
    color: var(--text-sub);
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.85 !important;
}

/* ─── 공통 섹션 카드 ───────────────────── */
#tg-323-wrapper .tg-323-section {
    background: #fff;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    padding: 40px 32px;
    box-shadow: var(--shadow-sm);
    text-align: left;
}

/* 섹션 레이블(배지) */
#tg-323-wrapper .tg-323-section__label {
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--slate-100);
    border: 1px solid var(--slate-200);
    color: var(--slate-700);
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .02em;
    padding: 8px 20px;
    border-radius: 999px;
    margin-bottom: 20px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

#tg-323-wrapper .tg-323-section__label--sim {
    background: rgba(99,102,241,.08);
    border-color: rgba(99,102,241,.25);
    color: var(--indigo-600);
}

#tg-323-wrapper .tg-323-section__label--charge {
    background: rgba(245,158,11,.1);
    border-color: rgba(245,158,11,.3);
    color: var(--gold-700);
}

#tg-323-wrapper .tg-323-section__label--tips {
    background: rgba(34,197,94,.1);
    border-color: rgba(34,197,94,.3);
    color: #15803d;
}

#tg-323-wrapper .tg-323-section__label .material-symbols-outlined { font-size: 1.15rem; }

/* 섹션 제목 */
#tg-323-wrapper .tg-323-section__title {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 900;
    color: var(--slate-800);
    letter-spacing: -.02em;
    line-height: 1.35;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
}

#tg-323-wrapper .tg-323-section__title .material-symbols-outlined {
    font-size: 1.5rem;
    color: var(--gold-500);
}

/* 섹션 직속 p */
#tg-323-wrapper .tg-323-section > p {
    font-size: var(--fs-base);
    color: var(--text-sub);
    text-align: center;
    line-height: 1.85;
    margin-bottom: 28px !important;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

/* ═════════════════════════════════════════
   카드 (섹션 1 — 스타란?)
═════════════════════════════════════════ */
#tg-323-wrapper .tg-323-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 10px;
}

#tg-323-wrapper .tg-323-card {
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: box-shadow .3s, transform .3s;
}

#tg-323-wrapper .tg-323-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

#tg-323-wrapper .tg-323-card__icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--indigo-500), var(--indigo-700));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.6rem;
}

#tg-323-wrapper .tg-323-card__icon--creator {
    background: linear-gradient(135deg, var(--gold-500), var(--gold-700));
}

#tg-323-wrapper .tg-323-card__title {
    font-size: var(--fs-lg);
    font-weight: 800;
    color: var(--slate-800);
    letter-spacing: -.015em;
}

#tg-323-wrapper .tg-323-card__desc {
    font-size: var(--fs-base);
    color: var(--text-sub);
    line-height: 1.8;
}

/* ═════════════════════════════════════════
   시뮬레이터 (섹션 2)
═════════════════════════════════════════ */
#tg-323-wrapper .tg-323-sim-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 10px;
}

/* 미니 앱 상점 뷰 */
#tg-323-wrapper .tg-323-shop-view {
    position: relative;
    background: linear-gradient(to bottom, #1a1040, #0f172a);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.09);
}

#tg-323-wrapper .tg-323-shop-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(255,255,255,.05);
    border-bottom: 1px solid rgba(255,255,255,.07);
}

#tg-323-wrapper .tg-323-shop-header__back {
    font-size: 1.3rem;
    color: rgba(255,255,255,.5);
}

#tg-323-wrapper .tg-323-shop-header__info { flex: 1; }

#tg-323-wrapper .tg-323-shop-header__name {
    font-size: var(--fs-base);
    font-weight: 700;
    color: #fff;
}

#tg-323-wrapper .tg-323-shop-header__sub {
    font-size: var(--fs-xs);
    color: rgba(255,255,255,.4);
    margin-top: 2px;
}

#tg-323-wrapper .tg-323-shop-header__balance {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(245,158,11,.2);
    border: 1px solid rgba(245,158,11,.35);
    color: var(--gold-400);
    font-size: var(--fs-sm);
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 999px;
}

#tg-323-wrapper .tg-323-shop-header__balance .material-symbols-outlined { font-size: 1.1rem; }

#tg-323-wrapper .tg-323-shop-items {
    padding: 18px 18px 0;
}

#tg-323-wrapper .tg-323-shop-category {
    font-size: var(--fs-xs);
    font-weight: 700;
    color: rgba(255,255,255,.38);
    letter-spacing: .07em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

#tg-323-wrapper .tg-323-shop-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 12px;
    border-radius: 12px;
    margin-bottom: 10px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.07);
    transition: background .2s;
}

#tg-323-wrapper .tg-323-shop-item:hover {
    background: rgba(255,255,255,.09);
}

#tg-323-wrapper .tg-323-shop-item__thumb {
    font-size: 2.1rem;
    width: 52px;
    text-align: center;
    flex-shrink: 0;
}

#tg-323-wrapper .tg-323-shop-item__info {
    flex: 1;
    min-width: 0;
}

#tg-323-wrapper .tg-323-shop-item__name {
    font-size: var(--fs-sm);
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#tg-323-wrapper .tg-323-shop-item__sub {
    font-size: var(--fs-xs);
    color: rgba(255,255,255,.4);
    margin-top: 3px;
}

/* 구매 버튼 */
#tg-323-wrapper .tg-323-buy-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, var(--indigo-500), var(--indigo-700));
    color: #fff;
    font-size: var(--fs-sm);
    font-weight: 800;
    padding: 8px 16px;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: box-shadow .2s, transform .15s;
    box-shadow: 0 2px 10px rgba(99,102,241,.3);
}

#tg-323-wrapper .tg-323-buy-btn:hover {
    box-shadow: 0 4px 18px rgba(99,102,241,.55);
    transform: scale(1.06);
}

#tg-323-wrapper .tg-323-buy-btn--premium {
    background: linear-gradient(135deg, var(--gold-500), var(--gold-700));
    box-shadow: 0 2px 10px rgba(245,158,11,.3);
}

#tg-323-wrapper .tg-323-buy-btn--premium:hover {
    box-shadow: 0 4px 18px rgba(245,158,11,.55);
}

#tg-323-wrapper .tg-323-buy-btn .material-symbols-outlined { font-size: 1.05rem; }

/* 힌트 */
#tg-323-wrapper .tg-323-shop-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px;
    font-size: var(--fs-sm);
    color: rgba(255,255,255,.35);
    animation: tg323Pulse 2s infinite;
}

#tg-323-wrapper .tg-323-shop-hint .material-symbols-outlined { font-size: 1.1rem; }

@keyframes tg323Pulse {
    0%, 100% { opacity: .45; }
    50%       { opacity: 1; }
}

/* ── 확인 모달 ── */
#tg-323-wrapper .tg-323-confirm-modal {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    z-index: 10;
}

#tg-323-wrapper .tg-323-confirm-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.52);
    backdrop-filter: blur(5px);
}

#tg-323-wrapper .tg-323-confirm-modal__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    background: linear-gradient(to bottom, #1e1a40, #0f172a);
    border-top: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    padding: 28px 24px;
    text-align: center;
    animation: tg323SlideUp .28s ease;
}

@keyframes tg323SlideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

#tg-323-wrapper .tg-323-confirm-modal__icon {
    font-size: 2.8rem;
    margin-bottom: 8px;
}

#tg-323-wrapper .tg-323-confirm-modal__item-name {
    font-size: var(--fs-lg);
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: -.015em;
}

#tg-323-wrapper .tg-323-confirm-modal__price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--gold-400);
    margin-bottom: 10px;
}

#tg-323-wrapper .tg-323-confirm-modal__price .material-symbols-outlined { font-size: 1.8rem; }

#tg-323-wrapper .tg-323-confirm-modal__desc {
    font-size: var(--fs-sm);
    color: rgba(255,255,255,.52);
    margin-bottom: 10px !important;
    line-height: 1.6;
}

#tg-323-wrapper .tg-323-confirm-modal__balance-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: var(--fs-sm);
    color: rgba(255,255,255,.42);
    margin-bottom: 20px;
}

#tg-323-wrapper .tg-323-confirm-modal__balance-info .material-symbols-outlined {
    font-size: .95rem;
    color: var(--gold-500);
}

#tg-323-wrapper .tg-323-confirm-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: linear-gradient(135deg, var(--indigo-500), var(--indigo-700));
    color: #fff;
    font-size: var(--fs-base);
    font-weight: 800;
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    box-shadow: 0 4px 18px rgba(99,102,241,.38);
    transition: box-shadow .2s, transform .15s;
}

#tg-323-wrapper .tg-323-confirm-btn:hover {
    box-shadow: 0 6px 26px rgba(99,102,241,.55);
    transform: translateY(-2px);
}

#tg-323-wrapper .tg-323-confirm-btn .material-symbols-outlined { font-size: 1.15rem; }

#tg-323-wrapper .tg-323-cancel-btn {
    display: block;
    width: 100%;
    color: rgba(255,255,255,.45);
    font-size: var(--fs-base);
    font-weight: 600;
    padding: 12px;
    border-radius: var(--radius-sm);
    transition: background .2s;
}

#tg-323-wrapper .tg-323-cancel-btn:hover {
    background: rgba(255,255,255,.06);
}

/* ── 결과 패널 ── */
#tg-323-wrapper .tg-323-result-panel {
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

#tg-323-wrapper .tg-323-result-panel__label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: var(--fs-xs);
    font-weight: 700;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--slate-200);
}

#tg-323-wrapper .tg-323-result-panel__label .material-symbols-outlined { font-size: 1.1rem; }

/* 초기 안내 */
#tg-323-wrapper .tg-323-result-idle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
    gap: 8px;
    padding: 16px 4px;
}

#tg-323-wrapper .tg-323-result-idle__icon {
    font-size: 2.8rem;
    color: var(--slate-300);
    margin-bottom: 6px;
}

#tg-323-wrapper .tg-323-result-idle__icon .material-symbols-outlined { font-size: 2.8rem; }

#tg-323-wrapper .tg-323-result-idle__title {
    font-size: var(--fs-lg);
    font-weight: 800;
    color: var(--slate-700);
    letter-spacing: -.01em;
}

#tg-323-wrapper .tg-323-result-idle__desc {
    font-size: var(--fs-sm);
    color: var(--slate-400);
    line-height: 1.65;
}

#tg-323-wrapper .tg-323-result-idle__balance {
    margin-top: 16px;
    font-size: var(--fs-sm);
    color: var(--slate-500);
    font-weight: 600;
}

#tg-323-wrapper .tg-323-result-idle__balance-num {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--gold-600);
    margin-top: 6px;
}

#tg-323-wrapper .tg-323-result-idle__balance-num .material-symbols-outlined { font-size: 1.7rem; }

/* 결과 표시 */
#tg-323-wrapper .tg-323-result-active {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
    gap: 10px;
    padding: 8px 4px;
    animation: tg323FadeIn .35s ease;
}

#tg-323-wrapper .tg-323-result-active__check {
    font-size: 2.8rem;
    color: var(--green-500);
}

#tg-323-wrapper .tg-323-result-active__check .material-symbols-outlined { font-size: 2.8rem; }

#tg-323-wrapper .tg-323-result-active__title {
    font-size: var(--fs-xl);
    font-weight: 900;
    color: var(--slate-800);
    letter-spacing: -.02em;
}

#tg-323-wrapper .tg-323-result-active__item {
    font-size: var(--fs-base);
    font-weight: 700;
    color: var(--indigo-600);
}

#tg-323-wrapper .tg-323-result-active__deducted {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: var(--fs-base);
    font-weight: 800;
    color: var(--red-500);
}

#tg-323-wrapper .tg-323-result-active__deducted .material-symbols-outlined { font-size: 1.1rem; }

#tg-323-wrapper .tg-323-result-active__remain {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: var(--fs-sm);
    color: var(--slate-500);
}

#tg-323-wrapper .tg-323-result-active__remain .material-symbols-outlined {
    font-size: 1.05rem;
    color: var(--gold-500);
}

#tg-323-wrapper .tg-323-result-active__tip {
    font-size: var(--fs-xs);
    color: var(--slate-400);
    background: var(--slate-100);
    padding: 10px 14px;
    border-radius: 10px;
    max-width: 280px;
    line-height: 1.6;
    margin-top: 4px;
}

#tg-323-wrapper .tg-323-try-again-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--indigo-500);
    color: #fff;
    font-size: var(--fs-sm);
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 999px;
    margin-top: 8px;
    transition: background .2s;
}

#tg-323-wrapper .tg-323-try-again-btn:hover { background: var(--indigo-700); }
#tg-323-wrapper .tg-323-try-again-btn .material-symbols-outlined { font-size: 1.05rem; }

/* 잔액 부족 */
#tg-323-wrapper .tg-323-result-empty {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
    gap: 10px;
    padding: 8px 4px;
    animation: tg323FadeIn .35s ease;
}

#tg-323-wrapper .tg-323-result-empty__icon {
    font-size: 2.6rem;
    color: var(--red-500);
}

#tg-323-wrapper .tg-323-result-empty__icon .material-symbols-outlined { font-size: 2.6rem; }

#tg-323-wrapper .tg-323-result-empty__title {
    font-size: var(--fs-lg);
    font-weight: 900;
    color: var(--red-500);
    letter-spacing: -.01em;
}

#tg-323-wrapper .tg-323-result-empty__desc {
    font-size: var(--fs-sm);
    color: var(--slate-400);
    line-height: 1.65;
}

#tg-323-wrapper .tg-323-refill-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, var(--gold-500), var(--gold-700));
    color: #fff;
    font-size: var(--fs-sm);
    font-weight: 800;
    padding: 11px 22px;
    border-radius: 999px;
    margin-top: 8px;
    box-shadow: 0 3px 12px rgba(245,158,11,.32);
    transition: box-shadow .2s, transform .15s;
}

#tg-323-wrapper .tg-323-refill-btn:hover {
    box-shadow: 0 6px 20px rgba(245,158,11,.5);
    transform: translateY(-2px);
}

#tg-323-wrapper .tg-323-refill-btn .material-symbols-outlined { font-size: 1.15rem; }

@keyframes tg323FadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ═════════════════════════════════════════
   탭 그룹 (섹션 3 — 기기별 충전)
═════════════════════════════════════════ */
#tg-323-wrapper .tg-323-tab-group {
    display: flex;
    gap: 6px;
    background: var(--slate-100);
    border-radius: var(--radius-sm);
    padding: 5px;
    margin-bottom: 22px;
}

#tg-323-wrapper .tg-323-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 12px;
    border-radius: 7px;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--slate-500);
    transition: background .2s, color .2s, box-shadow .2s;
}

#tg-323-wrapper .tg-323-tab-btn .material-symbols-outlined { font-size: 1.2rem; }

#tg-323-wrapper .tg-323-tab-btn--active {
    background: #fff;
    color: var(--indigo-600);
    box-shadow: 0 2px 10px rgba(0,0,0,.09);
    font-weight: 700;
}

#tg-323-wrapper .tg-323-tab-panel { display: none; animation: tg323FadeIn .3s ease; }
#tg-323-wrapper .tg-323-tab-panel--active { display: block; }

/* 탭 패널 헤더 */
#tg-323-wrapper .tg-323-tab-panel__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--slate-100);
}

#tg-323-wrapper .tg-323-tab-panel__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    flex-shrink: 0;
}

#tg-323-wrapper .tg-323-tab-panel__icon--pc      { background: linear-gradient(135deg, var(--slate-700), var(--slate-900)); }
#tg-323-wrapper .tg-323-tab-panel__icon--ios     { background: linear-gradient(135deg, #444, #111); }
#tg-323-wrapper .tg-323-tab-panel__icon--android { background: linear-gradient(135deg, #3ddc84, #00ac47); }

#tg-323-wrapper .tg-323-tab-panel__title {
    font-size: var(--fs-lg);
    font-weight: 800;
    color: var(--slate-800);
    letter-spacing: -.015em;
    margin-bottom: 4px;
}

#tg-323-wrapper .tg-323-tab-panel__sub {
    font-size: var(--fs-sm);
    color: var(--slate-400);
    margin-bottom: 0 !important;
}

/* ── 단계 리스트 ── */
#tg-323-wrapper .tg-323-steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
    counter-reset: tg323step;
    margin-top: 4px;
}

#tg-323-wrapper .tg-323-steps li {
    counter-increment: tg323step;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: var(--fs-base);
    color: var(--text-sub);
    line-height: 1.75;
}

#tg-323-wrapper .tg-323-steps li::before {
    content: counter(tg323step);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    background: var(--indigo-500);
    color: #fff;
    font-size: .82rem;
    font-weight: 900;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ═════════════════════════════════════════
   아코디언 (섹션 4 — 꿀팁)
═════════════════════════════════════════ */
#tg-323-wrapper .tg-323-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

#tg-323-wrapper .tg-323-accordion__item {
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}

#tg-323-wrapper .tg-323-accordion__item.is-open {
    border-color: var(--indigo-400);
    box-shadow: 0 2px 16px rgba(99,102,241,.13);
}

#tg-323-wrapper .tg-323-accordion__header {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 20px 20px;
    text-align: left;
    background: var(--slate-50);
    transition: background .2s;
}

#tg-323-wrapper .tg-323-accordion__header:hover { background: var(--slate-100); }

#tg-323-wrapper .tg-323-accordion__icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--indigo-500), var(--indigo-700));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
}

#tg-323-wrapper .tg-323-accordion__title {
    flex: 1;
    font-size: var(--fs-base);
    font-weight: 700;
    color: var(--slate-800);
    line-height: 1.45;
}

#tg-323-wrapper .tg-323-accordion__arrow {
    font-size: 1.5rem;
    color: var(--slate-400);
    transition: transform .3s;
    flex-shrink: 0;
}

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

#tg-323-wrapper .tg-323-accordion__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .38s ease, padding .38s ease;
    padding: 0 20px;
    background: #fff;
}

#tg-323-wrapper .tg-323-accordion__item.is-open .tg-323-accordion__body {
    max-height: 320px;
    padding: 18px 20px;
}

#tg-323-wrapper .tg-323-accordion__body p {
    font-size: var(--fs-base);
    color: var(--text-sub);
    line-height: 1.85;
    margin-bottom: 0 !important;
}

#tg-323-wrapper .tg-323-accordion__body code {
    background: var(--slate-100);
    color: var(--indigo-700);
    padding: 2px 6px;
    border-radius: 5px;
    font-size: .9em;
}

/* ═════════════════════════════════════════
   결론 요약
═════════════════════════════════════════ */
#tg-323-wrapper .tg-323-summary {
    background: linear-gradient(135deg, var(--slate-900) 0%, #1a1040 60%, var(--indigo-700) 100%);
    border-radius: var(--radius-md);
    padding: 48px 36px;
    color: #fff;
}

#tg-323-wrapper .tg-323-summary__title {
    font-size: clamp(1.25rem, 3.5vw, 1.6rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: -.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    margin-bottom: 16px;
}

#tg-323-wrapper .tg-323-summary__title .material-symbols-outlined {
    font-size: 1.6rem;
    color: var(--gold-400);
}

#tg-323-wrapper .tg-323-summary__desc {
    font-size: var(--fs-base);
    color: rgba(255,255,255,.7);
    text-align: center;
    line-height: 1.85;
    margin-bottom: 28px !important;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

#tg-323-wrapper .tg-323-summary__checklist {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 36px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

#tg-323-wrapper .tg-323-summary__checklist li {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    font-size: var(--fs-base);
    color: rgba(255,255,255,.82);
    line-height: 1.7;
}

#tg-323-wrapper .tg-323-summary__checklist li .material-symbols-outlined {
    font-size: 1.1rem;
    color: var(--gold-400);
    margin-top: 3px;
    flex-shrink: 0;
}

#tg-323-wrapper .tg-323-summary__checklist li strong { color: #fff; }

#tg-323-wrapper .tg-323-footer {
    border-top: 1px solid rgba(255,255,255,.12);
    padding-top: 28px;
    text-align: center;
}

#tg-323-wrapper .tg-323-footer__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--gold-500), var(--gold-700));
    color: #fff;
    font-size: var(--fs-base);
    font-weight: 800;
    padding: 15px 32px;
    border-radius: 999px;
    box-shadow: 0 4px 24px rgba(245,158,11,.38);
    transition: box-shadow .28s, transform .22s;
    letter-spacing: -.01em;
}

#tg-323-wrapper .tg-323-footer__btn:hover {
    box-shadow: 0 8px 32px rgba(245,158,11,.55);
    transform: translateY(-3px);
}

#tg-323-wrapper .tg-323-footer__btn .material-symbols-outlined { font-size: 1.1rem; }

/* ═════════════════════════════════════════
   반응형
═════════════════════════════════════════ */
@media (min-width: 640px) {
    #tg-323-wrapper .tg-323-hero {
        padding: 72px 56px 80px;
    }

    #tg-323-wrapper .tg-323-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    #tg-323-wrapper .tg-323-sim-container {
        flex-direction: row;
        align-items: flex-start;
        gap: 20px;
    }

    #tg-323-wrapper .tg-323-shop-view {
        flex: 1;
        min-width: 0;
    }

    #tg-323-wrapper .tg-323-result-panel {
        flex: 0 0 270px;
        min-height: 440px;
    }
}

@media (min-width: 900px) {
    #tg-323-wrapper .tg-323-section {
        padding: 48px 44px;
    }

    #tg-323-wrapper .tg-323-result-panel {
        flex: 0 0 300px;
    }

    #tg-323-wrapper .tg-323-summary {
        padding: 60px 56px;
    }
}
