/*
 * tips349/style.css  v1.0.0
 * 텔레그램 미니앱 위치 정보 권한 가이드
 * 테마: 틸/청록 + 딥 다크 (보안·위치·프라이버시)
 * 그누보드5 완전 격리 | BEM | 모바일 퍼스트
 */

/* ─── 전체 리셋 ─── */
#tg-349-wrapper,
#tg-349-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-349-wrapper h1, #tg-349-wrapper h2 { font-size: inherit; font-weight: inherit; color: inherit; line-height: 1.35; }
#tg-349-wrapper strong { font-weight: 700; color: inherit; }
#tg-349-wrapper p { margin-bottom: 14px !important; line-height: 1.85 !important; }
#tg-349-wrapper p:last-child { margin-bottom: 0 !important; }
#tg-349-wrapper button { cursor: pointer; }
#tg-349-wrapper a { color: inherit; }
#tg-349-wrapper ol, #tg-349-wrapper ul { list-style: none; }

/* ─── 디자인 토큰 ─── */
#tg-349-wrapper {
    --teal-100: #ccfbf1;
    --teal-200: #99f6e4;
    --teal-300: #5eead4;
    --teal-400: #2dd4bf;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;
    --teal-700: #0f766e;
    --teal-900: #134e4a;
    --grn-300:  #86efac;
    --grn-500:  #22c55e;
    --amb-300:  #fcd34d;
    --amb-500:  #f59e0b;
    --red-400:  #f87171;
    --dk-base:  #030f14;
    --dk-card:  #051c22;
    --sl-50:    #f8fafc;
    --sl-100:   #f1f5f9;
    --sl-200:   #e2e8f0;
    --sl-400:   #94a3b8;
    --sl-500:   #64748b;
    --sl-700:   #334155;
    --sl-800:   #1e293b;
    --sl-900:   #0f172a;
    --text-main: #1e293b;
    --text-sub:  #475569;
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --shadow-sm:   0 4px 14px rgba(0,0,0,.06);
    --shadow-teal: 0 4px 20px rgba(20,184,166,.26);
    --fs-sm:   .9rem;
    --fs-base: 1rem;
    --fs-lg:   1.2rem;

    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%;
}

/* Material Symbols */
#tg-349-wrapper .material-symbols-outlined {
    font-family: 'Material Symbols Outlined', sans-serif;
    font-weight: normal; font-style: normal; font-size: inherit;
    line-height: 1; display: inline-block; white-space: nowrap;
    direction: ltr; -webkit-font-smoothing: antialiased; vertical-align: middle;
}

/* 스크롤 등장 */
#tg-349-wrapper .tg-349-motion { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
#tg-349-wrapper .tg-349-motion.is-visible { opacity: 1; transform: translateY(0); }

/* ═════════════════════════════════════════
   히어로
═════════════════════════════════════════ */
#tg-349-wrapper .tg-349-hero {
    position: relative; background: var(--dk-base);
    border-radius: var(--radius-lg); padding: 64px 28px 72px;
    text-align: center; overflow: hidden;
}
#tg-349-wrapper .tg-349-hero__bg {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 62% 50% at 25% 35%, rgba(20,184,166,.2) 0%, transparent 55%),
        radial-gradient(ellipse 50% 44% at 78% 68%, rgba(13,148,136,.14) 0%, transparent 52%);
}
#tg-349-wrapper .tg-349-hero__floats { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
#tg-349-wrapper .tg-349-float {
    position: absolute; font-size: 1.6rem; opacity: 0;
    animation: tg349Float ease-in-out infinite;
}
#tg-349-wrapper .tg-349-float--1 { top: 14%; left: 4%;    animation-duration: 5.5s; animation-delay: 0s; }
#tg-349-wrapper .tg-349-float--2 { top: 22%; right: 5%;   animation-duration: 4.5s; animation-delay: -2s; }
#tg-349-wrapper .tg-349-float--3 { bottom: 28%; left: 6%; animation-duration: 6s; animation-delay: -1s; }
#tg-349-wrapper .tg-349-float--4 { bottom: 20%; right: 8%;animation-duration: 5s; animation-delay: -1.8s; }
@keyframes tg349Float {
    0%,100% { opacity: 0; transform: translateY(0) scale(.9); }
    50%      { opacity: .5; transform: translateY(-14px) scale(1.1); }
}
#tg-349-wrapper .tg-349-hero__inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
#tg-349-wrapper .tg-349-hero__badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(20,184,166,.15); border: 1px solid rgba(20,184,166,.35);
    color: var(--teal-300); font-size: .85rem; font-weight: 700;
    padding: 6px 18px; border-radius: 999px; margin-bottom: 22px !important;
}
#tg-349-wrapper .tg-349-hero__badge .material-symbols-outlined { font-size: 1.1rem; }
#tg-349-wrapper .tg-349-hero__title {
    font-size: clamp(1.6rem, 4.2vw, 2.3rem); font-weight: 900;
    color: #fff; line-height: 1.3; letter-spacing: -.02em; margin-bottom: 16px;
}
#tg-349-wrapper .tg-349-hero__title em {
    font-style: normal; color: var(--teal-300);
    text-shadow: 0 0 28px rgba(20,184,166,.5);
}
#tg-349-wrapper .tg-349-hero__subtitle { color: rgba(255,255,255,.68); line-height: 1.8; max-width: 560px; margin: 0 auto 28px !important; }
#tg-349-wrapper .tg-349-hero__chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
#tg-349-wrapper .tg-349-hero__chip {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(20,184,166,.15); border: 1px solid rgba(20,184,166,.3);
    color: var(--teal-300); font-size: .85rem; font-weight: 800;
    padding: 8px 18px; border-radius: 999px;
}
#tg-349-wrapper .tg-349-hero__chip .material-symbols-outlined { font-size: 1rem; }
#tg-349-wrapper .tg-349-hero__chip--green { background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.28); color: var(--grn-300); }
#tg-349-wrapper .tg-349-hero__chip--amber { background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.28); color: var(--amb-300); }

