/**
 * TION AI Platform - Unified CSS
 * Core + Components + Layout
 * @version 1.0.0
 */

/* =====================================================
   RESET & BASE
   ===================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --tp-bg: #0A0E27;
    --tp-bg-secondary: #151B3D;
    --tp-bg-card: #151B3D;
    --tp-bg-surface: rgba(255, 255, 255, 0.04);
    --tp-text: #FFFFFF;
    --tp-text-secondary: #A0AEC0;
    --tp-text-muted: #718096;
    --tp-accent: #0066FF;
    --tp-accent2: #00D9FF;
    --tp-gradient: linear-gradient(135deg, #00D9FF 0%, #0066FF 100%);
    --tp-border: rgba(255, 255, 255, 0.08);
    --tp-shadow: rgba(0, 0, 0, 0.3);
    --tp-radius: 16px;
    --tp-radius-sm: 10px;
    --tp-radius-xs: 6px;
    --tp-font: 'Noto Sans KR', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --tp-header-h: 56px;
    --tp-bottom-nav-h: 64px;
    --tp-safe-bottom: env(safe-area-inset-bottom, 0px);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body.tion-platform {
    font-family: var(--tp-font);
    background: var(--tp-bg);
    color: var(--tp-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
    word-break: keep-all;
    overflow-wrap: break-word;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* =====================================================
   HEADER (Glassmorphism)
   ===================================================== */
.tp-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--tp-header-h);
    background: rgba(10, 14, 39, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--tp-border);
    transition: background 0.3s, box-shadow 0.3s;
}

.tp-header.scrolled {
    background: rgba(10, 14, 39, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.tp-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.tp-header-logo {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.tp-logo-text {
    font-size: 22px;
    font-weight: 900;
    background: var(--tp-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.tp-logo-sub {
    font-size: 11px;
    font-weight: 600;
    color: var(--tp-text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.tp-header-actions {
    display: flex;
    gap: 4px;
}

.tp-header-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tp-text-secondary);
    transition: all 0.2s;
}

.tp-header-btn:hover {
    background: var(--tp-bg-surface);
    color: var(--tp-text);
}

.tp-header-btn .material-icons-round {
    font-size: 22px;
}

/* =====================================================
   SEARCH OVERLAY
   ===================================================== */
.tp-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    background: rgba(10, 14, 39, 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    padding: 16px;
    padding-top: calc(16px + env(safe-area-inset-top, 0px));
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.tp-search-overlay.open {
    opacity: 1;
    visibility: visible;
}

.tp-search-overlay-inner {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

.tp-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--tp-bg-secondary);
    border: 1px solid var(--tp-border);
    border-radius: 14px;
    padding: 12px 16px;
    margin-bottom: 24px;
}

.tp-search-form .material-icons-round {
    color: var(--tp-text-muted);
    font-size: 22px;
}

.tp-search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--tp-text);
    font-size: 16px;
    font-family: var(--tp-font);
}

.tp-search-input::placeholder {
    color: var(--tp-text-muted);
}

.tp-search-close {
    color: var(--tp-text-muted);
    padding: 4px;
}

.tp-search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.tp-search-tags-label {
    font-size: 13px;
    color: var(--tp-text-muted);
    margin-right: 4px;
}

/* =====================================================
   CHIPS
   ===================================================== */
.tp-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    background: var(--tp-bg-surface);
    border: 1px solid var(--tp-border);
    color: var(--tp-text-secondary);
    transition: all 0.2s;
    cursor: pointer;
    white-space: nowrap;
}

.tp-chip:hover,
.tp-chip.active {
    background: rgba(0, 102, 255, 0.15);
    border-color: rgba(0, 102, 255, 0.3);
    color: var(--tp-accent2);
}

.tp-chip .material-icons-round {
    font-size: 16px;
    margin-right: 4px;
}

/* =====================================================
   DRAWER MENU
   ===================================================== */
.tp-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1500;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.tp-drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

.tp-drawer {
    position: fixed;
    top: 0;
    right: -300px;
    bottom: 0;
    z-index: 1600;
    width: 280px;
    background: var(--tp-bg-secondary);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.tp-drawer.open {
    right: 0;
}

.tp-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 16px;
    border-bottom: 1px solid var(--tp-border);
}

.tp-drawer-logo {
    font-size: 16px;
    font-weight: 800;
    background: var(--tp-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tp-drawer-close {
    color: var(--tp-text-muted);
    padding: 4px;
}

.tp-drawer-body {
    padding: 8px 0;
}

.tp-drawer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--tp-text-secondary);
    transition: all 0.2s;
}

.tp-drawer-item:hover,
.tp-drawer-item.active {
    background: rgba(0, 102, 255, 0.08);
    color: var(--tp-accent2);
}

.tp-drawer-item .material-icons-round {
    font-size: 20px;
}

.tp-drawer-divider {
    height: 1px;
    background: var(--tp-border);
    margin: 8px 16px;
}

/* =====================================================
   MAIN CONTENT
   ===================================================== */
.tp-main {
    padding-top: var(--tp-header-h);
    padding-bottom: calc(var(--tp-bottom-nav-h) + var(--tp-safe-bottom));
    min-height: 100vh;
}

.tp-section {
    padding: 32px 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.tp-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.tp-section-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--tp-text);
}

.tp-section-more {
    font-size: 13px;
    font-weight: 600;
    color: var(--tp-accent2);
    display: flex;
    align-items: center;
    gap: 2px;
}

.tp-section-more .material-icons-round {
    font-size: 16px;
}

/* =====================================================
   HERO BANNER
   ===================================================== */
.tp-hero {
    padding: 48px 16px 32px;
    text-align: center;
    background: linear-gradient(180deg, rgba(0, 102, 255, 0.08) 0%, transparent 100%);
    position: relative;
    overflow: hidden;
}

.tp-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 0%, rgba(0, 217, 255, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.tp-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--tp-accent2);
    margin-bottom: 16px;
}

