/* ===== 요금제 페이지 ===== */
.plans-page {
    padding: 60px 0 80px;
    background: #fff;
}
.plans-header {
    text-align: center;
    margin-bottom: 40px;
}
.plans-header h1 {
    font-size: 36px;
    color: #1e3a8a;
    margin: 0 0 12px;
    font-weight: 800;
}
.plans-header p {
    color: #6b7280;
    font-size: 16px;
    margin: 0;
}

/* 카테고리 탭 */
.plans-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
    border-bottom: 2px solid #e5e7eb;
    flex-wrap: wrap;
}
.plans-tab {
    padding: 14px 28px;
    background: transparent;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    position: relative;
    bottom: -2px;
    border-bottom: 3px solid transparent;
    transition: all 0.15s;
}
.plans-tab:hover { color: #1e3a8a; }
.plans-tab.active {
    color: #1e3a8a;
    border-bottom-color: #f59e0b;
}

/* 탭 패널 */
.plans-panel { display: none; }
.plans-panel.active { display: block; }

/* 단말 수 블록 */
.device-block { margin-bottom: 48px; }
.device-block:last-child { margin-bottom: 0; }
.device-title {
    font-size: 22px;
    color: #1e3a8a;
    margin: 0 0 8px;
    padding-left: 12px;
    border-left: 4px solid #f59e0b;
    font-weight: 700;
}

/* 카드 그리드 */
.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* 카드 */
.plan-card {
    position: relative;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 28px 24px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}
.plan-card:hover:not(.coming-soon) {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(30,58,138,0.12);
    border-color: #c7d2fe;
}
.plan-card.featured {
    border: 2px solid #f59e0b;
    box-shadow: 0 8px 24px rgba(245,158,11,0.18);
}
.plan-card.coming-soon {
    background: #f9fafb;
    color: #9ca3af;
    border-color: #e5e7eb;
}
.plan-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #f59e0b;
    color: #1f2937;
    padding: 4px 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* 카드 타이틀 */
.plan-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 6px;
}
.plan-title .plan-period {
    color: #6b7280;
    font-weight: 500;
    font-size: 14px;
    margin-left: 4px;
}

/* 할인율 */
.plan-discount {
    color: #16a34a;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}
.plan-discount-empty { height: 18px; margin-bottom: 8px; }

/* 가격 */
.plan-price {
    margin-bottom: 4px;
    color: #1f2937;
}
.plan-price .price-cny {
    font-size: 30px;
    font-weight: 800;
    color: #1f2937;
}
.plan-price .price-suffix {
    font-size: 13px;
    color: #6b7280;
    margin-left: 2px;
}
.plan-price-krw {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 4px;
}
.plan-monthly {
    font-size: 13px;
    color: #f59e0b;
    margin-bottom: 16px;
    font-weight: 600;
}
.plan-price-coming {
    font-size: 22px;
    font-weight: 700;
    color: #9ca3af;
    margin: 16px 0;
}

/* 기능 목록 — home.css의 .plan-card ul li 보다 우선순위 높게 */
.plan-card .plan-features {
    list-style: none;
    padding: 16px 0 0;
    margin: 16px 0 20px;
    border-top: 1px solid #f1f3f6;
    flex-grow: 1;
}
.plan-card .plan-features li {
    position: relative;
    padding: 5px 0 5px 24px;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.5;
    border-bottom: none;
}
.plan-card .plan-features li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 11px;
    width: 6px;
    height: 10px;
    border: solid #16a34a;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.plan-card.coming-soon .plan-features li::before { border-color: #d1d5db; }


/* 버튼 */
.plan-btn {
    margin-top: auto;
    display: block;
    padding: 12px 16px;
    background: #1e3a8a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.15s;
    cursor: pointer;
}
.plan-btn:hover {
    background: #1e40af;
    color: #fff;
    text-decoration: none;
}
.plan-card.featured .plan-btn {
    background: #f59e0b;
    color: #1f2937;
}
.plan-card.featured .plan-btn:hover {
    background: #d97706;
}
.plan-btn.disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
}
.plan-btn.disabled:hover { background: #e5e7eb; color: #9ca3af; }

/* 안내 */
.plans-note {
    margin-top: 60px;
    padding: 20px 24px;
    background: #f9fafb;
    border-radius: 8px;
    color: #6b7280;
    font-size: 14px;
}
.plans-note p { margin: 4px 0; }
.plans-note a { color: #1e3a8a; font-weight: 600; }

/* 반응형 */
@media (max-width: 768px) {
    .plans-page { padding: 40px 0 60px; }
    .plans-header h1 { font-size: 28px; }
    .plans-tabs { gap: 0; }
    .plans-tab { padding: 12px 12px; font-size: 14px; flex: 1; }
    .device-title { font-size: 18px; }
    .plan-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
    .plan-card { padding: 22px 16px; }
    .plan-price .price-cny { font-size: 24px; }
}
@media (max-width: 480px) {
    .plan-grid { grid-template-columns: 1fr; }
}

.plan-card .plan-features li { white-space: nowrap; }