/* ─── 레이아웃 ─── */
#tg-349-wrapper .tg-349-main { display: flex; flex-direction: column; gap: 28px; }

/* ─── 도입부 ─── */
#tg-349-wrapper .tg-349-intro {
    background: #fff; border: 1px solid var(--sl-200); border-top: 4px solid var(--teal-500);
    border-radius: var(--radius-md); padding: 36px 28px; text-align: center; box-shadow: var(--shadow-sm);
}
#tg-349-wrapper .tg-349-intro__icon { font-size: 2.4rem; color: var(--teal-600); margin-bottom: 14px; }
#tg-349-wrapper .tg-349-intro__icon .material-symbols-outlined { font-size: 2.4rem; }
#tg-349-wrapper .tg-349-intro__title { font-size: clamp(1.05rem, 2.8vw, 1.32rem); font-weight: 800; color: var(--sl-900); margin-bottom: 14px; letter-spacing: -.01em; }
#tg-349-wrapper .tg-349-intro p { color: var(--text-sub); max-width: 700px; margin-left: auto; margin-right: auto; }

/* 흐름 다이어그램 */
#tg-349-wrapper .tg-349-intro__flow {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
    justify-content: center; margin-top: 20px;
}
#tg-349-wrapper .tg-349-flow-step {
    display: flex; align-items: center; gap: 6px;
    background: var(--sl-100); border: 1px solid var(--sl-200);
    border-radius: 999px; padding: 8px 16px;
    font-size: .82rem; font-weight: 700; color: var(--sl-500);
}
#tg-349-wrapper .tg-349-flow-step .material-symbols-outlined { font-size: .95rem; }
#tg-349-wrapper .tg-349-flow-step--active { background: rgba(20,184,166,.08); border-color: rgba(20,184,166,.22); color: var(--teal-700); }
#tg-349-wrapper .tg-349-flow-step--teal   { background: rgba(20,184,166,.12); border-color: rgba(20,184,166,.28); color: var(--teal-600); }
#tg-349-wrapper .tg-349-flow-step--warn   { background: rgba(245,158,11,.08); border-color: rgba(245,158,11,.22); color: #92400e; }
#tg-349-wrapper .tg-349-flow-arrow { font-size: 1.1rem; color: var(--sl-400); line-height: 1; }