.tp-hero-title {
    font-size: 28px;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 12px;
    position: relative;
}

.tp-hero-title span {
    background: var(--tp-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tp-hero-subtitle {
    font-size: 15px;
    color: var(--tp-text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.tp-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--tp-gradient);
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.3);
    transition: all 0.3s;
}

.tp-hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 102, 255, 0.4);
}

.tp-hero-cta .material-icons-round {
    font-size: 20px;
}

/* =====================================================
   QUICK ACTION GRID (2x2)
   ===================================================== */
.tp-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 16px 32px;
    max-width: 600px;
    margin: 0 auto;
}

.tp-quick-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px 16px;
    background: var(--tp-bg-card);
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius);
    transition: all 0.3s;
    text-align: center;
}

.tp-quick-card:hover {
    border-color: rgba(0, 102, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.tp-quick-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.tp-quick-card-icon .material-icons-round {
    font-size: 26px;
    color: inherit;
}

.tp-quick-card-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--tp-text);
}

.tp-quick-card-desc {
    font-size: 12px;
    color: var(--tp-text-muted);
}

/* =====================================================
   HORIZONTAL SCROLL CAROUSEL
   ===================================================== */
.tp-carousel-wrap {
    overflow: hidden;
}

.tp-carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 16px 8px;
}

.tp-carousel::-webkit-scrollbar {
    display: none;
}

.tp-carousel-card {
    flex: 0 0 260px;
    scroll-snap-align: start;
    background: var(--tp-bg-card);
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius);
    padding: 20px;
    transition: all 0.3s;
}

.tp-carousel-card:hover {
    border-color: rgba(0, 102, 255, 0.3);
    transform: translateY(-2px);
}

.tp-carousel-card-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 10px;
}

.tp-carousel-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--tp-text);
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tp-carousel-card-desc {
    font-size: 13px;
    color: var(--tp-text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tp-carousel-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 12px;
    color: var(--tp-text-muted);
}

/* =====================================================
   UTILITY TOOL CARDS
   ===================================================== */
.tp-tool-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.tp-tool-card {
    padding: 20px;
    background: var(--tp-bg-card);
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.tp-tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--tp-gradient);
    opacity: 0;
    transition: opacity 0.3s;
}

.tp-tool-card:hover {
    border-color: rgba(0, 102, 255, 0.3);
    transform: translateY(-2px);
}

.tp-tool-card:hover::before {
    opacity: 1;
}

.tp-tool-card-icon {
    font-size: 28px;
    margin-bottom: 10px;
}

.tp-tool-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--tp-text);
    margin-bottom: 4px;
}

.tp-tool-card-desc {
    font-size: 12px;
    color: var(--tp-text-muted);
}

/* =====================================================
   GUIDE CARDS GRID
   ===================================================== */
.tp-filter-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 12px;
    margin-bottom: 4px;
}

.tp-filter-chips::-webkit-scrollbar {
    display: none;
}

