@charset "utf-8";

/**
 * ============================================================================
 * TELECOM PLAN COMPARISON UI - Premium Design System
 * ============================================================================
 * 
 * Overview: 모바일 요금제 비교 서비스를 위한 프리미엄 UI 스타일시트
 *           현대적인 글래스모피즘, 그라데이션, 마이크로 애니메이션을 활용한 상용 디자인
 *
 * Main Functionalities:
 * - 히어로 섹션: 몰입감 있는 그라데이션 배경과 검색 UI
 * - 필터 시스템: 드롭다운 기반의 직관적인 필터링
 * - 카드 그리드: 요금제 정보를 시각적으로 표현
 * - 반응형 디자인: 모바일/태블릿/데스크톱 완벽 지원
 * 
 * Design Tokens:
 * - Primary: #6366f1 (Indigo)
 * - Accent: #8b5cf6 (Violet)  
 * - Success: #10b981 (Emerald)
 * - Warning: #f59e0b (Amber)
 * ============================================================================
 */

/* Variables - Modern Premium Color Palette (widget.php 테마 색상 적용) */
:root {
    /* Primary Colors - widget.php 파란색 테마 (#3a8afd) */
    --primary-color: #3a8afd;
    --primary-hover: #2375eb;
    --primary-light: #eef6ff;
    --primary-gradient: linear-gradient(135deg, #3a8afd 0%, #2375eb 50%, #1a5fd1 100%);
    
    /* Accent Colors */
    --accent-color: #2375eb;
    --accent-light: #e0f2ff;
    
    /* Semantic Colors */
    --success-color: #38b2ac;
    --success-light: #e6fffa;
    --warning-color: #f59e0b;
    --warning-light: #fef3c7;
    --danger-color: #f56565;
    --danger-light: #fff5f5;
    
    /* Neutral Colors */
    --bg-color: #f8fafc;
    --bg-secondary: #f1f5f9;
    --card-bg: #ffffff;
    --text-main: #1a1a1a;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --border-color: #e2e8f0;
    --border-light: #f0f0f0;
    
    /* Effects */
    --border-radius-sm: 8px;
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    --border-radius-2xl: 32px;
    
    /* Shadows - widget.php 스타일 적용 */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 24px rgba(58, 138, 253, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 4px 24px rgba(58, 138, 253, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 10px 20px rgba(0, 0, 0, 0.06);
    --shadow-glow: 0 0 40px rgba(58, 138, 253, 0.15);
    --shadow-card-hover: 0 10px 20px rgba(0, 0, 0, 0.06);
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Layout - 그라데이션을 .sub.co_gap_pc_20에서 시작 */
.sub.co_gap_pc_20:has(.telecom-page-wrap) {
    background: linear-gradient(180deg, 
        #f0f7ff 0%, 
        #f5faff 15%,
        #fafcff 30%,
        #ffffff 50%,
        #ffffff 100%);
}

/* 기본 container_title 숨김 - 히어로 섹션이 타이틀 역할을 대신함 */
.sub.co_gap_pc_20:has(.telecom-page-wrap) #container_title {
    display: none;
}

.telecom-page-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0;
    font-family: 'Pretendard', 'Inter', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    color: var(--text-main);
    background: transparent;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Override global focus border */
.telecom-page-wrap input[type=text]:focus,
.telecom-page-wrap input[type=password]:focus,
.telecom-page-wrap textarea:focus,
.telecom-page-wrap select:focus {
    border-color: transparent !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    transition: none !important;
    outline: none;
}

/* ============================================================================
   HERO SECTION - Soft Gradient Design
   ============================================================================ */
.telecom-hero {
    position: relative;
    padding: 60px 40px 100px;
    text-align: center;
    background: transparent;
    margin-bottom: 0;
    overflow: hidden;
}

/* ============================================================================
   BACKGROUND MICRO INTERACTIVE ELEMENTS - Scattered Animation
   ============================================================================ */
.telecom-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Arrows in background */
.bg-arrow {
    position: absolute;
    opacity: 0.7;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.bg-arrow.arrow-up {
    width: 60px;
    height: 72px;
    left: 8%;
    top: 20%;
    animation: bg-float-up 4s ease-in-out infinite;
}

.bg-arrow.arrow-down {
    width: 50px;
    height: 60px;
    right: 10%;
    bottom: 25%;
    animation: bg-float-down 4s ease-in-out infinite;
    animation-delay: 0.5s;
}

.bg-arrow svg {
    width: 100%;
    height: 100%;
}

@keyframes bg-float-up {
    0%, 100% {
        transform: translateY(0) rotate(-8deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-12px) rotate(5deg);
        opacity: 0.8;
    }
}

@keyframes bg-float-down {
    0%, 100% {
        transform: translateY(0) rotate(8deg);
        opacity: 0.55;
    }
    50% {
        transform: translateY(12px) rotate(-5deg);
        opacity: 0.75;
    }
}

/* Micro items scattered in background */
.bg-item {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.65;
}

.bg-item.item-percent {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ffd93d 0%, #ff9500 100%);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(255, 149, 0, 0.25);
    right: 15%;
    top: 15%;
    animation: bg-micro-float 3.5s ease-in-out infinite;
}

.bg-item.item-percent span {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
}

.bg-item.item-won {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #00c9a7 0%, #00b894 100%);
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0, 184, 148, 0.25);
    left: 18%;
    bottom: 20%;
    animation: bg-micro-float 3.8s ease-in-out infinite;
    animation-delay: 0.3s;
}

.bg-item.item-won span {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.bg-item.item-data {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(124, 58, 237, 0.25);
    right: 22%;
    top: 55%;
    animation: bg-micro-float 4s ease-in-out infinite;
    animation-delay: 0.6s;
}

.bg-item.item-data span {
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

/* Small circles scattered */
.bg-item.item-circle {
    border-radius: 50%;
}

.bg-item.item-circle.c1 {
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #3a8afd 0%, #2563eb 100%);
    box-shadow: 0 2px 6px rgba(58, 138, 253, 0.4);
    left: 25%;
    top: 30%;
    animation: bg-micro-float 3s ease-in-out infinite;
    animation-delay: 0.1s;
}

.bg-item.item-circle.c2 {
    width: 11px;
    height: 11px;
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    box-shadow: 0 2px 6px rgba(229, 62, 62, 0.4);
    right: 28%;
    top: 35%;
    animation: bg-micro-float 3.2s ease-in-out infinite;
    animation-delay: 0.4s;
}

.bg-item.item-circle.c3 {
    width: 9px;
    height: 9px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
    left: 12%;
    top: 55%;
    animation: bg-micro-float 2.8s ease-in-out infinite;
    animation-delay: 0.7s;
}

.bg-item.item-circle.c4 {
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
    right: 8%;
    bottom: 40%;
    animation: bg-micro-float 3.4s ease-in-out infinite;
    animation-delay: 0.2s;
}

.bg-item.item-circle.c5 {
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    box-shadow: 0 2px 6px rgba(219, 39, 119, 0.4);
    left: 30%;
    bottom: 30%;
    animation: bg-micro-float 3.6s ease-in-out infinite;
    animation-delay: 0.9s;
}

@keyframes bg-micro-float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.55;
    }
    25% {
        transform: translate(4px, -6px) scale(1.08);
        opacity: 0.75;
    }
    50% {
        transform: translate(-3px, -10px) scale(1);
        opacity: 0.6;
    }
    75% {
        transform: translate(3px, -4px) scale(1.05);
        opacity: 0.7;
    }
}

/* Responsive - Background Elements */
@media (max-width: 768px) {
    .bg-arrow.arrow-up {
        width: 45px;
        height: 54px;
        left: 5%;
        top: 15%;
    }
    
    .bg-arrow.arrow-down {
        width: 38px;
        height: 46px;
        right: 6%;
        bottom: 20%;
    }
    
    .bg-item.item-percent {
        width: 30px;
        height: 30px;
        border-radius: 8px;
        right: 10%;
    }
    
    .bg-item.item-percent span {
        font-size: 15px;
    }
    
    .bg-item.item-won {
        width: 28px;
        height: 28px;
        left: 12%;
    }
    
    .bg-item.item-won span {
        font-size: 12px;
    }
    
    .bg-item.item-data {
        width: 30px;
        height: 30px;
        right: 15%;
    }
    
    .bg-item.item-data span {
        font-size: 10px;
    }
    
    .bg-item.item-circle.c1 { width: 10px; height: 10px; }
    .bg-item.item-circle.c2 { width: 8px; height: 8px; }
    .bg-item.item-circle.c3 { width: 7px; height: 7px; }
    .bg-item.item-circle.c4 { width: 12px; height: 12px; }
    .bg-item.item-circle.c5 { width: 8px; height: 8px; }
}

/* Animated Background Blobs - Soft Blue Accents (widget.php 테마) */
.telecom-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -50px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(58, 138, 253, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: float 8s ease-in-out infinite;
}

.telecom-hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(35, 117, 235, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Additional decorative elements */
.telecom-hero .hero-content::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(58, 138, 253, 0.04) 0%, transparent 60%);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.3;
    color: var(--text-main);
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #3a8afd 0%, #2375eb 50%, #1a5fd1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    word-break: keep-all;
    overflow-wrap: break-word;
    hyphens: none;
}

.hero-title br {
    display: block;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 32px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 400;
    word-break: keep-all;
    overflow-wrap: break-word;
    hyphens: none;
}

.hero-subtitle br {
    display: block;
}

/* Search Form - Glassmorphism Style */
.fee-search-form {
    max-width: 520px;
    margin: 0 auto;
}

.input-group {
    display: flex;
    background: #ffffff;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 6px;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition);
}

.input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg), 0 0 0 4px var(--primary-light);
}

.input-field-container {
    display: flex;
    align-items: center;
    flex: 1;
    position: relative;
    width: 100%;
}

.fee-input {
    flex: 1;
    border: 0 !important;
    box-shadow: none;
    background: transparent;
    padding: 18px 48px 18px 24px; /* Right padding for reset button */
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-main);
    outline: none;
    -moz-appearance: textfield;
    appearance: textfield;
    height: 100% !important;
    width: 100%; /* Ensure full width */
}