/* ─── 공통 섹션 ─── */
#tg-349-wrapper .tg-349-section {
    background: #fff; border: 1px solid var(--sl-200); border-radius: var(--radius-md);
    padding: 44px 32px; box-shadow: var(--shadow-sm); text-align: center;
}
#tg-349-wrapper .tg-349-section--dark { background: var(--dk-base); border-color: rgba(20,184,166,.15); }
#tg-349-wrapper .tg-349-section__label {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--sl-100); color: var(--sl-700);
    font-size: .88rem; font-weight: 700; letter-spacing: .03em;
    padding: 7px 20px; border-radius: 999px; margin-bottom: 22px;
}
#tg-349-wrapper .tg-349-section__label--dark { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.32); }
#tg-349-wrapper .tg-349-section__label--teal { background: rgba(20,184,166,.08); color: var(--teal-700); }
#tg-349-wrapper .tg-349-section__label .material-symbols-outlined { font-size: 1.1rem; }
#tg-349-wrapper .tg-349-section__title {
    font-size: clamp(1.2rem, 3vw, 1.5rem); font-weight: 900; color: var(--sl-900);
    letter-spacing: -.02em; margin-bottom: 16px;
    display: flex; align-items: center; justify-content: center; gap: 10px;
}
#tg-349-wrapper .tg-349-section__title--light { color: #fff !important; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
#tg-349-wrapper .tg-349-section__title .material-symbols-outlined { font-size: 1.5rem; color: var(--teal-500); }
#tg-349-wrapper .tg-349-section > p, #tg-349-wrapper .tg-349-section__desc--light { max-width: 680px; margin-left: auto; margin-right: auto; }
#tg-349-wrapper .tg-349-section > p { color: var(--text-sub); }
#tg-349-wrapper .tg-349-section__desc--light { color: rgba(255,255,255,.88) !important; margin-bottom: 32px !important; }

/* ═════════════════════════════════════════
   데모: 봇 프로필 + 미니앱 화면
═════════════════════════════════════════ */
#tg-349-wrapper .tg-349-demo { display: flex; flex-direction: column; align-items: center; gap: 24px; }

/* 봇 프로필 카드 */
#tg-349-wrapper .tg-349-bot-profile {
    width: 100%; max-width: 280px;
    background: #07232b; border: 1px solid rgba(20,184,166,.2);
    border-radius: 18px; overflow: hidden;
    box-shadow: 0 16px 40px rgba(0,0,0,.5);
}
#tg-349-wrapper .tg-349-bot-profile__header {
    display: flex; align-items: center; gap: 12px;
    background: #04161c; padding: 14px 16px;
    border-bottom: 1px solid rgba(20,184,166,.1);
}
#tg-349-wrapper .tg-349-bot-avatar { font-size: 1.8rem; line-height: 1; flex-shrink: 0; }
#tg-349-wrapper .tg-349-bot-name { font-size: .9rem; font-weight: 900; color: #fff; margin-bottom: 2px; }
#tg-349-wrapper .tg-349-bot-tag  { font-size: .7rem; color: rgba(255,255,255,.4); margin-bottom: 0 !important; }
#tg-349-wrapper .tg-349-bot-desc { padding: 12px 16px; font-size: .78rem; color: rgba(255,255,255,.55); line-height: 1.6; border-bottom: 1px solid rgba(255,255,255,.06); }

/* 권한 토글 영역 */
#tg-349-wrapper .tg-349-perm-section { padding: 12px 16px 14px; }
#tg-349-wrapper .tg-349-perm-section__label {
    font-size: .6rem; font-weight: 800; letter-spacing: .08em;
    color: rgba(255,255,255,.35); margin-bottom: 10px;
}
#tg-349-wrapper .tg-349-perm-row {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: rgba(255,255,255,.04); border-radius: 10px; padding: 10px 12px;
    border: 1px solid rgba(255,255,255,.07); transition: border-color .3s;
}
#tg-349-wrapper .tg-349-perm-row.is-active { border-color: rgba(20,184,166,.25); }
#tg-349-wrapper .tg-349-perm-info { display: flex; align-items: center; gap: 10px; }
#tg-349-wrapper .tg-349-perm-icon { font-size: 1.35rem; color: rgba(255,255,255,.4); transition: color .3s; }
#tg-349-wrapper .tg-349-perm-row.is-active .tg-349-perm-icon { color: var(--teal-400); }
#tg-349-wrapper .tg-349-perm-name { font-size: .82rem; font-weight: 800; color: rgba(255,255,255,.8); }
#tg-349-wrapper .tg-349-perm-sub  { font-size: .65rem; color: rgba(255,255,255,.38); }

/* 토글 스위치 */
#tg-349-wrapper .tg-349-toggle {
    width: 44px; height: 24px; border-radius: 999px;
    background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.1);
    position: relative; transition: background .3s, border-color .3s;
    flex-shrink: 0;
}
#tg-349-wrapper .tg-349-toggle[aria-checked="true"] {
    background: var(--teal-500); border-color: var(--teal-400);
    box-shadow: 0 0 10px rgba(20,184,166,.4);
}
#tg-349-wrapper .tg-349-toggle__knob {
    position: absolute; top: 2px; left: 2px;
    width: 18px; height: 18px; border-radius: 50%;
    background: rgba(255,255,255,.5);
    transition: transform .3s, background .3s; box-shadow: 0 1px 4px rgba(0,0,0,.4);
}
#tg-349-wrapper .tg-349-toggle[aria-checked="true"] .tg-349-toggle__knob {
    transform: translateX(20px); background: #fff;
}