.tp-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.tp-content-card {
    background: var(--tp-bg-card);
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius);
    padding: 18px;
    transition: all 0.3s;
}

.tp-content-card:hover {
    border-color: rgba(0, 102, 255, 0.3);
    transform: translateY(-2px);
}

.tp-content-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 8px;
}

.tp-content-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--tp-text);
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tp-content-card-excerpt {
    font-size: 12px;
    color: var(--tp-text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tp-content-card-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 11px;
    color: var(--tp-text-muted);
}

/* =====================================================
   RANKING SECTION
   ===================================================== */
.tp-ranking-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tp-ranking-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--tp-bg-card);
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius-sm);
    transition: all 0.2s;
}

.tp-ranking-item:hover {
    border-color: rgba(0, 102, 255, 0.3);
}

.tp-ranking-rank {
    font-size: 20px;
    font-weight: 900;
    min-width: 32px;
    text-align: center;
}

.tp-ranking-rank.gold { color: #FFD700; }
.tp-ranking-rank.silver { color: #C0C0C0; }
.tp-ranking-rank.bronze { color: #CD7F32; }

.tp-ranking-info {
    flex: 1;
}

.tp-ranking-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--tp-text);
}

.tp-ranking-provider {
    font-size: 12px;
    color: var(--tp-text-muted);
}

.tp-ranking-score {
    font-size: 18px;
    font-weight: 800;
    background: var(--tp-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tp-ranking-bar {
    width: 80px;
    height: 6px;
    background: var(--tp-bg-surface);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 4px;
}

.tp-ranking-bar-fill {
    height: 100%;
    background: var(--tp-gradient);
    border-radius: 3px;
    transition: width 1s ease;
}

/* =====================================================
   FOOTER
   ===================================================== */
.tp-footer {
    padding: 40px 16px 32px;
    border-top: 1px solid var(--tp-border);
}

.tp-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.tp-footer-logo {
    font-size: 16px;
    font-weight: 800;
    background: var(--tp-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    margin-bottom: 6px;
}

.tp-footer-desc {
    font-size: 13px;
    color: var(--tp-text-muted);
    margin-bottom: 20px;
}

.tp-footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
}

.tp-footer-links a {
    font-size: 13px;
    color: var(--tp-text-secondary);
    transition: color 0.2s;
}

.tp-footer-links a:hover {
    color: var(--tp-accent2);
}

.tp-footer-copy {
    font-size: 12px;
    color: var(--tp-text-muted);
}

/* =====================================================
   BOTTOM NAVIGATION
   ===================================================== */
.tp-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: calc(var(--tp-bottom-nav-h) + var(--tp-safe-bottom));
    padding-bottom: var(--tp-safe-bottom);
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--tp-border);
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.tp-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 12px;
    color: var(--tp-text-muted);
    transition: all 0.2s;
    font-size: inherit;
}

.tp-bottom-nav-item .material-icons-round {
    font-size: 24px;
}

.tp-bottom-nav-label {
    font-size: 10px;
    font-weight: 600;
}

.tp-bottom-nav-item.active,
.tp-bottom-nav-item:hover {
    color: var(--tp-accent2);
}

.tp-bottom-nav-item.active .material-icons-round {
    text-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
}

/* =====================================================
   SCROLL TO TOP
   ===================================================== */
.tp-scroll-top {
    position: fixed;
    bottom: calc(var(--tp-bottom-nav-h) + var(--tp-safe-bottom) + 16px);
    right: 16px;
    z-index: 900;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--tp-bg-secondary);
    border: 1px solid var(--tp-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tp-accent2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    box-shadow: 0 4px 20px var(--tp-shadow);
}

.tp-scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tp-scroll-top .material-icons-round {
    font-size: 22px;
}

/* =====================================================
   AI COMPARE PAGE
   ===================================================== */
.tp-compare-selectors {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
    margin-bottom: 24px;
}

.tp-compare-vs {
    font-size: 20px;
    font-weight: 900;
    background: var(--tp-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tp-select {
    width: 100%;
    padding: 12px 16px;
    background: var(--tp-bg-card);
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius-sm);
    color: var(--tp-text);
    font-size: 14px;
    font-family: var(--tp-font);
    font-weight: 600;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23718096' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}

.tp-select:focus {
    outline: none;
    border-color: var(--tp-accent);
}

.tp-compare-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--tp-bg-card);
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius);
    overflow: hidden;
}

