/* style-pages.css - Landing, phone, modal, community, internet page styles */
/* Version: 9.9.3 (Latest Update) */

/* ================================== */
/* ======== index.html (?�딩) ======== */
/* ================================== */
.landing-container { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    width: 100%; 
    min-height: 100vh; 
    background: linear-gradient(135deg, #f8faff 0%, #e8f0fe 100%); 
    text-align: center;
    padding: 30px 20px;
    box-sizing: border-box;
}
.landing-content { max-width: 800px; width: 100%; }
.hero-section { margin-bottom: 35px; }
.landing-logo { 
    max-width: 350px; 
    width: 90%; 
    margin-bottom: 20px; 
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.08)); 
    cursor: default;
}
.landing-logo:hover {
    transform: none;
}
.hero-title { 
    font-size: 2rem; 
    font-weight: 800; 
    color: #1e293b; 
    line-height: 1.2; 
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.hero-subtitle { 
    font-size: 1rem; 
    color: #64748b; 
    line-height: 1.5;
    margin-bottom: 0;
}

.landing-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 16px; 
    margin-bottom: 30px;
}

.menu-card {
    display: flex;
    flex-direction: column; /* 가로에서 세로 배치로 변경하여 중앙 정렬 강조 */
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background: white;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    border: 1px solid rgba(226, 232, 240, 0.8);
    text-align: center; /* 텍스트 중앙 정렬 */
    height: 100%;
    box-sizing: border-box;
}

.menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 20px -5px rgba(0,0,0,0.08);
    border-color: #1a73e8;
}