/* 미니앱 화면 */
#tg-349-wrapper .tg-349-miniapp-view {
    width: 100%; max-width: 280px;
    background: #07232b; border: 1px solid rgba(20,184,166,.18);
    border-radius: 18px; overflow: hidden;
    box-shadow: 0 16px 40px rgba(0,0,0,.5);
}
#tg-349-wrapper .tg-349-miniapp-view__header {
    display: flex; align-items: center; gap: 6px;
    background: #000; padding: 10px 14px;
}
#tg-349-wrapper .tg-349-miniapp-view__dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
#tg-349-wrapper .tg-349-miniapp-view__dot--red    { background: #ff5f57; }
#tg-349-wrapper .tg-349-miniapp-view__dot--yellow { background: #febc2e; }
#tg-349-wrapper .tg-349-miniapp-view__dot--green  { background: #28c840; }
#tg-349-wrapper .tg-349-miniapp-view__title { font-size: .72rem; color: rgba(255,255,255,.45); margin-left: 8px; }

#tg-349-wrapper .tg-349-miniapp-view__state {
    padding: 28px 20px; display: flex; flex-direction: column; align-items: center; gap: 12px;
    min-height: 180px; justify-content: center; animation: tg349FadeIn .3s ease;
}
#tg-349-wrapper .tg-349-blocked-icon { font-size: 2.4rem; color: rgba(255,255,255,.2); }

/* 허용 버튼 */
#tg-349-wrapper .tg-349-allow-btn {
    display: flex; align-items: center; gap: 7px;
    background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
    color: #fff; font-size: .82rem; font-weight: 800;
    padding: 10px 18px; border-radius: 10px;
    box-shadow: var(--shadow-teal); transition: opacity .2s;
}
#tg-349-wrapper .tg-349-allow-btn:hover { opacity: .85; }
#tg-349-wrapper .tg-349-allow-btn .material-symbols-outlined { font-size: 1rem; }

/* 날씨 카드 */
#tg-349-wrapper .tg-349-weather-card {
    background: linear-gradient(160deg, #0f4a56, #0d757a);
    border-radius: 14px; padding: 18px 20px; width: 100%; text-align: center;
    border: 1px solid rgba(94,234,212,.2);
}
#tg-349-wrapper .tg-349-weather-card__loc { font-size: .72rem; color: rgba(255,255,255,.6); margin-bottom: 0 !important; }
#tg-349-wrapper .tg-349-weather-card__loc .material-symbols-outlined { font-size: .9rem; color: var(--teal-300); }
#tg-349-wrapper .tg-349-weather-card__main { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 10px 0; }
#tg-349-wrapper .tg-349-weather-card__icon { font-size: 2.4rem; line-height: 1; }
#tg-349-wrapper .tg-349-weather-card__temp { font-size: 2rem; font-weight: 900; color: #fff; }
#tg-349-wrapper .tg-349-weather-card__desc { font-size: .78rem; color: rgba(255,255,255,.6); }

/* 상태 표시 */
#tg-349-wrapper .tg-349-status {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
    color: rgba(255,255,255,.55); font-size: .82rem; font-weight: 600;
    padding: 10px 18px; border-radius: 999px; margin-top: 20px;
    transition: all .3s;
}
#tg-349-wrapper .tg-349-status.is-on  { background: rgba(20,184,166,.15); border-color: rgba(20,184,166,.3); color: var(--teal-300); }
#tg-349-wrapper .tg-349-status.is-off { background: rgba(248,113,113,.1); border-color: rgba(248,113,113,.25); color: #fca5a5; }
#tg-349-wrapper .tg-349-status .material-symbols-outlined { font-size: .95rem; }