.tp-compare-table th,
.tp-compare-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--tp-border);
    font-size: 14px;
}

.tp-compare-table th {
    font-weight: 700;
    color: var(--tp-text-secondary);
    background: rgba(255, 255, 255, 0.02);
    font-size: 13px;
}

.tp-compare-table td {
    color: var(--tp-text);
}

.tp-compare-table tr:last-child td {
    border-bottom: none;
}

.tp-score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
}

.tp-score-badge.high {
    background: rgba(72, 187, 120, 0.15);
    color: #48BB78;
}

.tp-score-badge.medium {
    background: rgba(246, 224, 94, 0.15);
    color: #F6E05E;
}

.tp-score-badge.low {
    background: rgba(252, 129, 129, 0.15);
    color: #FC8181;
}

/* =====================================================
   CALCULATOR PAGE
   ===================================================== */
.tp-calc-card {
    background: var(--tp-bg-card);
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius);
    padding: 24px;
    margin-bottom: 16px;
}

.tp-calc-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--tp-text-secondary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tp-calc-value {
    font-size: 24px;
    font-weight: 800;
    background: var(--tp-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tp-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--tp-bg-surface);
    border-radius: 3px;
    outline: none;
    margin: 12px 0;
}

.tp-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--tp-gradient);
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 102, 255, 0.3);
}

.tp-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--tp-gradient);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 102, 255, 0.3);
}

.tp-calc-results {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tp-calc-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--tp-bg-card);
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-radius-sm);
}

.tp-calc-result-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
}

.tp-calc-result-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.tp-calc-result-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--tp-accent2);
}

.tp-calc-result-detail {
    font-size: 12px;
    color: var(--tp-text-muted);
    text-align: right;
}

/* =====================================================
   PAGE TITLE BAR
   ===================================================== */
.tp-page-title-bar {
    padding: 24px 16px;
    text-align: center;
    background: linear-gradient(180deg, rgba(0, 102, 255, 0.06) 0%, transparent 100%);
}

.tp-page-title {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 6px;
}

.tp-page-subtitle {
    font-size: 14px;
    color: var(--tp-text-secondary);
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
.tp-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.tp-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.tp-stagger-1 { transition-delay: 0.05s; }
.tp-stagger-2 { transition-delay: 0.1s; }
.tp-stagger-3 { transition-delay: 0.15s; }
.tp-stagger-4 { transition-delay: 0.2s; }
.tp-stagger-5 { transition-delay: 0.25s; }
.tp-stagger-6 { transition-delay: 0.3s; }

/* =====================================================
   RESPONSIVE - TABLET (768px+)
   ===================================================== */
@media (min-width: 768px) {
    .tp-hero-title {
        font-size: 36px;
    }

    .tp-quick-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 800px;
    }

    .tp-card-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .tp-tool-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .tp-carousel-card {
        flex: 0 0 300px;
    }

    .tp-section {
        padding: 40px 24px;
    }
}

/* =====================================================
   RESPONSIVE - DESKTOP (1024px+)
   ===================================================== */
@media (min-width: 1024px) {
    .tp-bottom-nav {
        display: none;
    }

    .tp-main {
        padding-bottom: 0;
    }

    .tp-scroll-top {
        bottom: 32px;
    }

    .tp-hero-title {
        font-size: 42px;
    }

    .tp-card-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .tp-tool-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .tp-header-inner {
        padding: 0 32px;
    }

    .tp-section {
        padding: 48px 32px;
    }
}

/* =====================================================
   REDUCED MOTION
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .tp-fade-in {
        opacity: 1;
        transform: none;
    }
}

/* =====================================================
   PWA INSTALL BANNER
   ===================================================== */
.tp-pwa-banner {
    position: fixed;
    top: calc(var(--tp-header-h) + 12px);
    left: 16px;
    right: 16px;
    z-index: 1100;
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.tp-pwa-banner.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    animation: pwaBannerFloat 4s ease-in-out 0.8s infinite;
}

/* Antigravity 부드러운 부유 효과 */
@keyframes pwaBannerFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-6px) scale(1.005); }
}