/* Search Input Reset Button */
.btn-input-reset {
    display: none; /* Controlled by JS */
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0 16px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.2s;
    outline: none;
    z-index: 5;
}

.btn-input-reset:hover {
    color: var(--text-main);
}

/* Hide spin buttons for WebKit/Blink */
.fee-input::-webkit-outer-spin-button,
.fee-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.fee-input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.btn-search {
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    padding: 16px 32px;
    border-radius: var(--border-radius);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(58, 138, 253, 0.4);
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(58, 138, 253, 0.5);
}

/* ============================================================================
   FILTER SECTION - Clean Card Design
   ============================================================================ */
.telecom-filter {
    background: var(--card-bg);
    padding: 20px 24px;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow);
    margin: 0 24px 32px;
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 10;
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Dropdown Container */
.filter-dropdown {
    position: relative;
}

/* Dropdown Trigger Button */
.filter-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: var(--bg-secondary);
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition);
    font-size: 0.9rem;
    color: var(--text-main);
    white-space: nowrap;
}

.filter-trigger:hover {
    background: var(--bg-color);
    border-color: var(--border-color);
    box-shadow: var(--shadow-sm);
}

.filter-dropdown.open .filter-trigger {
    background: var(--card-bg);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.filter-label {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
}

.filter-value {
    font-weight: 600;
    color: var(--text-main);
}

.filter-arrow {
    color: var(--text-muted);
    transition: transform var(--transition);
    margin-left: 4px;
}

.filter-dropdown.open .filter-arrow {
    transform: rotate(180deg);
    color: var(--primary-color);
}

/* Dropdown Menu */
.filter-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 180px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 8px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all var(--transition);
    transform-origin: top left;
}