/* ═════════════════════════════════════════
   기능 탭 + 기기별 탭
═════════════════════════════════════════ */
#tg-349-wrapper .tg-349-func-tabs {
    display: flex; gap: 6px; background: var(--sl-100); border-radius: var(--radius-sm);
    padding: 5px; margin-bottom: 16px; flex-wrap: wrap;
}
#tg-349-wrapper .tg-349-func-btn {
    flex: 1; min-width: 120px;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 12px; border-radius: 7px;
    font-size: var(--fs-sm); font-weight: 600; color: var(--sl-500);
    transition: background .2s, color .2s;
}
#tg-349-wrapper .tg-349-func-btn--active { background: #fff; color: var(--teal-700); box-shadow: 0 2px 10px rgba(0,0,0,.09); font-weight: 800; }
#tg-349-wrapper .tg-349-func-btn .material-symbols-outlined { font-size: 1.15rem; }
#tg-349-wrapper .tg-349-func-panel { display: none; animation: tg349FadeIn .3s ease; }
#tg-349-wrapper .tg-349-func-panel--active { display: block; }

#tg-349-wrapper .tg-349-tabs {
    display: flex; gap: 6px; background: var(--sl-100); border-radius: var(--radius-sm);
    padding: 5px; margin-bottom: 22px; flex-wrap: wrap; text-align: left;
}
#tg-349-wrapper .tg-349-tab-btn {
    flex: 1; min-width: 80px;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 12px; border-radius: 7px;
    font-size: var(--fs-sm); font-weight: 600; color: var(--sl-500);
    transition: background .2s, color .2s;
}
#tg-349-wrapper .tg-349-tab-btn .material-symbols-outlined { font-size: 1.1rem; }
#tg-349-wrapper .tg-349-tab-btn--active { background: #fff; color: var(--teal-700); box-shadow: 0 2px 8px rgba(0,0,0,.08); font-weight: 800; }
#tg-349-wrapper .tg-349-tab-panel { display: none; text-align: left; animation: tg349FadeIn .3s ease; }
#tg-349-wrapper .tg-349-tab-panel--active { display: block; }
#tg-349-wrapper .tg-349-tab-panel__head {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--sl-100);
}
#tg-349-wrapper .tg-349-tab-panel__icon {
    width: 50px; height: 50px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; color: #fff; flex-shrink: 0;
}
#tg-349-wrapper .tg-349-tab-panel__icon--mobile { background: linear-gradient(135deg, var(--teal-500), var(--teal-700)); }
#tg-349-wrapper .tg-349-tab-panel__icon--pc     { background: linear-gradient(135deg, #555, #111); }
#tg-349-wrapper .tg-349-tab-panel__name { font-size: var(--fs-lg); font-weight: 800; color: var(--sl-900); margin-bottom: 4px; }
#tg-349-wrapper .tg-349-tab-panel__sub  { font-size: var(--fs-sm); color: var(--sl-500); margin-bottom: 0 !important; }

#tg-349-wrapper .tg-349-steps { display: flex; flex-direction: column; gap: 13px; counter-reset: tg349step; }
#tg-349-wrapper .tg-349-steps li {
    counter-increment: tg349step;
    display: flex; align-items: flex-start; gap: 13px;
    font-size: var(--fs-base); color: var(--text-sub); line-height: 1.75;
}
#tg-349-wrapper .tg-349-steps li::before {
    content: counter(tg349step);
    min-width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
    color: #fff; font-size: .8rem; font-weight: 900; border-radius: 50%;
    flex-shrink: 0; margin-top: 2px;
}
#tg-349-wrapper .tg-349-steps li strong { color: var(--sl-800); }
#tg-349-wrapper .tg-349-tip-box {
    display: flex; align-items: flex-start; gap: 12px;
    background: rgba(20,184,166,.06); border: 1px solid rgba(20,184,166,.18);
    border-radius: var(--radius-sm); padding: 16px 18px;
    margin-top: 18px; font-size: var(--fs-base); color: var(--text-sub); line-height: 1.75;
}
#tg-349-wrapper .tg-349-tip-box .material-symbols-outlined { font-size: 1.3rem; color: var(--teal-500); flex-shrink: 0; margin-top: 2px; }
#tg-349-wrapper .tg-349-tip-box--warn { background: rgba(245,158,11,.06); border-color: rgba(245,158,11,.18); }
#tg-349-wrapper .tg-349-tip-box--warn .material-symbols-outlined { color: var(--amb-500); }

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

/* ═════════════════════════════════════════
   반응형
═════════════════════════════════════════ */
@media (min-width: 768px) { #tg-349-wrapper .tg-349-demo { flex-direction: row; align-items: flex-start; justify-content: center; gap: 28px; } }
@media (min-width: 900px) {
    #tg-349-wrapper .tg-349-hero { padding: 80px 56px 90px; }
    #tg-349-wrapper .tg-349-section, #tg-349-wrapper .tg-349-intro { padding: 52px 48px; }
}