.tp-pwa-banner-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(21, 27, 61, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(0, 217, 255, 0.15);
    border-radius: 16px;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(0, 102, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

/* 회전하는 그라디언트 보더 글로우 */
.tp-pwa-banner-inner::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 17px;
    background: conic-gradient(
        from var(--pwa-border-angle, 0deg),
        transparent 0%,
        rgba(0, 217, 255, 0.4) 8%,
        transparent 16%,
        transparent 50%,
        rgba(0, 102, 255, 0.35) 58%,
        transparent 66%,
        transparent 100%
    );
    z-index: -1;
    animation: pwaBorderGlow 5s linear infinite;
    opacity: 0.7;
}

@property --pwa-border-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes pwaBorderGlow {
    0% { --pwa-border-angle: 0deg; }
    100% { --pwa-border-angle: 360deg; }
}

/* 내부 은은한 오로라 빛 */
.tp-pwa-banner-inner::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 217, 255, 0.04) 25%,
        rgba(0, 102, 255, 0.06) 50%,
        rgba(0, 217, 255, 0.04) 75%,
        transparent 100%
    );
    animation: pwaAuroraShimmer 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pwaAuroraShimmer {
    0%, 100% { transform: translateX(-15%); }
    50% { transform: translateX(15%); }
}

.tp-pwa-banner-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--tp-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    animation: pwaIconPulse 2.5s ease-in-out infinite;
}

/* 아이콘 숨결 효과 */
@keyframes pwaIconPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 102, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 16px 4px rgba(0, 102, 255, 0.15);
    }
}

.tp-pwa-banner-icon .material-icons-round {
    color: #fff;
    font-size: 22px;
    animation: pwaIconBounce 2.5s ease-in-out infinite;
}

@keyframes pwaIconBounce {
    0%, 100% { transform: translateY(0); }
    40% { transform: translateY(-3px); }
    60% { transform: translateY(1px); }
}

.tp-pwa-banner-text {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.tp-pwa-banner-text strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--tp-text);
}

.tp-pwa-banner-text span {
    font-size: 12px;
    color: var(--tp-text-muted);
}

.tp-pwa-banner-install {
    padding: 8px 18px;
    background: var(--tp-gradient);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    animation: pwaInstallGlow 3s ease-in-out infinite;
}

/* 설치 버튼 글로우 펄스 */
@keyframes pwaInstallGlow {
    0%, 100% {
        box-shadow: 0 2px 12px rgba(0, 102, 255, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(0, 102, 255, 0.5), 0 0 30px rgba(0, 217, 255, 0.15);
    }
}

.tp-pwa-banner-install:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 24px rgba(0, 102, 255, 0.6), 0 0 40px rgba(0, 217, 255, 0.2);
}

.tp-pwa-banner-close {
    color: var(--tp-text-muted);
    padding: 4px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: color 0.2s, transform 0.2s;
}

.tp-pwa-banner-close:hover {
    color: var(--tp-text);
    transform: rotate(90deg);
}

.tp-pwa-banner-close .material-icons-round {
    font-size: 20px;
}

/* Reduced motion: 애니메이션 최소화 */
@media (prefers-reduced-motion: reduce) {
    .tp-pwa-banner.visible { animation: none; }
    .tp-pwa-banner-inner::before { animation: none; opacity: 0.3; }
    .tp-pwa-banner-inner::after { animation: none; }
    .tp-pwa-banner-icon { animation: none; }
    .tp-pwa-banner-icon .material-icons-round { animation: none; }
    .tp-pwa-banner-install { animation: none; }
}

/* =====================================================
   TOAST NOTIFICATIONS
   ===================================================== */
.tp-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

@media (max-width: 768px) {
    .tp-toast-container {
        top: auto;
        bottom: calc(var(--tp-bottom-nav-h) + var(--tp-safe-bottom) + 12px);
        right: 16px;
        left: 16px;
        align-items: center;
    }
}

.tp-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: rgba(21, 27, 61, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    border: 1px solid var(--tp-border);
    color: var(--tp-text);
    font-size: 14px;
    font-weight: 500;
    pointer-events: auto;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    max-width: 380px;
}

@media (max-width: 768px) {
    .tp-toast {
        transform: translateY(40px);
        max-width: 100%;
    }
    .tp-toast.visible {
        transform: translateY(0) !important;
    }
}

.tp-toast.visible {
    transform: translateX(0);
}

.tp-toast.success { border-left: 3px solid #48BB78; }
.tp-toast.error { border-left: 3px solid #FC8181; }
.tp-toast.info { border-left: 3px solid #00D9FF; }

/* =====================================================
   FOCUS VISIBLE
   ===================================================== */
:focus-visible {
    outline: 2px solid var(--tp-accent2);
    outline-offset: 2px;
    border-radius: 4px;
}