.filter-dropdown.open .filter-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Dropdown Options */
.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.9rem;
    margin: 2px 0;
}

.filter-option:hover {
    background: var(--bg-secondary);
}

.filter-option input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.filter-option input[type="checkbox"] {
    border-radius: 4px;
}

.filter-option span {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.filter-option:hover span {
    color: var(--text-main);
}

.filter-option input:checked + span {
    color: var(--primary-color);
    font-weight: 600;
}

/* Apply Button */
.btn-filter-apply {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    margin-left: auto;
    box-shadow: 0 4px 12px rgba(58, 138, 253, 0.3);
}

.btn-filter-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(58, 138, 253, 0.4);
}

.btn-filter-apply:active {
    transform: translateY(0);
}

/* Reset Button */
.btn-filter-reset {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition);
    border-radius: var(--border-radius-sm);
}

.btn-filter-reset:hover {
    color: var(--danger-color);
    background: var(--danger-light);
}

.btn-filter-reset svg {
    width: 12px;
    height: 12px;
}

/* More Filters Button - 상세필터 버튼 */
.btn-more-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
}

.btn-more-filters:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-more-filters .filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 10px;
}

/* Active Filter Trigger Style */
.filter-trigger.active {
    background: var(--primary-light);
    border-color: var(--primary-color);
}