.card-icon {
    width: 56px; /* 아이콘 크기 약간 확대 */
    height: 56px;
    background: #f0f7ff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px; /* 세로 배치이므로 아래쪽 여백 */
    margin-right: 0; /* 기존 가로 배치 여백 제거 */
    color: #1a73e8;
    font-size: 1.6rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.card-icon i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.menu-card:hover .card-icon {
    background: #1a73e8;
    color: white;
}

.card-info {
    display: flex;
    flex-direction: column;
    align-items: center; /* 내부 요소 가로 중앙 정렬 */
    justify-content: center;
}

.card-info h3 { 
    font-size: 1.1rem; 
    font-weight: 700; 
    color: #1e293b; 
    margin: 0 0 8px 0; 
    line-height: 1.3;
}
.card-info p { 
    font-size: 0.85rem; 
    color: #64748b; 
    margin: 0; 
    line-height: 1.5;
    word-break: keep-all; /* 한글 줄바꿈 최적화 */
}

.landing-footer { 
    color: #94a3b8; 
    font-size: 0.8rem; 
}

/* 모바일 대응 */
@media (max-width: 640px) {
    .hero-title { font-size: 1.8rem; }
    .landing-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 12px; 
    }
    .hero-section { margin-bottom: 30px; }
    .menu-card { 
        padding: 20px 10px; 
    }
    .card-icon {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    .card-info h3 {
        font-size: 0.95rem;
    }
    .card-info p {
        font-size: 0.75rem;
    }
}

/* 폰82 랜딩 페이지 다크모드 적용 */
body.dark-mode .landing-container {
    background: radial-gradient(circle at top, #1e293b 0%, #0f172a 100%) !important;
}
body.dark-mode .hero-title { color: #f8fafc; }
body.dark-mode .hero-subtitle { color: #94a3b8; }
body.dark-mode .menu-card {
    background: #1e293b;
    border-color: #334155;
}
body.dark-mode .menu-card:hover {
    border-color: #3b82f6;
    background: #232f45;
}
body.dark-mode .card-info h3 { color: #f1f5f9; }
body.dark-mode .card-info p { color: #94a3b8; }
body.dark-mode .card-icon { background: #0f172a; color: #3b82f6; }
body.dark-mode .menu-card:hover .card-icon { background: #3b82f6; color: white; }
body.dark-mode .landing-logo {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
}

/* ================================== */
/* == index.html 랜딩 벤토 개편 (2026-07, 참고용.png 시안 기준) == */
/* 흰 카드 + 보라(#9750F9)→파랑(#4D8DFF) 그라디언트 포인트.            */
/* 계산기 일러스트는 고해상도 투명 PNG, 차트는 선명한 코드 기반 그래픽 사용. */
/* 기존 .menu-card/.landing-grid는 사용 중단(마크업에서 제거됨).       */
/* .card-icon 계열은 phone.html 선택 화면(.choice-card)이 쓰므로 유지. */
/* ================================== */
.landing-container {
    /* 라벤더빛 회색 바탕 + 로고 뒤 은은한 글로우 */
    background: radial-gradient(ellipse 640px 380px at 50% 140px, #ffffff 0%, #f4f3f6 72%);
}
.landing-content { max-width: 1040px; }
.landing-logo { max-width: 260px; margin-bottom: 14px; }
.hero-section { margin-bottom: 26px; }
.hero-title { font-size: 1.55rem; }
.hero-subtitle { font-size: 0.95rem; }

/* 랜딩의 다크모드 토글: 시안처럼 흰 카드 버튼 */
body:has(.landing-container) .icon-button.btn-dark-mode-toggle {
    background: #fff;
    border: 1px solid #ecebf2;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(60, 60, 90, 0.08);
    color: #374151;
}
/* 기본 스타일이 글자를 흰색으로 강제하므로 흰 카드 위에서는 어두운 색으로 되돌린다 */
body:not(.dark-mode):has(.landing-container) .icon-button.btn-dark-mode-toggle span,
body:not(.dark-mode):has(.landing-container) .icon-button.btn-dark-mode-toggle i {
    color: #374151;
}
body.dark-mode:has(.landing-container) .icon-button.btn-dark-mode-toggle {
    background: #1f2937;
    border-color: #374151;
    color: #f9fafb;
}

.bento-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 34px;
    grid-template-columns: repeat(4, 1fr);
    grid-template-areas:
        "feat feat live live"
        "feat feat net  notice";
    grid-template-rows: minmax(218px, auto) minmax(152px, auto);
    text-align: left;
}
.tile {
    border-radius: 22px;
    padding: 26px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(76, 60, 140, 0.12);
}
.tile h2, .tile h3 { margin: 0; letter-spacing: -0.01em; }
.tile p { margin: 0; }
/* 전역 h2/h3 가운데 정렬의 영향을 받지 않도록 타일 내부는 왼쪽 정렬로 고정 */
.tile h2, .tile h3, .tile p { text-align: left; }

/* ---- 큰 타일: 흰 카드 + 3D 계산기 일러스트 ---- */
.tile-feature {
    grid-area: feat;
    position: relative;
    background: #fff;
    border: 1px solid #ecebf2;
    box-shadow: 0 6px 24px rgba(60, 60, 90, 0.06);
    color: #171c28;
    justify-content: space-between;
    min-height: 386px;
    overflow: hidden;
}
.tile-kicker {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #9750f9;
}
.tile-kicker .spark { font-size: 0.85em; margin-right: 2px; }
.tile-feature h2 {
    margin: 12px 0 10px;
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.32;
    color: #171c28;
}
/* "유리한" 강조: 보라→파랑 그라디언트 텍스트 */
.grad-text {
    background: linear-gradient(90deg, #9750f9, #4d8dff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #7c5cfa; /* 미지원 브라우저 폴백 */
}
.tile-feature p { font-size: 0.98rem; font-weight: 500; color: #6b7280; }
.tile-feature-bottom {
    border-top: 1px solid #eef0f4;
    margin-top: 20px;
    padding-top: 18px;
    /* 오른쪽의 일러스트와 겹치지 않게 CTA 영역 확보 */
    padding-right: 210px;
}
.tile-cta {
    align-self: flex-start;
    width: fit-content;          /* 글자 길이만큼만 — 버튼이 넓게 퍼지지 않도록 고정 */
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    background: linear-gradient(90deg, #8b5cf6, #4c8dff);
    color: #fff;
    padding: 11px 22px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(124, 92, 246, 0.35);
    transition: box-shadow 0.2s ease, filter 0.2s ease;
}
.tile-feature:hover .tile-cta { filter: brightness(1.06); box-shadow: 0 8px 20px rgba(124, 92, 246, 0.45); }
/* 폴드 펼침 화면에서는 일러스트가 CTA를 덮지 않도록 표시 순서만 조정한다. */
@media (min-width: 641px) and (max-width: 860px) {
    .tile-cta {
        position: relative;
        z-index: 2;
    }
}
.tile-calc-art {
    position: absolute;
    right: 12px;
    bottom: -18px;
    width: 220px;
    height: auto;
    pointer-events: none;
    filter: drop-shadow(0 20px 24px rgba(44, 35, 83, 0.18));
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.tile-feature:hover .tile-calc-art { transform: translateY(-5px) rotate(1deg); }

/* ---- LIVE 타일: 다크 네이비 + 코드 기반 상승형 차트 ---- */
.tile-live {
    grid-area: live;
    flex-direction: row;
    align-items: stretch;
    gap: 20px;
    background: #141b2a;
    color: #fff;
    overflow: hidden;
}
.tile-live-info { display: flex; flex: 0 0 41%; flex-direction: column; justify-content: center; gap: 6px; min-width: 0; }
.tile-live h3 { margin-top: 4px; font-size: 1.05rem; font-weight: 800; color: #fff; }
.tile-live p { font-size: 0.8rem; color: #99a2b5; }
.market-viz {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.market-chart { display: block; width: min(100%, 238px); height: auto; overflow: visible; }
.chart-grid path { fill: none; stroke: rgba(106, 122, 157, 0.15); stroke-width: 1; stroke-dasharray: 2 7; }
.chart-specks circle { fill: #7955d9; opacity: 0.42; }
.chart-bars rect { fill: url(#marketBar); filter: drop-shadow(0 0 8px rgba(92, 76, 255, 0.64)); }
.chart-area { fill: url(#marketShade); }
.chart-line-back { fill: none; stroke: rgba(143, 92, 255, 0.32); stroke-width: 12; stroke-linejoin: round; stroke-linecap: round; }
.chart-line { fill: none; stroke: url(#marketLine); stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; }
.chart-dot-current { fill: #b54dff; stroke: #e1b8ff; stroke-width: 3; filter: url(#marketGlow); }
.live-badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    color: #3ddc84;
    background: rgba(61, 220, 132, 0.12);
    padding: 3px 10px;
    border-radius: 999px;
}
.live-badge i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3ddc84;
    animation: livePulse 1.6s ease-in-out infinite;
}
/* 게시 가능 시간(09~20시 KST) 외에는 회색 "09시 오픈" 상태로 표시 (index.html 인라인 스크립트가 토글) */
.live-badge.off {
    color: #9aa4b6;
    background: rgba(154, 164, 182, 0.16);
}
.live-badge.off i {
    background: #9aa4b6;
    animation: none;
}
@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}
@media (prefers-reduced-motion: reduce) {
    .live-badge i { animation: none; }
    .tile, .tile:hover { transition: none; transform: none; }
}

/* ---- 작은 타일: 흰 카드 + 연보라 아이콘 칩 + 원형 화살표 ---- */
.tile-small {
    position: relative;
    background: #fff;
    border: 1px solid #ecebf2;
    box-shadow: 0 6px 24px rgba(60, 60, 90, 0.05);
    color: #171c28;
    gap: 5px;
    padding-right: 44px; /* 원형 화살표 자리 (설명이 한 줄에 들어가도록 최소만) */
}
.tile-small h3 { font-size: 1rem; font-weight: 800; color: #171c28; }
.tile-small p { font-size: 0.74rem; color: #7c8598; white-space: nowrap; }
.tile-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #efeafe;
    color: #7c5cfa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    margin-bottom: 12px;
}
.tile-icon.tile-icon-3d {
    position: relative;
    width: 76px;
    height: 68px;
    margin-bottom: 9px;
    overflow: visible;
    border-radius: 0;
    background: transparent;
    color: inherit;
    filter: drop-shadow(0 10px 12px rgba(45, 71, 125, 0.18));
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.tile-icon-3d::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../images/landing-secondary-icons-v1.png');
    background-repeat: no-repeat;
    background-size: 200% 100%;
}
.tile-icon-internet::before { background-position: 0 0; }
.tile-icon-notice::before { background-position: 100% 0; }
.tile-small:hover .tile-icon-3d { transform: translateY(-3px) rotate(-1deg); }
.tile-go {
    position: absolute;
    right: 18px;
    bottom: 26px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #e5e5ee;
    background: #fff;
    color: #4b5563;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: background 0.2s ease, color 0.2s ease;
}
.tile-small:hover .tile-go { background: #7c5cfa; border-color: #7c5cfa; color: #fff; }

/* ---- 푸터 장식 ---- */
.footer-ornament {
    color: #b9aef2;
    font-size: 0.8rem;
    margin-bottom: 12px;
    border-top: 1px solid #e9e7f0;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    height: 0;
}
.footer-ornament span {
    position: relative;
    top: -0.6em;
    background: #f4f3f6;
    padding: 0 12px;
}

@media (max-width: 640px) {
    .landing-container {
        min-height: 100svh;
        align-items: center;
        padding: 16px 10px 22px;
        background: #f5f7fa;
    }
    .landing-content {
        max-width: 390px;
    }
    .hero-section {
        margin-bottom: 14px;
        padding: 0 8px;
    }
    .phone82-brand--landing {
        width: 210px;
    }
    .phone82-brand--landing .phone82-brand__bubble {
        font-size: 0.58rem;
    }
    .phone82-brand--landing .phone82-brand__wordmark {
        font-size: 1.55rem;
    }
    .hero-title {
        max-width: 340px;
        margin: 14px auto 8px !important;
        font-size: 1.35rem;
        line-height: 1.24;
        letter-spacing: 0;
        word-break: keep-all;
        overflow-wrap: normal;
    }
    .hero-subtitle {
        max-width: 344px;
        margin: 0 auto;
        font-size: 0.75rem;
        line-height: 1.45;
    }
    .bento-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-areas:
            "feat feat feat"
            "live net notice";
        grid-template-rows: 176px 112px;
        column-gap: 0;
        row-gap: 8px;
        margin-bottom: 10px;
    }
    .tile {
        padding: 10px 8px;
        border-radius: 8px;
    }
    .tile:hover {
        transform: none;
    }
    .tile-feature {
        min-height: 176px;
        height: 176px;
        padding: 14px 15px;
        border-color: #dce6f5;
        box-shadow: 0 5px 16px rgba(40, 62, 92, 0.08);
    }
    .tile-kicker {
        font-size: 0.58rem;
        color: #246fda;
    }
    .tile-feature h2 {
        width: 58%;
        margin: 6px 0 5px;
        font-size: 1.02rem;
        line-height: 1.3;
    }
    .tile-feature p {
        width: 56%;
        font-size: 0.62rem;
        line-height: 1.35;
        word-break: keep-all;
    }
    .tile-feature-bottom {
        width: 56%;
        margin-top: auto;
        padding: 7px 0 0;
        border-top: 0;
    }
    .tile-cta {
        gap: 5px;
        padding: 7px 10px;
        border-radius: 8px;
        background: #2f80ed;
        font-size: 0.64rem;
        box-shadow: 0 4px 9px rgba(47, 128, 237, 0.25);
    }
    .tile-calc-art {
        width: 142px;
        right: -2px;
        bottom: -8px;
        filter: drop-shadow(0 12px 14px rgba(44, 65, 96, 0.16));
    }

    .tile-live,
    .tile-small {
        min-width: 0;
        min-height: 112px;
        height: 112px;
        padding: 7px 5px;
        border: 1px solid #dfe5ed;
        border-radius: 0;
        background: #fff;
        box-shadow: 0 3px 10px rgba(40, 62, 92, 0.05);
        color: #171c28;
        align-items: center;
        text-align: center;
        overflow: hidden;
    }
    .tile-live {
        position: relative;
        flex-direction: column;
        gap: 2px;
        border-right: 0;
        border-radius: 8px 0 0 8px;
    }
    .tile-small[href="internet.html"] {
        border-right: 0;
    }
    .tile-small[href="noticeboard.html"] {
        border-radius: 0 8px 8px 0;
    }
    .tile-live-info {
        flex: none;
        width: 100%;
        align-items: center;
        justify-content: flex-start;
        gap: 5px;
    }
    .tile-live h3,
    .tile-small h3 {
        margin: 0;
        color: #171c28;
        font-size: 0.7rem;
        line-height: 1.22;
        text-align: center;
        word-break: keep-all;
    }
    .tile-live p,
    .tile-small p {
        margin: 0;
        padding: 0;
        color: #7c8598;
        width: 100%;
        overflow: hidden;
        font-size: 0.47rem;
        line-height: 1.25;
        text-align: center;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
    .market-viz {
        order: -1;
        flex: 0 0 48px;
        width: 76px;
        min-height: 48px;
        margin: 5px auto 8px;
    }
    .market-chart {
        width: 76px;
    }
    .live-badge {
        position: absolute;
        top: 6px;
        left: 6px;
        gap: 3px;
        padding: 2px 5px;
        font-size: 0.44rem;
    }
    .live-badge i {
        width: 4px;
        height: 4px;
    }
    .tile-icon.tile-icon-3d {
        width: 56px;
        height: 50px;
        margin: 5px auto 3px;
        filter: drop-shadow(0 7px 8px rgba(45, 71, 125, 0.15));
    }
    .tile-go {
        display: none;
    }
    .landing-footer {
        margin-top: 0;
        font-size: 0.68rem;
    }
    .landing-footer p {
        margin: 4px 0;
    }
    .landing-footer .footer-ornament {
        margin-bottom: 9px;
    }

    body:has(.landing-container) #popup-notice-reopen-btn {
        position: static;
        inset: auto;
        z-index: auto;
        align-items: center;
        justify-content: center;
        gap: 6px;
        width: fit-content;
        min-height: 34px;
        margin: 0 auto 12px;
        padding: 7px 12px;
        border: 1px solid #d8e2f0;
        border-radius: 8px;
        background: #fff;
        color: #276fc9;
        font-size: 0.68rem;
        box-shadow: 0 3px 8px rgba(40, 62, 92, 0.1);
    }
    body:has(.landing-container) #popup-notice-reopen-btn.show {
        display: inline-flex;
    }
    body.dark-mode:has(.landing-container) #popup-notice-reopen-btn {
        border-color: #3b475a;
        background: #202938;
        color: #8ec5ff;
    }

    body.dark-mode .tile-live h3 { color: #f1f5f9; }
    body.dark-mode .tile-live p { color: #94a3b8; }

    body:has(.landing-container) .top-right-buttons {
        top: 8px !important;
        right: 8px !important;
        transform: none !important;
    }
    body:has(.landing-container) .icon-button.btn-dark-mode-toggle {
        width: 42px !important;
        height: 42px !important;
        padding: 0 !important;
        border: 1px solid #d8dee8 !important;
        border-radius: 10px !important;
        background: #f8fafc !important;
        box-shadow: 0 3px 0 #d6dce5, 0 6px 12px rgba(36, 48, 66, 0.13) !important;
    }
    body:has(.landing-container) .icon-button.btn-dark-mode-toggle > i {
        display: none !important;
    }
    body:has(.landing-container) .icon-button.btn-dark-mode-toggle > span {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        padding: 0 !important;
        margin: -1px !important;
        overflow: hidden !important;
        clip: rect(0, 0, 0, 0) !important;
        white-space: nowrap !important;
        border: 0 !important;
    }
    body:has(.landing-container) .icon-button.btn-dark-mode-toggle::before {
        content: '☾';
        color: #343d4d;
        font-family: 'Segoe UI Symbol', sans-serif;
        font-size: 1.55rem;
        font-weight: 700;
        line-height: 1;
        text-shadow: 0 2px 0 #c8ced8, 0 3px 3px rgba(36, 48, 66, 0.2);
        transform: rotate(-10deg);
    }
    body.dark-mode:has(.landing-container) .icon-button.btn-dark-mode-toggle {
        background: #29313e !important;
        border-color: #4a5668 !important;
        box-shadow: 0 3px 0 #111827, 0 6px 12px rgba(0, 0, 0, 0.34) !important;
    }
    body.dark-mode:has(.landing-container) .icon-button.btn-dark-mode-toggle::before {
        content: '☀';
        color: #f4bd3f;
        font-size: 1.35rem;
        text-shadow: 0 2px 0 #8c6717, 0 3px 4px rgba(0, 0, 0, 0.34);
        transform: none;
    }
}

/* ---- 벤토 다크모드 ---- */
body.dark-mode .tile-feature {
    background: #1e2434;
    border-color: #2b3242;
    box-shadow: none;
}
body.dark-mode .tile-feature h2 { color: #f1f5f9; }
body.dark-mode .tile-feature p { color: #94a3b8; }
body.dark-mode .tile-feature-bottom { border-top-color: #2b3242; }
body.dark-mode .tile-calc-art { filter: drop-shadow(0 22px 28px rgba(0, 0, 0, 0.48)); }
body.dark-mode .tile-small {
    background: #1e293b;
    border-color: #334155;
    box-shadow: none;
}
body.dark-mode .tile-small h3 { color: #f1f5f9; }
body.dark-mode .tile-small p { color: #94a3b8; }
body.dark-mode .tile-icon { background: #2a2d4a; color: #a78bfa; }
body.dark-mode .tile-icon.tile-icon-3d { background: transparent; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.38)); }
body.dark-mode .tile-go { background: #1e293b; border-color: #334155; color: #cbd5e1; }
body.dark-mode .tile-small:hover .tile-go { background: #7c5cfa; border-color: #7c5cfa; color: #fff; }
body.dark-mode .tile-live { background: #141b2a; border: 1px solid #232a44; }
body.dark-mode .tile:hover { box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45); }
body.dark-mode .footer-ornament { border-top-color: #2b3242; color: #6d5fb0; }
body.dark-mode .footer-ornament span { background: #0f172a; }


/* ================================== */
/* ======== phone.html 개편 ======== */
/* ================================== */
.page-header {
    text-align: center;
    padding: 40px 0 20px 0;
    margin-bottom: 30px;
}
.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
.page-logo {
    max-width: 350px; /* 로고 크기 적정 수준으로 조정 */
    width: 90%; /* 모바일 대응 */
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.08)); 
    cursor: default; /* 클릭 불가 표시 */
}
.page-logo:hover {
    transform: none;
}
.header-info h1 {
    font-size: 2.2rem; /* 제목 크기도 로고에 맞춰 확대 */
    font-weight: 800;
    color: #1e293b;
    margin: 10px 0 5px 0;
}
.header-info p {
    font-size: 1rem;
    color: #64748b;
    margin: 0;
}

.content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3열 고정 (3x3x3용) */
    gap: 16px;
    margin: 0 auto 40px auto;
    max-width: 1000px;
}

/* 인터넷 등 버튼이 적을 때 중앙 정렬을 위한 특수 클래스 */
.choice-grid.centered {
    grid-template-columns: repeat(2, 320px); /* 2개 버튼 크기 고정 */
    justify-content: center;
    max-width: 100%;
}

.choice-card {
    background: white;
    border-radius: 16px;
    padding: 24px 16px; /* 패딩 대폭 확대 */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.choice-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px -10px rgba(0,0,0,0.12);
    border-color: #1a73e8;
}

.choice-card .card-icon {
    width: 52px; /* 아이콘 크기 확대 */
    height: 52px;
    background: #f0f7ff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a73e8;
    font-size: 1.4rem; /* 아이콘 폰트 확대 */
    flex-shrink: 0;
    line-height: 1;
}

.choice-card .card-icon i {
    display: flex;
    align-items: center;
    justify-content: center;
}

.choice-card .card-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.choice-card .card-info strong {
    font-size: 1.05rem; /* 제목 크기 시원하게 확대 */
    color: #1e293b;
    line-height: 1.3;
    word-break: keep-all;
    font-weight: 700;
}

.choice-card .card-info span {
    font-size: 0.85rem; /* 설명 크기 확대 */
    color: #64748b;
    line-height: 1.4;
    word-break: keep-all;
}

/* 위약금 계산기 강조 스타일 */
.choice-card.highlight-card {
    border-color: #f59e0b;
    background-color: #fffbeb;
}
.choice-card.highlight-card .card-icon {
    background-color: #fef3c7;
    color: #d97706;
}
.choice-card.highlight-card .card-info strong {
    color: #92400e;
}

/* 모바일 전용 3열 그리드 배치 및 크기 조정 */
@media (max-width: 640px) {
    .choice-grid {
        grid-template-columns: repeat(3, 1fr) !important; /* 기본 3열 (phone.html용) */
        gap: 8px;
    }
    
    /* 인터넷 페이지 등 중앙 정렬용 모바일 대응 */
    .choice-grid.centered {
        grid-template-columns: repeat(2, 1fr) !important; /* 모바일에서 2열로 정렬 */
        justify-content: center;
        max-width: 100%;
    }

    .choice-card {
        padding: 15px 4px; 
        gap: 6px;
        border-radius: 10px;
    }
    .choice-card .card-icon {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }
    .choice-card .card-info strong {
        font-size: 0.75rem; /* 3열에 맞춰 제목 축소 */
        letter-spacing: -0.02em;
    }
    .choice-card .card-info span {
        font-size: 0.6rem; /* 3열에 맞춰 설명 축소 */
        display: block;
        opacity: 0.8;
    }
}

/* 다크모드 강조 카드 대응 */
body.dark-mode .choice-card.highlight-card {
    background: #451a03;
    border-color: #b45309;
}
body.dark-mode .choice-card.highlight-card .card-icon {
    background: #78350f;
    color: #fbbf24;
}
body.dark-mode .choice-card.highlight-card .card-info strong {
    color: #fef3c7;
}

/* 다크모드 대응 */
body.dark-mode .header-info h1 { color: #f8fafc; }
body.dark-mode .header-info p { color: #94a3b8; }
body.dark-mode .choice-card {
    background: #1e293b;
    border-color: #334155;
}
body.dark-mode .choice-card .card-info strong { color: #f1f5f9; }
body.dark-mode .choice-card .card-info span { color: #94a3b8; }
body.dark-mode .choice-card .card-icon { background: #0f172a; }

.page-footer { 
    margin-top: 50px;
    padding: 30px 20px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    color: #94a3b8;
    font-size: 0.85rem;
}

.footer-contact {
    margin-top: 8px;
}

.footer-contact a {
    color: #1a73e8;
    text-decoration: none;
    font-weight: 500;
}

.footer-contact a:hover {
    text-decoration: underline;
}

/* 다크모드 대응 */
body.dark-mode .page-footer {
    border-top-color: #334155;
    color: #64748b;
}

/* ================================== */
/* ======== phone.html ????======== */
/* ================================== */
/* 계산기 활성화 시 메뉴 카드만 숨기고 상단은 유지 */
.calculator-active #calculator-choice-wrapper {
    display: none; /* 메뉴 카드만 완전 숨김 */
}

.calculator-active .page-header {
    padding: 20px 0 10px 0; /* 여백만 살짝 최적화 */
}

/* 계산기 다시 선택하기 버튼 스타일 */
.btn-back-to-menu {
    display: none; /* 기본적으로는 숨김 */
    margin-top: 15px;
    padding: 10px 20px;
    background-color: var(--primary-light, #e8f0fe);
    color: var(--primary, #1a73e8);
    border: 1px solid var(--primary, #1a73e8);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-back-to-menu:hover {
    background-color: var(--primary, #1a73e8);
    color: white;
}

.btn-back-to-menu i {
    margin-right: 6px;
}

/* 계산기 활성화 시에만 버튼 표시 */
.calculator-active .btn-back-to-menu {
    display: inline-flex;
    align-items: center;
}

/* 헤더 내 액션 버튼 묶음 (계산기 다시 선택하기 + 일할 계산 토글) */
.header-action-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

/* 묶음 안에서는 개별 margin-top 제거 (wrapper의 margin-top 사용) */
.header-action-buttons .btn-back-to-menu {
    margin-top: 0;
}

.header-action-buttons #prorate-option-group {
    margin: 0 !important;
}

/* 결과 섹션 위치 조정 */
#result {
    margin-top: 20px;
}

.hidden-column { display: none !important; }

/* 단독 계산 모드일 때 테이블의 4, 5번째 열 숨김 */
.single-mode-table th:nth-child(4),
.single-mode-table th:nth-child(5),
.single-mode-table td:nth-child(4),
.single-mode-table td:nth-child(5) {
    display: none !important;
}

.top-right-buttons {
    position: absolute; 
    top: 20px; 
    right: 20px; 
    z-index: 10;
    display: flex; /* Flexbox ?�이?�웃 ?�용 */
    align-items: flex-start; /* 버튼?�을 ?�쪽 기�??�로 ?�렬 */
    gap: 16px; /* 버튼 ?�이??간격 (?�하??만큼 조절) */
}
.top-left-buttons {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    display: flex; /* 가�?배치�??�해 추�? */
    gap: 10px; /* 버튼 ?�이 간격 추�? */
}
.top-left-buttons .icon-button {
    color: #6c757d; /* 기존 ?�른�??�이콘과 ?�일???�상 */
}

.top-left-buttons .icon-button:hover {
    color: #1a73e8; /* ?�버 ???�상 변�?*/
}
.icon-button {
    display: flex;
    flex-direction: column; /* ?�이콘과 ?�스?��? ?�로�?배치 */
    align-items: center;   /* 가�?중앙 ?�렬 */
    justify-content: center; /* ?�로 중앙 ?�렬 */
    padding: 5px; /* ?�딩 추�? */
    border: none;
    background: none;
    cursor: pointer;
    width: 60px; /* 버튼???�비�??�간 ?�림 */
    color: #6c757d;
    transition: all 0.2s ease; /* 부?�러???�환 ?�과 */
    border-radius: 8px; /* ?�근 모서�?*/
}
.icon-button:hover { 
    background-color: rgba(0,0,0,0.05); /* ?�버 ???�한 배경 */
    transform: translateY(-2px); /* ?�짝 ?�오르는 ?�과 */
}

/* 메뉴 버튼 강조 ?��???(강력 추천) */
.icon-button.btn-menu {
    background-color: #1a73e8; /* 브랜???��???배경 */
    color: #ffffff; /* ?�색 글??*/
    width: 70px; /* ?�기 ?�간 ?��? */
    height: 70px;
    border-radius: 15px; /* ???�근 ?�각??*/
    box-shadow: 0 4px 15px rgba(26, 115, 232, 0.3); /* ?�른�?그림??*/
    margin-right: -5px; /* ?�측 배치�??�해 마진 조정 */
    position: relative;
    overflow: hidden;
}

.icon-button.btn-menu .hamburger-icon .bar {
    background-color: #ffffff; /* ?�색 ?�버�?�?*/
    height: 4px; /* �??�께 보강 */
}

.icon-button.btn-menu span {
    color: #ffffff;
    font-weight: bold;
    font-size: 13px;
    margin-top: 6px;
}

.icon-button.btn-menu:hover {
    background-color: #155ab6; /* ?�버 ????진한 ?�랑 */
    transform: scale(1.08); /* 마우???�리�??�짝 커짐 */
    box-shadow: 0 6px 20px rgba(26, 115, 232, 0.4);
}

/* ?�선???�는 부?�러???�림 ?�니메이??*/
@keyframes pulse-blue {
    0% { box-shadow: 0 0 0 0 rgba(26, 115, 232, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(26, 115, 232, 0); }
    100% { box-shadow: 0 0 0 0 rgba(26, 115, 232, 0); }
}

.icon-button.btn-menu {
    animation: pulse-blue 2s infinite; /* 2초마???�?�?�게 빛나???�과 */
}

/* 메뉴 ?��? ?�이�??�상 보강 */
.icon-button.btn-menu:hover .hamburger-icon .bar {
    background-color: #ffffff;
}

/* 초기??버튼 - 메뉴?� ?�일�??�는 ?�브 ?��???*/
.icon-button.btn-reset {
    background-color: #ffffff; /* 차분???�색 배경 */
    border: 1px solid #dee2e6; /* 깔끔???�두�?*/
    color: #d93025;
    width: 70px;
    height: 70px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.icon-button.btn-reset i {
    color: #d93025;
    font-size: 1.2em;
    margin-bottom: 2px;
}

.icon-button.btn-reset span {
    color: #6c757d;
    font-size: 12px;
    font-weight: 500;
}

.icon-button.btn-reset:hover {
    background-color: #fff5f5;
    border-color: #f5c6cb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.icon-button span { 
    font-size: 11px; /* 글???�기 ?�간 조정 */
    margin-top: 4px; 
    white-space: nowrap; 
    font-weight: 500; /* 글???�께 ?�간 추�? */
}
.icon-button > .fas, /* 초기???�이�?*/
.icon-button > .hamburger-icon { /* 메뉴 ?�이�?*/
    height: 24px;   /* ?�이�??�역???�이�?강제�?맞춤 */
    width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px; /* ?�이콘과 ?�스???�이 간격 */
}
.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.hamburger-icon .bar {
    display: block;
    width: 100%;
    height: 3px; /* ?�버�?�??�께 */
    background-color: currentColor; /* ?�재 ?�스???�상???�라�?*/
    border-radius: 1px;
}
.action-buttons { position: absolute; top: 20px; left: 20px; display: flex; gap: 10px; z-index: 10; }
.action-buttons button { padding: 8px 15px; font-size: 0.9em; border-radius: 5px; border: 1px solid #1a73e8; background-color: #1a73e8; color: #fff; cursor: pointer; }
.view-mode-buttons { text-align: center; margin-bottom: 20px; }
.view-mode-buttons button { padding: 10px 20px; margin: 0 5px; border: 1px solid #1a73e8; border-radius: 5px; background-color: #fff; color: #1a73e8; font-size: 1em; cursor: pointer;}
.view-mode-buttons button.active { background-color: #1a73e8; color: #fff; }
.comparison-toggle { text-align: center; margin-bottom: 20px; }
.monthly-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.monthly-table th, .monthly-table td { border: 1px solid #ddd; padding: 8px; text-align: center; }
.monthly-table th { background: #f2f2f2; }
.monthly-table-wrapper { width: 100%; overflow-x: hidden; } /* 모바??가�??�크롤을 ?�해 추�? */

/* 월별 청구 상세내역 토글 버튼 */
.monthly-detail-toggle-wrapper {
    text-align: center;
    margin-top: 16px;
}

.monthly-detail-toggle-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background-color: var(--primary-light, #e8f0fe);
    color: var(--primary, #1a73e8);
    border: 1px solid var(--primary, #1a73e8);
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.monthly-detail-toggle-button:hover {
    background-color: var(--primary, #1a73e8);
    color: #fff;
}

.monthly-detail-toggle-button.active {
    background-color: var(--primary, #1a73e8);
    color: #fff;
}

.monthly-detail-toggle-button .monthly-detail-toggle-chevron {
    transition: transform 0.2s ease;
}

.monthly-detail-toggle-button.active .monthly-detail-toggle-chevron {
    transform: rotate(180deg);
}

body.dark-mode .monthly-detail-toggle-button {
    background-color: #1f2937;
    color: #93c5fd;
    border-color: #3b82f6;
}

body.dark-mode .monthly-detail-toggle-button:hover,
body.dark-mode .monthly-detail-toggle-button.active {
    background-color: #3b82f6;
    color: #fff;
}
.winner { font-size: 1.2em; font-weight: bold; color: #1e8e3e; margin-bottom: 15px; text-align: center;}
#discount-breakdown { display: flex; gap: 15px; margin-top: 20px; flex-wrap: wrap; justify-content: center; align-items: flex-start; }
.carrier-breakdown-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
    min-width: 320px;
}
.tooltip-icon { cursor: help; margin-left: 5px; color: #666; position: relative; display: inline-block; }
.tooltip-text {
    visibility: hidden;
    width: 250px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -125px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.75em !important; /* ?�팁 글�?축소 */
    word-break: keep-all; /* 한국어 단어 단위 줄바꿈 (단어 중간에서 끊지 않음) */
    overflow-wrap: break-word; /* 너무 긴 단어/URL은 강제로 끊어 컨테이너 밖으로 안 나가게 */
    line-height: 1.5; /* 자동 줄바꿈된 텍스트 가독성 향상 */
}
.tooltip-icon:hover .tooltip-text { visibility: visible; opacity: 1; }

.tooltip-icon.icon-highlight {
    color: #d93025; /* 빨간?�으�?강조 */
    font-weight: bold;
    display: inline-block; /* ?�니메이???�용???�해 */
}

.tooltip-text.highlight {
    background-color: #d93025; /* 강렬??빨간??배경 */
    color: #fff;
    font-weight: bold;
    border: 2px solid #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    width: 280px; /* ?�비 ?�간 증�? */
    margin-left: -140px; /* 중앙 ?�렬 보정 */
    z-index: 100; /* ?�른 ?�소보다 ?�에 ?�시 */
}

/* ================================== */
/* ======== Modal 공통 ?��???======== */
/* ================================== */
.modal {
    display: none; /* 기본?�으�??��? */
    position: fixed; /* ?�면??고정 */
    z-index: 1000; /* ?�른 ?�소???�에 ?�도�??�정 */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* ?�용??�?경우 ?�크�?*/
    background-color: rgba(0,0,0,0.6); /* 반투�?검?�??배경 */
}

.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 1000; }
.modal-content { 
    position: relative; /* ?�정: fixed -> relative */
    background: #fff; 
    margin: 10% auto; /* ?�단 ?�백 �?가�?중앙 ?�렬 */
    padding: 30px; 
    border-radius: 10px; 
    z-index: 1001; 
    width: 90%; 
    max-width: 800px; /* ?�비 조정: 600px -> 800px */
    max-height: 80vh; 
    overflow-y: auto; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); /* 그림???�과 추�? */
}
.modal-close-button { position: absolute; top: 15px; right: 15px; font-size: 1.8em; cursor: pointer; }
/* ?��? 계산�?모달???�기 버튼 ?��???*/
.close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.8em;
    cursor: pointer;
}
.modal-footer { margin-top: 25px; padding-top: 15px; border-top: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.date-calculator { 
    display: flex; 
    gap: 20px; 
    flex-wrap: nowrap; /* 좌우 ?�렬 ?��? */
    align-items: stretch;
}
.date-calculator-section { 
    flex: 1; 
    padding: 20px; 
    background: #f8f9fa; 
    border: 1px solid #eee; 
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}
/* 메뉴 버튼이 좌측 상단으로 이동하면서 서랍도 왼쪽에서 열리도록 통일 */
.sidebar-menu { position: fixed; top: 0; left: -280px; width: 280px; height: 100%; background: #fff; z-index: 2000; transition: left 0.3s ease-in-out; box-shadow: 2px 0 5px rgba(0,0,0,0.1); }
.sidebar-menu.active { left: 0; }
.sidebar-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 10px 15px 10px 20px; 
    border-bottom: 1px solid #eee; 
}
.sidebar-header h3 { margin: 0; font-size: 1.2em; }
.close-menu-btn {
    background: none;
    border: none;
    font-size: 1.5em;
    color: #6c757d;
    cursor: pointer;
    padding: 5px;
    margin-right: -5px; /* ?�측 ?�에 ??밀착시?�기 ?�해 마진 조정 */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}
.close-menu-btn:hover {
    color: #1a73e8;
}
body.dark-mode .close-menu-btn {
    color: #d1d5db;
}
body.dark-mode .close-menu-btn:hover {
    color: #60a5fa;
}
.sidebar-menu nav ul { list-style: none; padding: 0; margin: 0; }
.sidebar-menu nav a { display: block; padding: 15px 20px; color: #333; text-decoration: none; }
.sidebar-menu nav a i { margin-right: 10px; }
.footer-container { text-align: center; margin-top: 30px; padding-top: 20px; border-top: 1px solid #eee; font-size: 0.85em; color: #888; }

/* ================ ?�개글 ?��????�작 (최종 ?�정�? ================ */
.intro-text {
  max-width: 700px;
  margin: 0 auto 20px auto;
  padding: 0 20px;
  text-align: center;
}
.intro-text h2 {
  font-size: 1.1em;
  font-weight: bold;
  margin-bottom: 15px;
}

.intro-text > *:not(:first-child) {
  text-align: left;
  line-height: 1.6;
  margin-bottom: 10px;
}
/* =================================== */
/* ======== internet.html ?��???======== */
/* =================================== */
.result-breakdown { display: flex; gap: 15px; text-align: center; justify-content: space-between; padding: 10px; flex-wrap: wrap; }
.result-card { flex: 1; min-width: 200px; padding: 15px 10px; border: 1px solid #e0e0e0; border-radius: 8px; background-color: #fff; }
.result-card h4 { margin-top: 0; margin-bottom: 10px; color: #1a73e8; font-size: 1.1em; border-bottom: 1px solid #eee; padding-bottom: 8px; }
.result-card p { margin: 8px 0; font-size: 0.95em; min-height: 20px; }
.result-card hr { border: 0; border-top: 1px dashed #ccc; margin: 10px 0; }
.result-summary { text-align: right; margin-top: 20px; padding: 15px; }
.result-summary hr { margin: 10px 0 10px 50%; border: 0; border-top: 1px solid #ccc; }
.result-summary .summary-total { font-size: 1.5em; color: #1a73e8; }
.result-summary .summary-support, .result-summary .summary-contract-total { font-size: 1.1em; }
.result-table-container { max-height: 400px; overflow-y: auto; border: 1px solid #ddd; border-radius: 8px; margin-bottom: 15px; }
.result-table { width: 100%; border-collapse: collapse; text-align: center; }
.result-table thead { background-color: #f2f2f2; }
.result-table th, .result-table td { padding: 10px 8px; border-bottom: 1px solid #e0e0e0; font-size: 0.9em; }
.result-table th { font-weight: bold; }
.result-table tbody tr:last-child td { border-bottom: none; }
.result-table .plan-change-row { background-color: #fffbdd !important; font-weight: bold; }
.result-table .plan-change-row td { color: #b45309; }
.fieldset-grid-container { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.selection-fieldset { border: 1px solid #ddd; border-radius: 8px; padding: 10px 15px 5px 15px; margin-bottom: 15px; background-color: #fcfcfc; }
.selection-fieldset legend { font-weight: bold; color: #1a73e8; padding: 0 10px; font-size: 1.0em; }
.checkbox-align-group { display: flex; align-items: center; padding: 25px 0; }
.checkbox-align-group input[type="checkbox"] { margin: 0 8px 0 0; width: auto; }
.checkbox-align-group label { margin: 0; font-weight: bold; cursor: pointer; }
.fee-total { font-size: 1.1em; color: #1a73e8; text-align: right; }
.fee-note { font-size: 0.85em; color: #666; text-align: right; }
.result-subtitle { text-align: center; color: #0d47a1; font-size: 1.2em; font-weight: bold; margin-top: 25px; margin-bottom: -15px; padding: 8px; background-color: #e3f2fd; border-radius: 8px; border: 1px dashed #90caf9; }
.breakdown-card.compact { padding: 15px; display: flex; flex-direction: column; min-width: 300px; }
.breakdown-card.compact h4 { font-size: 1.1em; padding-bottom: 8px; margin-bottom: 8px; text-align: center; }
.compact-summary-list { list-style: none; padding: 0; margin: 0; font-size: 0.9em; line-height: 1.6; }
.compact-summary-list li { display: flex; justify-content: space-between; padding: 3px 0; border-bottom: 1px solid #f0f0f0; }
.compact-summary-list li:last-child { border-bottom: none; }
.compact-summary-list li span:first-child { padding-right: 10px; color: #555; word-break: keep-all; }
.compact-summary-list li span:last-child { font-weight: 500; white-space: nowrap; }
.compact-summary-list li.discount span { color: #1a73e8; }
.compact-summary-total { margin-top: auto; padding-top: 10px; }
.compact-summary-total hr { border: 0; border-top: 1px solid #ccc; margin: 8px 0; }
.compact-summary-total p { margin: 8px 0; }
.compact-summary-total .summary-total { display: flex; justify-content: space-between; align-items: center; font-size: 1.1em; font-weight: bold; color: #1a73e8; }
.compact-summary-total .summary-total strong { font-size: 1.2em; color: #d93025; }
.compact-summary-total .mobile-discount { text-align: right; font-size: 0.85em; color: #1e8e3e; font-weight: bold; }

 @media (max-width: 992px) { .fieldset-grid-container { grid-template-columns: 1fr; gap: 0; } }

/* ================================== */
/* 추�????�소 ?��???(Navbar ??       */
/* ================================== */
.navbar {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.navbar-brand a { font-size: 1.5rem; font-weight: bold; color: #333; text-decoration: none; }
.navbar-nav { list-style: none; display: flex; margin: 0; padding: 0; }
.navbar-nav li a { display: block; padding: 1.5rem 1rem; text-decoration: none; color: #555; font-weight: 500; transition: color 0.3s, background-color 0.3s; }
.navbar-nav li a:hover { color: #007bff; background-color: #f8f9fa; }
.info-section { max-width: 1200px; margin: 2rem auto; padding: 2rem; background-color: #fff; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.info-section h2 { margin-top: 0; border-bottom: 2px solid #eee; padding-bottom: 1rem; margin-bottom: 1rem; font-size: 1.4rem; }
.info-section ul { list-style: none; padding: 0; margin: 0; }
.info-section ul li { padding: 0.75rem 0.5rem; border-bottom: 1px solid #f0f0f0; display: flex; justify-content: space-between; align-items: center; }
.info-section ul li:last-child { border-bottom: none; }
.info-section ul li span:first-child { font-weight: bold; color: #007bff; margin-right: 1rem; }
.info-section ul li .date { color: #888; font-size: 0.9em; white-space: nowrap; }
.guide-section p { line-height: 1.7; color: #444; }

/* ================================== */
/* ?�▼??공�??�항 & 로그??추�? ?��????�▼??*/
/* ================================== */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 반투�?배경?�로 변�?*/
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}
.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}
.side-menu {
    position: fixed; top: 0; right: -280px; width: 280px; height: 100%;
    background-color: #fff; box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    transform: translateX(100%); transition: transform 0.3s ease-in-out;
    z-index: 1002; padding-top: 20px; box-sizing: border-box;
}
.side-menu.show { transform: translateX(0); }
.side-menu a { display: block; padding: 15px 20px; color: #333; text-decoration: none; font-size: 16px; }
.side-menu a:hover { background-color: #f1f1f1; }

.modal-content {
    max-height: 85vh;
}
#notice-list { margin-top: 20px; }
.notice-item { border-bottom: 1px solid #eee; }
.notice-title {
    padding: 15px 10px; font-weight: bold; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
}
.notice-title:hover { background-color: #f8f9fa; }
.notice-content {
    padding: 15px 20px; background-color: #f8f9fa;
    border-top: 1px solid #eee;
}
.notice-content p { margin: 0 0 10px; }
.new-badge {
    background-color: #d93025; color: white;
    font-size: 0.7em; font-weight: bold;
    padding: 3px 6px; border-radius: 4px;
    margin-left: 8px;
}
.delete-btn {
    background: #f1f1f1; border: 1px solid #ddd;
    padding: 4px 8px; font-size: 0.8em;
    border-radius: 4px; cursor: pointer;
}
.delete-btn:hover { background: #e0e0e0; }
#write-notice-btn {
    padding: 10px 15px; background-color: #1a73e8; color: white;
    border: none; border-radius: 5px; cursor: pointer; float: right;
}
#write-modal #notice-title {
    width: calc(100% - 20px); padding: 10px;
    font-size: 1.2em; margin-bottom: 15px;
}
#editor-container { height: 300px; margin-bottom: 15px; }
#save-notice-btn {
    padding: 12px 25px; background-color: #1a73e8; color: white;
    border: none; border-radius: 5px; cursor: pointer; font-size: 1em;
}
#login-modal .modal-content { max-width: 400px; }
.login-form { display: flex; flex-direction: column; gap: 15px; margin-top: 20px;}
.login-form input {
    width: 100%; padding: 12px; box-sizing: border-box;
    border: 1px solid #ccc; border-radius: 5px;
}
.login-form button {
    width: 100%; padding: 12px; background-color: #1a73e8; color: white;
    border: none; border-radius: 5px; cursor: pointer; font-size: 1em;
}
.login-form button:hover { background-color: #155ab6; }


/* ================================================================ */
/* == phone/internet 선택 카드: 랜딩(참고용 시안) 톤으로 통일 (2026-07) == */
/* 흰 카드 + 연보라 아이콘 칩 + 보라 포인트. onclick/구조는 그대로,   */
/* 색·모서리·그림자만 변경. 위약금(highlight-card)의 앰버 강조는 유지. */
/* ================================================================ */
.choice-card {
    border-radius: 22px;
    border-color: #ecebf2;
    box-shadow: 0 6px 24px rgba(60, 60, 90, 0.05);
}
.choice-card:hover {
    border-color: #9750f9;
    box-shadow: 0 16px 32px rgba(76, 60, 140, 0.14);
}
.choice-card .card-icon {
    background: #efeafe;
    color: #7c5cfa;
    border-radius: 14px;
    transition: background 0.25s ease, color 0.25s ease;
}
.choice-card:hover .card-icon {
    background: linear-gradient(135deg, #8b5cf6, #4c8dff);
    color: #fff;
}
.choice-card .card-info strong { color: #171c28; }
.choice-card .card-info span { color: #7c8598; }

/* 위약금 카드: 앰버 강조 유지하되 새 톤과 어울리게 모서리·그림자만 공유 */
.choice-card.highlight-card:hover { border-color: #f59e0b; }
.choice-card.highlight-card:hover .card-icon {
    background: #f59e0b;
    color: #fff;
}

/* 다크모드 */
body.dark-mode .choice-card {
    background: #1e293b;
    border-color: #334155;
    box-shadow: none;
}
body.dark-mode .choice-card:hover { border-color: #a78bfa; }
body.dark-mode .choice-card .card-icon { background: #2a2d4a; color: #a78bfa; }
body.dark-mode .choice-card:hover .card-icon {
    background: linear-gradient(135deg, #8b5cf6, #4c8dff);
    color: #fff;
}

/* phone.html approved compact 3D icon sprite. */
.choice-card .card-icon.choice-icon {
    position: relative;
    width: 60px;
    height: 60px;
    overflow: hidden;
    border-radius: 15px;
    background: #f2f7fc;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.choice-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../images/phone-choice-icons-v1.png');
    background-repeat: no-repeat;
    background-size: 300% 300%;
}
.choice-icon--subsidy::before { background-position: 0 0; }
.choice-icon--contract::before { background-position: 50% 0; }
.choice-icon--compare::before { background-position: 100% 0; }
.choice-icon--store::before { background-position: 0 50%; }
.choice-icon--carrier::before { background-position: 50% 50%; }
.choice-icon--family::before { background-position: 100% 50%; }
.choice-icon--cost::before { background-position: 0 100%; }
.choice-icon--plans::before { background-position: 50% 100%; }
.choice-icon--penalty::before { background-position: 100% 100%; }
body.dark-mode .choice-card .card-icon.choice-icon {
    background: #263449;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
@media (max-width: 640px) {
    .choice-card .card-icon.choice-icon {
        width: 42px;
        height: 42px;
        border-radius: 10px;
    }
}

/* internet.html compact 3D icon sprite. */
.choice-card .card-icon.internet-choice-icon {
    position: relative;
    width: 68px;
    height: 68px;
    overflow: hidden;
    border-radius: 16px;
    background: #f2f7fc;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.internet-choice-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../images/internet-choice-icons-v1.png');
    background-repeat: no-repeat;
    background-size: 200% 100%;
}
.internet-choice-icon--single::before { background-position: 0 0; }
.internet-choice-icon--compare::before { background-position: 100% 0; }
body.dark-mode .choice-card .card-icon.internet-choice-icon {
    background: #263449;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
@media (max-width: 640px) {
    .choice-card .card-icon.internet-choice-icon {
        width: 52px;
        height: 52px;
        border-radius: 12px;
    }
}