.filter-trigger.active .filter-value {
    color: var(--primary-color);
}

/* ============================================================================
   ADVANCED FILTERS - 상세 필터 패널
   ============================================================================ */
.filter-advanced {
    display: none;
    padding-top: 20px;
    margin-top: 16px;
    border-top: 1px solid var(--border-color);
    animation: slideDown 0.3s ease-out;
}

.filter-advanced.show {
    display: block;
}

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

/* Filter Chips Container */
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Filter Chip Style */
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
    user-select: none;
}

.filter-chip:hover {
    background: var(--bg-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-chip.active {
    background: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-chip input[type="checkbox"] {
    display: none;
}

.filter-chip svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.filter-chip.active svg {
    color: var(--primary-color);
}

/* ============================================================================
   FILTER RANGES - 범위 필터 (데이터/요금 입력)
   ============================================================================ */
.filter-ranges {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed var(--border-color);
}

.filter-range-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1;
    min-width: 280px;
}

.range-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    min-width: 70px;
    /* 슬라이더 상단 margin(10px) + 슬라이더 높이의 절반(3px) = 13px */
    /* 레이블 자체 높이(약 20px)의 절반을 빼면 약 3px */
    margin-top: 3px;
}

.range-label i {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================================================
   RANGE SLIDER - 듀얼 레인지 슬라이더
   ============================================================================ */
.range-slider-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.range-slider-container {
    position: relative;
    height: 6px;
    background: var(--bg-secondary);
    border-radius: 3px;
    margin: 10px 0 40px 0;
}

.range-slider-track {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--border-color);
    border-radius: 3px;
}

.range-slider-range {
    position: absolute;
    height: 100%;
    background: linear-gradient(90deg, 
        #5a9cf5 0%, 
        var(--primary-color) 30%, 
        var(--primary-hover) 70%, 
        #1a5fd1 100%
    );
    border-radius: 3px;
    transition: left 0.05s ease, width 0.05s ease;
    box-shadow: 0 1px 3px rgba(58, 138, 253, 0.3), 
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.range-slider-input {
    position: absolute;
    width: 100%;
    height: 6px;
    top: 0;
    left: 0;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
    margin: 0;
    padding: 0;
}

.range-slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--card-bg);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.range-slider-input::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.range-slider-input::-webkit-slider-thumb:active {
    transform: scale(1.1);
    border-color: var(--secondary-color);
}

.range-slider-input::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--card-bg);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.range-slider-input::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Tooltip - 슬라이더 포인터 아래 표시 */
.range-slider-tooltip {
    position: absolute;
    top: 18px;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 4px 10px;
    border-radius: var(--border-radius-sm);
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
    z-index: 10;
    transition: left 0.1s ease, top 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

.range-slider-tooltip::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 5px 5px 5px;
    border-style: solid;
    border-color: transparent transparent var(--primary-color) transparent;
}

/* Min tooltip - 겹칠 때 위로 이동 */
.range-slider-tooltip.tooltip-up {
    top: -28px;
}

.range-slider-tooltip.tooltip-up::before {
    top: auto;
    bottom: -5px;
    border-width: 5px 5px 0 5px;
    border-color: var(--primary-color) transparent transparent transparent;
}

/* 두 값이 같을 때 하나의 tooltip으로 합치기 */
.range-slider-tooltip.tooltip-merged {
    display: none;
}

.range-slider-tooltip.tooltip-combined {
    z-index: 11;
}

/* Responsive - Filter Range Sliders */
@media (max-width: 768px) {
    .filter-ranges {
        flex-direction: column;
        gap: 20px;
    }
    
    .filter-range-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        min-width: auto;
    }
    
    .range-label {
        min-width: auto;
    }
    
    .range-slider-wrap {
        width: 100%;
    }
}

/* ============================================================================
   ACTIVE FILTER TAGS - 활성화된 필터 태그 표시
   ============================================================================ */
.filter-active-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid var(--border-light);
}

.active-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--primary-light);
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    animation: tagPop 0.2s ease-out;
}

@keyframes tagPop {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.active-tag a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--transition-fast);
    line-height: 1;
}

.active-tag a:hover {
    background: var(--danger-color);
    transform: scale(1.1);
}

/* 태그 제거 애니메이션 */
@keyframes tagRemove {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.8);
    }
}

/* 정렬 필터 태그 - 다른 필터와 구분되는 스타일 */
.active-tag.sort-tag {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.active-tag.sort-tag a {
    background: var(--text-muted);
}

.active-tag.sort-tag a:hover {
    background: var(--danger-color);
}

/* 인라인 초기화 버튼 - filter-active-tags 내부 */
.btn-filter-reset-inline {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    margin-left: auto;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 20px;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-filter-reset-inline:hover {
    background: var(--danger-light);
    border-color: var(--danger-color);
    color: var(--danger-color);
}

.btn-filter-reset-inline svg {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
}

/* ============================================================================
   LIST SECTION - Plan Cards Grid
   ============================================================================ */
.telecom-list {
    padding: 0 24px 60px;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.list-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.count {
    color: var(--primary-color);
    margin-left: 8px;
}

/* Plan Grid */
.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 24px;
}

/* ============================================================================
   PLAN CARD - Premium Card Design with Hover Effects
   ============================================================================ */
.plan-card {
    width: 100%;
    background: var(--card-bg);
    border-radius: var(--border-radius-xl);
    padding: 24px 28px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    transition: all var(--transition-slow);
    box-shadow: var(--shadow);
    overflow: hidden;
    min-height: 140px;
    cursor: pointer;
}

.plan-card:hover {
    border-color: var(--border-color);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
}

/* Badge Row - 전체 너비 사용 */
.badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
    position: relative;
}

/* Badge Styles - widget.php 스타일 적용 */
.badge-carrier, .badge-network, .badge-tag, .badge-qos {
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    line-height: 1;
    letter-spacing: -0.3px;
    white-space: nowrap;
}

/* badge-carrier는 인라인 스타일로 통신사별 색상 적용됨 */
.badge-carrier {
    /* 기본값 - 인라인 스타일이 우선 적용됨 */
    background-color: #f3f0ff;
    color: #7950f2;
}

.badge-network {
    background-color: #edf2f7;
    color: #718096;
}

.badge-tag {
    background-color: #ebf8ff;
    color: #3182ce;
}

/* QoS Badge - 데이터 소진 후 속도 */
.badge-qos {
    background-color: #fef3c7;
    color: #d97706;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-qos i {
    font-size: 9px;
}

/* Card Content Area */
.card-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex: 1;
    position: relative;
}

/* Left Side - Plan Info */
.card-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    flex: 1;
    position: relative;
}

/* Data Display */
.data-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 8px;
}

.data-amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
    letter-spacing: -0.03em;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.data-qos {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    padding: 4px 8px;
    background: var(--bg-secondary);
    border-radius: 6px;
}

/* Plan Name */
.name-row {
    margin-top: 4px;
}

.plan-name-sub {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
}

/* ============================================================================
   SPEC ROW - 음성/문자/평점 정보 표시
   ============================================================================ */
.spec-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.spec-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.spec-item i {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.spec-item.rating {
    color: var(--warning-color);
}

.spec-item.rating i {
    color: var(--warning-color);
}

/* Right Side - Pricing */
.card-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    text-align: right;
    min-width: 150px;
    padding-left: 24px;
    border-left: 1px solid #e3e5e9;
    flex-shrink: 0;
    position: relative;
}

/* Price Display */
.price-row {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

/* 원래 가격 + 할인율 가로 배치 */
.price-original-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.price-original {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 400;
    line-height: 1.2;
}

.price-final {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.price-final small {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 2px;
}

/* Discount Percentage Badge */
.discount-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    background: var(--danger-color);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 4px;
    margin-left: 8px;
}

/* Discount Period Info - 할인 기간 표시 (widget.php 스타일) */
.discount-period {
    display: block;
    font-size: 0.7rem;
    color: #e53e3e;
    font-weight: 600;
    margin-top: 2px;
    white-space: nowrap;
}

/* Total Cost */
.total-row {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.total-item {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    white-space: nowrap;
}

.total-item strong {
    color: var(--text-secondary);
    font-weight: 600;
}

/* ============================================================================
   SIGNUP COUNT - 가입자수 표시
   ============================================================================ */
.signup-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 6px 12px;
    background: var(--success-light);
    color: var(--success-color);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
}

.signup-count i {
    font-size: 0.7rem;
}

/* ============================================================================
   RESPONSIVE DESIGN - Mobile & Tablet Optimizations
   ============================================================================ */

/* No Results State */
.no-result {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 40px;
    background: var(--card-bg);
    border-radius: var(--border-radius-xl);
    color: var(--text-muted);
    border: 2px dashed var(--border-color);
}

.no-result p {
    font-size: 1.1rem;
    margin: 0;
}

.no-result::before {
    content: '🔍';
    display: block;
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* Tablet Breakpoint */
@media (max-width: 1024px) {
    .plan-grid {
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
        gap: 20px;
    }
}

/* Mobile Breakpoint */
@media (max-width: 768px) {
    /* Hero Section Mobile */
    .telecom-hero {
        padding: 60px 20px 80px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .input-group {
        flex-direction: column;
        border-radius: var(--border-radius);
        padding: 12px;
        gap: 12px;
    }

    .input-field-container {
        width: 100%;
        position: relative;
        display: flex;
        align-items: center;
    }
    
    .fee-input {
        text-align: center;
        padding: 16px 48px 16px 16px; /* Right padding for X button */
        font-size: 1.1rem;
        width: 100%;
    }

    .btn-input-reset {
        position: absolute;
        right: 4px !important; /* Some padding from edge */
        top: 50% !important;
        transform: translateY(-50%);
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10;
    }
    
    .btn-search {
        width: 100%;
        padding: 16px;
    }
    
    /* Filter Section Mobile */
    .telecom-filter {
        margin: 0 16px 24px;
        padding: 16px;
    }
    
    .filter-bar {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .filter-dropdown {
        flex: 1 1 calc(50% - 4px);
        min-width: 0;
    }
    
    .filter-trigger {
        width: 100%;
        justify-content: space-between;
        padding: 14px 16px;
    }
    
    .filter-dropdown-menu {
        left: 0;
        right: 0;
        min-width: auto;
    }
    
    .btn-more-filters {
        flex: 1 1 100%;
        width: 100%;
        justify-content: center;
    }
    
    .btn-filter-apply {
        margin-left: 0;
        width: 100%;
        justify-content: center;
        padding: 14px;
    }
    
    .btn-filter-reset {
        width: 100%;
        justify-content: center;
        padding: 14px;
    }
    
    /* Filter Chips Mobile */
    .filter-chips {
        gap: 8px;
    }
    
    .filter-chip {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    
    /* Active Tags Mobile */
    .filter-active-tags {
        gap: 6px;
    }
    
    .active-tag {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
    
    /* List Section Mobile */
    .telecom-list {
        padding: 0 16px 40px;
    }
    
    .list-header h2 {
        font-size: 1.25rem;
    }

    .plan-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Card Mobile Layout */
    .plan-card {
        padding: 20px;
        gap: 14px;
        border-radius: var(--border-radius-lg);
    }
    
    .plan-card::before {
        opacity: 1;
    }
    
    /* Badge Row Mobile */
    .badge-row {
        gap: 6px;
    }
    
    .badge-qos {
        margin-left: 0;
        margin-top: 4px;
    }
    
    /* Card Content Mobile */
    .card-content {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .card-left {
        width: 100%;
    }
    
    .data-amount {
        font-size: 1.75rem;
    }
    
    /* Spec Row Mobile */
    .spec-row {
        gap: 10px;
    }
    
    .spec-item {
        font-size: 0.75rem;
    }

    .card-right {
        width: 100%;
        align-items: flex-start;
        text-align: left;
        border-top: 1px solid var(--border-light);
        border-left: none;
        padding-top: 16px;
        padding-left: 0;
    }

    .price-row {
        flex-direction: row;
        align-items: baseline;
        gap: 8px;
    }
    
    .price-final {
        font-size: 1.4rem;
    }
    
    .total-row {
        flex-direction: row;
        gap: 16px;
        align-items: center;
    }
    
    .signup-count {
        margin-top: 12px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .telecom-hero {
        padding: 50px 16px 70px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .plan-card {
        padding: 20px;
    }
    
    .badge-row {
        gap: 6px;
    }
    
    .badge-carrier, .badge-network, .badge-tag {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
    
    .data-amount {
        font-size: 1.5rem;
    }
    
    .price-final {
        font-size: 1.25rem;
    }
}

/* ============================================================================
   UTILITY CLASSES & ANIMATIONS
   ============================================================================ */

/* Card Entrance Animation */
@keyframes cardSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.plan-card {
    animation: cardSlideUp 0.4s ease-out forwards;
    opacity: 0;
}

/* Skeleton Loading Animation */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton {
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-color) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--border-radius-sm);
}

/* Focus Visible */
.plan-card:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
}

/* Print Styles */
@media print {
    .telecom-hero {
        background: var(--bg-secondary) !important;
        color: var(--text-main) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .telecom-filter {
        display: none;
    }
    
    .plan-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
}

/* ============================================================================
   3-TIER RECOMMENDATION SECTION
   맞춤형 요금제 추천 (절약형/유지형/업그레이드형)
   ============================================================================ */

.telecom-tier-recommend {
    padding: 40px 24px 50px;
    background: #f8fafc;
    border-radius: 24px; /* More rounded */
    margin: 0 24px 40px;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

/* Decorative background element */
.telecom-tier-recommend::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.tier-header {
    text-align: center;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.tier-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 12px 0;
    letter-spacing: -0.03em;
}

.tier-header h2 strong {
    background: linear-gradient(135deg, #3a8afd 0%, #2375eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tier-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin: 0 auto;
    font-weight: 500;
    line-height: 1.6;
    opacity: 1;
    word-break: keep-all;
    max-width: 600px;
}

.tier-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns strictly for desktop */
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.tier-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #edf2f7;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    height: 100%;
}

.tier-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: transparent;
}

/* Distinct Top Borders */
.tier-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

/* Type 1: Emerald/Teal (Budget) */
.tier-card.tier-saving::before { background: #10b981; }
.tier-card.tier-saving:hover { border-top-color: #10b981; }

/* Type 2: Violet/Indigo (Unlimited) */
.tier-card.tier-similar::before { background: #6366f1; }
.tier-card.tier-similar:hover { border-top-color: #6366f1; }

/* Type 3: Amber/Orange (Smart Saver) */
.tier-card.tier-upgrade::before { background: #f59e0b; }
.tier-card.tier-upgrade:hover { border-top-color: #f59e0b; }

/* Tier Label - Capsule Style */
.tier-label {
    align-self: flex-start;
    margin: 16px 20px 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    border-radius: 100px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tier-card.tier-saving .tier-label { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.tier-card.tier-similar .tier-label { background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%); }
.tier-card.tier-upgrade .tier-label { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }

/* Tier Card Body */
.tier-card-body {
    padding: 12px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tier-carrier-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.tier-carrier-badge,
.tier-network-badge,
.tier-qos-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
}

.tier-carrier-badge { background: #f1f5f9; color: #475569; }
.tier-network-badge { background: #f8fafc; color: #64748b; border: 1px solid #e2e8f0; }
.tier-qos-badge { background: #fff7ed; color: #ea580c; }

.tier-plan-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 8px 0;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.tier-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0 0 16px 0;
    line-height: 1.5;
}

/* Tier Specs */
.tier-specs {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
}

.tier-spec-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.tier-spec-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 10%;
    height: 80%;
    width: 1px;
    background: #e2e8f0;
}

.tier-spec-value {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
}

.tier-spec-item.data .tier-spec-value { 
    background: linear-gradient(135deg, #3a8afd 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.tier-spec-item.efficiency .tier-spec-value { color: #8b5cf6; }

.tier-spec-label {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 4px;
    font-weight: 500;
}

/* Tier Price */
.tier-price-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px dashed #e2e8f0;
    margin-bottom: 16px;
}

.tier-emc {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.tier-emc-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
}

.tier-emc-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
    line-height: 1;
}

/* Tier Original Fee */
.tier-original-fee {
    font-size: 0.85rem;
    color: #94a3b8;
    text-decoration: line-through;
}

/* Tier Duration */
.tier-duration {
    padding: 10px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 8px;
    margin-top: 0;
}

.tier-duration i { font-size: 0.9em; }

.tier-duration-stable { color: #16a34a; background: #f0fdf4; }
.tier-duration-medium { color: #ea580c; background: #fff7ed; }
.tier-duration-unstable { color: #dc2626; background: #fef2f2; }

/* ============================================================================
   EMC & EFFICIENCY BADGE STYLES
   실질 월 납부금 및 가성비 점수 표시
   ============================================================================ */

/* Badge: Efficiency Score */
.badge-efficiency {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-efficiency i {
    font-size: 0.65rem;
}

/* EMC Row in Card */
.emc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e0f2ff 100%);
    border-radius: var(--border-radius-sm);
    margin: 8px 0;
    border: 1px dashed var(--primary-light);
}

.emc-label {
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
}

.emc-value {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary-color);
}

/* Discount Period Styles by Duration Score */
.discount-period-stable {
    background: #e8f5e9 !important;
    color: #2e7d32 !important;
}

.discount-period-medium {
    background: #fff3e0 !important;
    color: #e65100 !important;
}

.discount-period-unstable {
    background: #ffebee !important;
    color: #c62828 !important;
}

/* Card Warning (미끼상품 경고) */
.card-warning {
    padding: 10px 16px;
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    color: #c53030;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-top: 1px dashed #feb2b2;
}

.card-warning i {
    color: #e53e3e;
}

/* ============================================================================
   3-TIER SECTION RESPONSIVE
   ============================================================================ */

/* ============================================================================
   3-TIER SECTION RESPONSIVE
   ============================================================================ */

@media (max-width: 768px) {
    .telecom-tier-recommend {
        margin: 0 16px 30px;
        padding: 30px 20px 40px;
    }
    
    .tier-header h2 {
        font-size: 1.35rem;
    }
    
    .tier-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tier-label {
        margin: 16px 20px 0;
        font-size: 0.75rem;
    }
    
    .tier-card-body {
        padding: 12px 20px 20px;
    }
    
    .tier-specs {
        gap: 12px;
        padding: 12px 14px;
        margin-bottom: 16px;
    }
    
    .tier-spec-value {
        font-size: 1.1rem;
    }
    
    .tier-emc-value {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .telecom-tier-recommend {
        margin: 0 0 24px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .tier-header h2 {
        font-size: 1.25rem;
    }
    
    .tier-label {
        margin: 14px 16px 0;
    }

    .tier-card-body {
        padding: 10px 16px 16px;
    }
}

/* ============================================================================
   PAGINATION - Premium Style
   ============================================================================ */

