


:root {
    
    --primary: #0066cc;
    --primary-dark: #0052a3;
    --primary-light: #3385d6;

    
    --accent: #059669;
    --accent-dark: #047857;

    
    --text: #1F2937;
    --text-light: #555555;
    --text-muted: #767676;

    
    --bg: #FFFFFF;
    --bg-gray: #F9FAFB;
    --bg-dark: #F3F4F6;

    
    --border: #E5E7EB;
    --border-dark: #D1D5DB;

    
    --success: #0D7A3F;
    --warning: #92600A;
    --error: #C42B2B;
    --info: #1A6FB5;

    
    --max-width: 720px;
    --radius: 8px;
    --radius-sm: 4px;
    --radius-lg: 12px;

    
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;

    
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", "Malgun Gothic", sans-serif;
    --font-size-xs: 12px;
    --font-size-sm: 14px;
    --font-size-base: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 20px;
    --font-size-2xl: 24px;
    --font-size-3xl: 30px;

    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg-gray);
}


.container {
    max-width: 100%;
    width: 100%;
    padding: 0 var(--spacing-md);
    margin: 0 auto;
}


@media (max-width: 767px) {
    .container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: var(--max-width);
    }
}


.site-header {
    background-color: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: var(--spacing-md) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.logo {
    margin-bottom: var(--spacing-md);
}

.logo a {
    text-decoration: none;
    color: var(--primary);
}

.logo h1 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin: 0;
}




.category-nav-wrapper {
    position: relative;
    
    margin-left: calc(-1 * var(--spacing-md));
    margin-right: calc(-1 * var(--spacing-md));
    background: linear-gradient(135deg, #111827 0%, #1f2937 55%, #111827 100%);
    padding: 14px 0;
    position: relative;
}

.category-nav-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(148, 163, 184, 0.05) 10px,
            rgba(148, 163, 184, 0.05) 20px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 10px,
            rgba(71, 85, 105, 0.06) 10px,
            rgba(71, 85, 105, 0.06) 20px
        );
    pointer-events: none;
}


.category-nav-gradient {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    pointer-events: none; 
    z-index: 2;
    opacity: 1;
    transition: opacity 0.3s ease;
}


.category-nav-gradient-left {
    left: 0;
    background: linear-gradient(to right, rgba(17, 24, 39, 1), rgba(17, 24, 39, 0.75), transparent);
}


.category-nav-gradient-right {
    right: 0;
    background: linear-gradient(to left, rgba(17, 24, 39, 1), rgba(17, 24, 39, 0.85), transparent);
}


.category-nav-gradient.visible {
    opacity: 1;
}


    
    animation: scrollHintPulse 1.5s ease-in-out infinite;
}

.category-scroll-hint svg {
    width: 18px;
    height: 18px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}


.category-scroll-hint.hidden {
    opacity: 0;
    transform: translateY(-50%) scale(0.5);
}


@keyframes scrollHintPulse {
    0%, 100% {
        transform: translateY(-50%) translateX(0) scale(1);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    }
    50% {
        transform: translateY(-50%) translateX(6px) scale(1.1);
        box-shadow: 0 6px 16px rgba(59, 130, 246, 0.6);
    }
}


.category-nav {
    
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 var(--spacing-md);
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
}

.category-nav::-webkit-scrollbar {
    display: none;
}

.category-nav:active {
    cursor: grabbing;
}

.category-nav.dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    user-select: none;
}




.category-nav.slide-paused .category-list {
    animation-play-state: paused;
}


@media (min-width: 768px) {
    .category-nav-wrapper {
        margin-left: 0;
        margin-right: 0;
    }

    .category-scroll-hint {
        display: none;
    }

    .category-nav-gradient {
        display: none;
    }

    
    .category-nav {
        overflow: visible;
        padding: 0;
    }

    
    .category-nav .category-list {
        animation: none !important;
        transform: none !important;
        white-space: normal;
        flex-wrap: wrap;
    }
}


.category-list {
    display: flex;
    gap: var(--spacing-sm);
    list-style: none;
    white-space: nowrap;
    
    /* animation: categorySlide 28s linear infinite; */
    
}

.category-item {
    flex-shrink: 0;
    background: none !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
}

.category-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 44px;
    padding: 0 20px;
    
    background: linear-gradient(155deg, rgba(255, 215, 0, 0.26) 0%, rgba(255, 215, 0, 0.07) 55%, rgba(255, 215, 0, 0.16) 100%);
    backdrop-filter: blur(12px) saturate(1.6);
    -webkit-backdrop-filter: blur(12px) saturate(1.6);
    color: rgba(255, 165, 0, 0.95);
    text-decoration: none;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 215, 0, 0.32);
    position: relative;
    box-shadow: rgba(0, 0, 0, 0.38) 0px 3px 14px 0px,
                rgba(255, 255, 255, 0.32) 0px 1.5px 0px 0px inset,
                rgba(0, 0, 0, 0.14) 0px -1px 0px 0px inset;
    white-space: nowrap;
    letter-spacing: -0.01em;
    cursor: pointer;
    text-align: center;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}


.category-link:hover {
    background: linear-gradient(155deg, rgba(255, 215, 0, 0.35) 0%, rgba(255, 215, 0, 0.12) 55%, rgba(255, 215, 0, 0.25) 100%);
    color: rgba(255, 165, 0, 1);
    border-color: rgba(255, 215, 0, 0.5);
    transform: translateY(-1px);
    box-shadow: rgba(0, 0, 0, 0.45) 0px 5px 18px 0px,
                rgba(255, 255, 255, 0.4) 0px 2px 0px 0px inset,
                rgba(0, 0, 0, 0.18) 0px -1.5px 0px 0px inset;
}


.category-link.active {
    background: linear-gradient(155deg, rgba(255, 215, 0, 0.5) 0%, rgba(255, 215, 0, 0.2) 55%, rgba(255, 215, 0, 0.4) 100%);
    color: rgba(255, 140, 0, 1);
    border-color: rgba(0, 102, 204, 0.7);
    box-shadow: rgba(0, 102, 204, 0.4) 0px 0px 20px 0px,
                rgba(0, 0, 0, 0.45) 0px 4px 16px 0px,
                rgba(255, 255, 255, 0.5) 0px 2px 0px 0px inset;
    transform: scale(1.02);
    animation: activePulse 2s ease-in-out infinite;
}


@keyframes activePulse {
    0%, 100% {
        box-shadow: rgba(0, 102, 204, 0.4) 0px 0px 20px 0px,
                    rgba(0, 0, 0, 0.45) 0px 4px 16px 0px,
                    rgba(255, 255, 255, 0.5) 0px 2px 0px 0px inset;
    }
    50% {
        box-shadow: rgba(0, 102, 204, 0.6) 0px 0px 30px 0px,
                    rgba(0, 0, 0, 0.5) 0px 5px 20px 0px,
                    rgba(255, 255, 255, 0.6) 0px 2.5px 0px 0px inset;
    }
}

.category-link:active {
    transform: translateY(0);
    box-shadow: rgba(0, 0, 0, 0.3) 0px 2px 8px 0px,
                rgba(255, 255, 255, 0.25) 0px 1px 0px 0px inset;
}

.category-link:focus-visible {
    outline: 2px solid rgba(0, 102, 204, 0.7);
    outline-offset: 3px;
}

.category-card-link {
    text-decoration: none;
    position: relative;
    display: block;
    z-index: 1;
    border-radius: inherit;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card-link::after {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: calc(var(--radius-lg) - 4px);
    border: 1px solid rgba(30, 64, 175, 0.0);
    pointer-events: none;
    transition: border-color 0.25s ease;
    z-index: -1;
}



.category-card-link:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.7);
    outline-offset: 4px;
}



.breadcrumb {
    padding: var(--spacing-md) 0;
    background-color: var(--bg-gray);
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    list-style: none;
    font-size: var(--font-size-sm);
}

.breadcrumb-item {
    color: var(--text-light);
}

.breadcrumb-item:not(:last-child)::after {
    content: "??;
    margin-left: var(--spacing-sm);
    color: var(--text-muted);
}

.breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--text);
}


.site-main {
    padding: var(--spacing-xl) 0;
    min-height: 60vh;
}


.ad-slot {
    margin: var(--spacing-xl) auto;
    padding: var(--spacing-md);
    background-color: var(--bg-dark);
    border-radius: var(--radius);
    text-align: center;
    min-height: 100px;
}


.calc-card,
.result-card,
.content-card,
.category-card {
    background-color: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow);
    margin-bottom: var(--spacing-lg);
}


.calc-header {
    margin-bottom: var(--spacing-xl);
}

.calc-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.calc-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0;
    flex: 1;
}

.calc-intro {
    font-size: var(--font-size-lg);
    color: var(--text-light);
    line-height: 1.6;
}


.calc-section {
    margin-bottom: var(--spacing-xl);
}


.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text);
    font-size: var(--font-size-base);
}

.form-input,
.form-select {
    width: 100%;
    padding: 14px var(--spacing-md);
    border: 2px solid #767676; 
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    font-family: var(--font-family);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: var(--bg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.form-input:hover,
.form-select:hover {
    border-color: var(--primary-light);
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.08);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.15), 0 4px 12px rgba(0, 102, 204, 0.1);
    transform: translateY(-1px);
}

.form-input::placeholder {
    color: #767676; /* WCAG 2.2 AA: ?鍮?4.5:1 ??蹂寃???var(--text-muted) opacity:0.7 */
}

.form-help {
    display: block;
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-top: var(--spacing-sm);
}


.btn {
    display: inline-block;
    padding: 14px var(--spacing-xl);
    font-size: var(--font-size-base);
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-family);
    
    background: linear-gradient(155deg, rgba(0, 102, 204, 0.26) 0%, rgba(0, 102, 204, 0.07) 55%, rgba(0, 102, 204, 0.16) 100%);
    backdrop-filter: blur(12px) saturate(1.6);
    -webkit-backdrop-filter: blur(12px) saturate(1.6);
    color: rgba(0, 102, 204, 0.92);
    border: 1px solid rgba(0, 102, 204, 0.32);
    box-shadow: rgba(0, 0, 0, 0.38) 0px 3px 14px 0px,
                rgba(255, 255, 255, 0.32) 0px 1.5px 0px 0px inset,
                rgba(0, 0, 0, 0.14) 0px -1px 0px 0px inset;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.btn:hover {
    background: linear-gradient(155deg, rgba(0, 102, 204, 0.35) 0%, rgba(0, 102, 204, 0.12) 55%, rgba(0, 102, 204, 0.25) 100%);
    color: rgba(0, 102, 204, 1);
    border-color: rgba(0, 102, 204, 0.5);
    transform: translateY(-1px);
    box-shadow: rgba(0, 0, 0, 0.45) 0px 5px 18px 0px,
                rgba(255, 255, 255, 0.4) 0px 2px 0px 0px inset,
                rgba(0, 0, 0, 0.18) 0px -1.5px 0px 0px inset;
}

.btn:active {
    width: 300px;
    height: 300px;
}

.btn-primary {
    
    background: linear-gradient(155deg, rgba(59, 130, 246, 0.3) 0%, rgba(59, 130, 246, 0.1) 55%, rgba(59, 130, 246, 0.2) 100%);
    backdrop-filter: blur(12px) saturate(1.6);
    -webkit-backdrop-filter: blur(12px) saturate(1.6);
    color: #ffffff;
    border: 1px solid rgba(59, 130, 246, 0.4);
    box-shadow: rgba(0, 0, 0, 0.38) 0px 3px 14px 0px,
                rgba(255, 255, 255, 0.32) 0px 1.5px 0px 0px inset,
                rgba(0, 0, 0, 0.14) 0px -1px 0px 0px inset;
}

.btn-primary:hover {
    background: linear-gradient(155deg, rgba(59, 130, 246, 0.4) 0%, rgba(59, 130, 246, 0.15) 55%, rgba(59, 130, 246, 0.3) 100%);
    border-color: rgba(59, 130, 246, 0.6);
    transform: translateY(-1px);
    box-shadow: rgba(0, 0, 0, 0.45) 0px 5px 18px 0px,
                rgba(255, 255, 255, 0.4) 0px 2px 0px 0px inset,
                rgba(0, 0, 0, 0.18) 0px -1.5px 0px 0px inset;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: rgba(0, 0, 0, 0.3) 0px 2px 8px 0px,
                rgba(255, 255, 255, 0.25) 0px 1px 0px 0px inset;
}

.btn-secondary {
    
    background: linear-gradient(155deg, rgba(156, 163, 175, 0.3) 0%, rgba(156, 163, 175, 0.1) 55%, rgba(156, 163, 175, 0.2) 100%);
    backdrop-filter: blur(12px) saturate(1.6);
    -webkit-backdrop-filter: blur(12px) saturate(1.6);
    color: #111827;
    border: 1px solid rgba(156, 163, 175, 0.4);
    box-shadow: rgba(0, 0, 0, 0.38) 0px 3px 14px 0px,
                rgba(255, 255, 255, 0.32) 0px 1.5px 0px 0px inset,
                rgba(0, 0, 0, 0.14) 0px -1px 0px 0px inset;
}

.btn-secondary:hover {
    background: linear-gradient(155deg, rgba(156, 163, 175, 0.4) 0%, rgba(156, 163, 175, 0.15) 55%, rgba(156, 163, 175, 0.3) 100%);
    border-color: rgba(156, 163, 175, 0.6);
    transform: translateY(-1px);
    box-shadow: rgba(0, 0, 0, 0.45) 0px 5px 18px 0px,
                rgba(255, 255, 255, 0.4) 0px 2px 0px 0px inset,
                rgba(0, 0, 0, 0.18) 0px -1.5px 0px 0px inset;
}

.btn-success {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: var(--bg);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.3);
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-group {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}


.result-section {
    margin-bottom: var(--spacing-xl);
}

.result-card {
    background: #fff;
    color: #111;
    padding: var(--spacing-xl);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-lg);
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
}

.result-highlight {
    text-align: center;
    padding: var(--spacing-xl);
    background-color: #f0f7ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
}

.result-label {
    font-size: var(--font-size-sm);
    color: #374151;
    margin-bottom: var(--spacing-sm);
}

.result-value {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: #111;
    margin-bottom: var(--spacing-xs);
}

.result-unit {
    font-size: var(--font-size-lg);
    color: #374151;
}

.result-details {
    background-color: var(--bg);
    color: var(--text);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
}

.result-row {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border);
}

.result-row:last-child {
    border-bottom: none;
}

.result-row-label {
    font-weight: 500;
    color: var(--text-light);
}

.result-row-value {
    font-weight: 600;
    color: var(--text);
}


.disclaimer-section {
    margin-bottom: var(--spacing-xl);
}

.disclaimer {
    background-color: #FEF3C7;
    border-left: 4px solid var(--warning);
    padding: var(--spacing-lg);
    border-radius: var(--radius);
}

.disclaimer h3 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-md);
    color: var(--text);
}

.disclaimer p {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
}

.disclaimer p:last-child {
    margin-bottom: 0;
}


.internal-links-section {
    margin-bottom: var(--spacing-xl);
}

.internal-links {
    padding: var(--spacing-lg);
    background-color: var(--bg-gray);
    border-radius: var(--radius);
}

.internal-links p {
    font-size: var(--font-size-sm);
    color: var(--text-light);
}

.internal-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.internal-links a:hover {
    text-decoration: underline;
}


.content-section {
    margin-bottom: var(--spacing-xl);
}

.content-card h2 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-lg);
    color: var(--text);
}

.content-card h3 {
    font-size: var(--font-size-xl);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    color: var(--text);
}

.content-card p {
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
    color: var(--text-light);
}

.content-card ul,
.content-card ol {
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-xl);
}

.content-card li {
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
}

.disclaimer-text {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    font-style: italic;
    margin-top: var(--spacing-lg);
}


.faq-section {
    margin-bottom: var(--spacing-xl);
}

.faq-title {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-lg);
    color: var(--text);
}

.faq-list {
    background-color: var(--bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: var(--spacing-lg);
    background-color: var(--bg);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text);
    transition: background-color 0.2s;
}

.faq-question:hover {
    background-color: var(--bg-gray);
}

.faq-q-text {
    flex: 1;
}

.faq-icon {
    font-size: var(--font-size-2xl);
    color: var(--primary);
    font-weight: 400;
    width: 24px;
    text-align: center;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer {
    background-color: #FAFAFA;
}
.faq-answer p {
    padding: 0 var(--spacing-lg) var(--spacing-lg) var(--spacing-lg);
    color: #333333;
    line-height: 1.6;
}


.share-section {
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

.share-title {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-md);
    color: var(--text);
}

.share-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn {
    padding: var(--spacing-md) var(--spacing-lg);
    border: none;
    border-radius: var(--radius);
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-family);
}

.share-btn.kakao {
    background-color: #FEE500;
    color: #000000;
}


#kakao-share-wrap a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #000000;
    text-decoration: none;
    font-weight: 600;
}

.share-btn.facebook {
    background-color: #1877F2;
    color: var(--bg);
}

.share-btn.link {
    background-color: var(--bg-dark);
    color: var(--text);
    border: 1px solid var(--border);
}


.share-btn.forward {
    background-color: var(--bg-dark);
    color: var(--text);
    border: 1px solid var(--border);
}
.share-btn.forward:hover {
    background-color: #D1D5DB;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}


.related-section {
    margin-bottom: var(--spacing-xl);
}

.related-title {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-lg);
    color: var(--text);
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

@media (min-width: 480px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.related-card {
    background-color: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--spacing-lg);
    transition: all 0.2s;
}

.related-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.related-link {
    text-decoration: none;
    display: block;
}

.related-name {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--spacing-sm);
}

.related-desc {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    line-height: 1.5;
}


.intro-section {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--bg);
    border-radius: var(--radius-lg);
}

.intro-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.intro-desc {
    font-size: var(--font-size-lg);
    line-height: 1.6;
    opacity: 0.95;
}


.section-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text);
}

.section-desc {
    font-size: var(--font-size-base);
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
}


.popular-section,
.recent-section {
    margin-bottom: var(--spacing-2xl);
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

@media (min-width: 480px) {
    .calc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .calc-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.calc-card-home,
.calc-card-list {
    background-color: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: all 0.2s;
    height: 100%;
}

.calc-card-home:hover,
.calc-card-list:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.calc-card-link {
    text-decoration: none;
    display: block;
}

.calc-card-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--spacing-sm);
}

.calc-card-desc {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: var(--spacing-sm);
    
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calc-card-category {
    display: inline-block;
    font-size: var(--font-size-xs);
    color: var(--primary);
    background-color: rgba(0, 102, 204, 0.1);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.calc-card-stats {
    margin-top: var(--spacing-sm);
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}


.category-section {
    margin-bottom: var(--spacing-2xl);
    background: linear-gradient(135deg, #0F172A 0%, #1A1F35 100%);
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl) var(--spacing-xl);
    margin-left: calc(-1 * var(--spacing-xl));
    margin-right: calc(-1 * var(--spacing-xl));
    padding-left: var(--spacing-xl);
    padding-right: var(--spacing-xl);
}

.category-section .section-title {
    color: #FFFFFF;
    background: linear-gradient(90deg, #E0E7FF 0%, #FCA5A5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.category-section .section-desc {
    color: rgba(255, 255, 255, 0.8);
}

.category-grid {
    display: flex;
    gap: var(--spacing-md);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
    padding-bottom: var(--spacing-md);
    cursor: grab;
}

.category-grid:active {
    cursor: grabbing;
}

.category-grid.dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    user-select: none;
}


.category-grid::-webkit-scrollbar {
    height: 8px;
}

.category-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.category-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.category-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.category-card {
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: var(--spacing-xl);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    min-width: 280px;
    flex-shrink: 0;
}

@media (min-width: 480px) {
    .category-card {
        min-width: calc(50% - var(--spacing-md) / 2);
    }
}

@media (min-width: 768px) {
    .category-card {
        min-width: calc(33.333% - var(--spacing-md) * 2 / 3);
    }
}

@media (min-width: 1024px) {
    .category-card {
        min-width: 300px;
    }
}


.category-grid.dragging .category-card-link {
    pointer-events: none;
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 30px;
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 12px 48px rgba(255, 255, 255, 0.25), 0 8px 32px rgba(31, 38, 135, 0.5);
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.2);
}

.category-card-link {
    text-decoration: none;
    display: block;
    position: relative;
    z-index: 1;
}

.category-icon {
    font-size: 56px;
    margin-bottom: var(--spacing-md);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.15) rotate(5deg);
}

.category-card-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: #FFD700;
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 8px rgba(255, 215, 0, 0.4), 0 0 20px rgba(255, 215, 0, 0.2);
}

.category-card-count {
    font-size: var(--font-size-sm);
    color: #A5F3FC;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 1px 2px rgba(165, 243, 252, 0.3);
}

.category-card-desc {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}


.about-section {
    margin-bottom: var(--spacing-2xl);
}

.about-content {
    background-color: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
}

.about-content h2 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-lg);
    color: var(--text);
}

.about-content p {
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
    color: var(--text-light);
}


.calc-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.calc-list-item {
    background-color: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--spacing-lg);
    transition: all 0.2s;
}

.calc-list-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.calc-list-link {
    text-decoration: none;
    display: block;
}

.calc-list-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--spacing-sm);
}

.calc-list-desc {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: var(--spacing-sm);
}

.calc-list-category {
    display: inline-block;
    font-size: var(--font-size-xs);
    color: var(--accent);
    background-color: rgba(5, 150, 105, 0.1);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-weight: 500;
}


.category-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.category-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--text);
    margin-bottom: var(--spacing-md);
}

.category-description {
    font-size: var(--font-size-lg);
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.category-meta {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.calculators-section {
    margin-bottom: var(--spacing-xl);
}

.empty-state {
    text-align: center;
    padding: var(--spacing-2xl);
    color: var(--text-muted);
}

.category-content {
    margin-bottom: var(--spacing-xl);
}

.other-categories {
    margin-bottom: var(--spacing-xl);
}

.category-list-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.category-link-item {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: all 0.2s;
}

.category-link-item:hover {
    background-color: var(--primary);
    color: var(--bg);
    border-color: var(--primary);
}


.site-footer {
    background-color: var(--text);
    color: var(--bg);
    padding: var(--spacing-xl) 0;
    margin-top: var(--spacing-2xl);
}

.footer-nav {
    margin-bottom: var(--spacing-lg);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md) var(--spacing-lg);
    list-style: none;
}

.footer-links a {
    color: var(--bg);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: opacity 0.2s;
}

.footer-links a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.copyright {
    text-align: center;
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.7);
}




.input-group {
    margin-bottom: 20px;
}

.input-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}


.num-input,
.calc-input,
.input-field,
.select-input,
.calc-select,
.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(229, 231, 235, 0.6);
    border-radius: 16px;
    font-size: 16px;
    font-family: var(--font-family);
    color: var(--text);
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.5) 100%);
    backdrop-filter: blur(10px) saturate(1.5);
    -webkit-backdrop-filter: blur(10px) saturate(1.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08),
                0 1px 0 rgba(255, 255, 255, 0.6) inset,
                0 -1px 0 rgba(0, 0, 0, 0.05) inset;
    appearance: none;
    -webkit-appearance: none;
}

.num-input:hover,
.calc-input:hover,
.input-field:hover,
.select-input:hover,
.calc-select:hover,
.form-control:hover {
    border-color: rgba(59, 130, 246, 0.5);
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.6) 100%);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1),
                0 1px 0 rgba(255, 255, 255, 0.7) inset,
                0 -1px 0 rgba(0, 0, 0, 0.05) inset;
    transform: translateY(-1px);
}

.num-input:focus,
.calc-input:focus,
.input-field:focus,
.select-input:focus,
.calc-select:focus,
.form-control:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.6);
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.7) 100%);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15),
                0 8px 20px rgba(59, 130, 246, 0.15),
                0 2px 0 rgba(255, 255, 255, 0.8) inset,
                0 -1px 0 rgba(0, 0, 0, 0.05) inset;
    transform: translateY(-2px);
}

.num-input::placeholder,
.calc-input::placeholder,
.input-field::placeholder {
    color: #767676; 
}

.input-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.5;
}


.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: 2px solid #767676; 
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    background: #fff;
    transition: all 0.2s;
}

.radio-label:hover {
    border-color: #3B82F6; 
    background: #EFF6FF;
}

.radio-label input[type="radio"] {
    accent-color: #3B82F6;
}

.radio-label input[type="radio"]:checked ~ span,
.radio-label:has(input:checked) {
    color: #2563EB;
}

.radio-label:has(input:checked) {
    border-color: #3B82F6;
    background: #EFF6FF;
    font-weight: 600;
}


.calc-buttons {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}


.btn_calculate {
    flex: 1;
    padding: 16px 24px;
    
    background: linear-gradient(155deg, rgba(0, 102, 204, 0.26) 0%, rgba(0, 102, 204, 0.07) 55%, rgba(0, 102, 204, 0.16) 100%);
    backdrop-filter: blur(12px) saturate(1.6);
    -webkit-backdrop-filter: blur(12px) saturate(1.6);
    color: rgba(0, 102, 204, 0.92);
    border: 1px solid rgba(0, 102, 204, 0.32);
    border-radius: 24px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: rgba(0, 0, 0, 0.38) 0px 3px 14px 0px,
                rgba(255, 255, 255, 0.32) 0px 1.5px 0px 0px inset,
                rgba(0, 0, 0, 0.14) 0px -1px 0px 0px inset;
    position: relative;
    overflow: hidden;
    letter-spacing: -0.01em;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.btn_calculate:hover {
    background: linear-gradient(155deg, rgba(0, 102, 204, 0.35) 0%, rgba(0, 102, 204, 0.12) 55%, rgba(0, 102, 204, 0.25) 100%);
    color: rgba(0, 102, 204, 1);
    border-color: rgba(0, 102, 204, 0.5);
    transform: translateY(-1px);
    box-shadow: rgba(0, 0, 0, 0.45) 0px 5px 18px 0px,
                rgba(255, 255, 255, 0.4) 0px 2px 0px 0px inset,
                rgba(0, 0, 0, 0.18) 0px -1.5px 0px 0px inset;
}

.btn_calculate:active {
    transform: translateY(0);
    box-shadow: rgba(0, 0, 0, 0.3) 0px 2px 8px 0px,
                rgba(255, 255, 255, 0.25) 0px 1px 0px 0px inset;
}


.btn_reset {
    flex: 1;
    padding: 16px 24px;

    background: linear-gradient(155deg, rgba(156, 163, 175, 0.26) 0%, rgba(156, 163, 175, 0.07) 55%, rgba(156, 163, 175, 0.16) 100%);
    backdrop-filter: blur(12px) saturate(1.6);
    -webkit-backdrop-filter: blur(12px) saturate(1.6);
    color: rgba(107, 114, 128, 0.92);
    border: 1px solid rgba(156, 163, 175, 0.32);
    border-radius: 24px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: rgba(0, 0, 0, 0.38) 0px 3px 14px 0px,
                rgba(255, 255, 255, 0.32) 0px 1.5px 0px 0px inset,
                rgba(0, 0, 0, 0.14) 0px -1px 0px 0px inset;
    position: relative;
    overflow: hidden;
    letter-spacing: -0.01em;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.btn_reset:hover {
    background: linear-gradient(155deg, rgba(156, 163, 175, 0.35) 0%, rgba(156, 163, 175, 0.12) 55%, rgba(156, 163, 175, 0.25) 100%);
    color: rgba(107, 114, 128, 1);
    border-color: rgba(156, 163, 175, 0.5);
    transform: translateY(-1px);
    box-shadow: rgba(0, 0, 0, 0.45) 0px 5px 18px 0px,
                rgba(255, 255, 255, 0.4) 0px 2px 0px 0px inset,
                rgba(0, 0, 0, 0.18) 0px -1.5px 0px 0px inset;
}

.btn_reset:active {
    transform: translateY(0);
    box-shadow: rgba(0, 0, 0, 0.3) 0px 2px 8px 0px,
                rgba(255, 255, 255, 0.25) 0px 1px 0px 0px inset;
}

.btn_reset:active {
    transform: translateY(0);
    box-shadow: rgba(0, 0, 0, 0.3) 0px 2px 8px 0px,
                rgba(255, 255, 255, 0.25) 0px 1px 0px 0px inset;
}




.result-detail {
    margin-top: 20px;
}


.result-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.result-table th,
.result-table td {
    padding: 12px 16px;
    text-align: left;
    font-size: 14px;
    border-bottom: 1px solid #e5e7eb;
    color: #111;
}

.result-table th {
    font-weight: 600;
    background: #f9fafb;
    width: 55%;
}

.result-table td {
    font-weight: 600;
    text-align: right;
}

.result-table tr:last-child th,
.result-table tr:last-child td {
    border-bottom: none;
}

.result-table tr:hover th,
.result-table tr:hover td {
    background: #1e3a8a;
    color: #fff;
}

.result-table tr.divider th {
    background: #f3f4f6;
    font-weight: 700;
    text-align: center;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #374151;
}

.result-table tr.total-row th,
.result-table tr.total-row td {
    background: #1e3a8a;
    font-weight: 800;
    font-size: 16px;
    color: #fff;
    border-top: 2px solid #1d4ed8;
}

.result-table tr.total-row:hover th,
.result-table tr.total-row:hover td {
    background: #1d4ed8;
    color: #fff;
}

.result-table tr.highlight-row th,
.result-table tr.highlight-row td {
    background: #eff6ff;
    font-weight: 700;
    color: #1e40af;
}

.result-table tr.highlight-row:hover th,
.result-table tr.highlight-row:hover td {
    background: #1e3a8a;
    color: #fff;
}

.result-table tr.sub-total th,
.result-table tr.sub-total td {
    background: #f3f4f6;
    font-weight: 700;
    color: #374151;
}


.result-info {
    margin-top: 16px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 10px;
    padding: 14px 16px;
}

.result-title {
    font-size: 13px;
    font-weight: 600;
    color: #111;
    margin-bottom: 4px;
}


.info-box {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: 16px;
    font-size: 14px;
    color: #1E40AF;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    font-size: 14px;
}

.info-table th,
.info-table td {
    padding: 8px 12px;
    border: 1px solid var(--border);
    text-align: left;
}

.info-table th {
    background: var(--bg-gray);
    font-weight: 600;
    color: var(--text);
}

.info-table td {
    color: var(--text-light);
}

.info-text {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 8px;
}

.table-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
    font-style: italic;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 2px solid #111;
    border-radius: 8px;
    position: relative;
}


@media (max-width: 768px) {
    .table-responsive::after {
        content: '??醫뚯슦 ?ㅽ겕濡???;
        display: block;
        text-align: center;
        font-size: 11px;
        font-weight: 700;
        color: #111;
        background: #f3f4f6;
        border-top: 1px solid #d1d5db;
        padding: 5px;
        letter-spacing: 0.05em;
    }
}


.salary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-top: 16px;
}

.salary-table th,
.salary-table td {
    padding: 10px 14px;
    border: 1px solid var(--border);
    text-align: right;
}

.salary-table th {
    background: linear-gradient(135deg, #2563EB, #1D4ED8);
    color: #fff;
    font-weight: 600;
    text-align: center;
}

.salary-table tr:nth-child(even) td {
    background: var(--bg-gray);
}

.salary-table tr:hover td {
    background: #EFF6FF;
}

.salary-table .highlight {
    background: #FEF9C3 !important;
    font-weight: 700;
    color: #92400E;
}

.highlight-text {
    color: #2563EB;
    font-weight: 700;
}


.result-card {
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.hidden {
    display: none;
}

.visible {
    display: block;
}


@media (min-width: 768px) {
    .logo {
        margin-bottom: var(--spacing-lg);
    }

    .logo h1 {
        font-size: var(--font-size-3xl);
    }

    .calc-title {
        font-size: 36px;
    }

    .intro-title {
        font-size: 40px;
    }
}


.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.detail-row:last-child {
    border-bottom: none;
}
.detail-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}
.detail-value {
    font-size: 14px;
    color: #ffffff;
    font-weight: 600;
    text-align: right;
}


.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
    padding: 4px 0;
}
.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2563EB;
    cursor: pointer;
}


.random-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 8px 0;
}
.random-number-badge {
    background: rgba(255,255,255,0.25);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 700;
    min-width: 48px;
    text-align: center;
}



.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-sm);
}


.search-trigger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    
    background: linear-gradient(155deg, rgba(0, 102, 204, 0.26) 0%, rgba(0, 102, 204, 0.07) 55%, rgba(0, 102, 204, 0.16) 100%);
    backdrop-filter: blur(12px) saturate(1.6);
    -webkit-backdrop-filter: blur(12px) saturate(1.6);
    color: rgba(0, 102, 204, 0.92);
    border: 1px solid rgba(0, 102, 204, 0.32);
    border-radius: 50%;
    cursor: pointer;
    font-family: var(--font-family);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: rgba(0, 0, 0, 0.38) 0px 3px 14px 0px,
                rgba(255, 255, 255, 0.32) 0px 1.5px 0px 0px inset,
                rgba(0, 0, 0, 0.14) 0px -1px 0px 0px inset;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.search-trigger-btn:hover {
    background: linear-gradient(155deg, rgba(0, 102, 204, 0.35) 0%, rgba(0, 102, 204, 0.12) 55%, rgba(0, 102, 204, 0.25) 100%);
    color: rgba(0, 102, 204, 1);
    border-color: rgba(0, 102, 204, 0.5);
    transform: translateY(-1px);
    box-shadow: rgba(0, 0, 0, 0.45) 0px 5px 18px 0px,
                rgba(255, 255, 255, 0.4) 0px 2px 0px 0px inset,
                rgba(0, 0, 0, 0.18) 0px -1.5px 0px 0px inset;
}
.search-trigger-btn:active {
    transform: translateY(0);
    box-shadow: rgba(0, 0, 0, 0.3) 0px 2px 8px 0px,
                rgba(255, 255, 255, 0.25) 0px 1px 0px 0px inset;
}
.search-trigger-btn svg {
    width: 20px;
    height: 20px;
}
.search-trigger-btn span {
    display: none;
}


.header-banner-area {
    display: flex;
    align-items: center;
    gap: 12px;
}


.search-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    animation: fadeIn 0.2s ease;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.search-modal-overlay.open {
    display: flex;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


.search-modal {
    background: #ffffff;
    color: #333333;
    width: 80vw;
    max-width: 80vw;
    height: 80vh;
    max-height: 80vh;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideDown 0.25s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}


.search-modal-header {
    padding: 16px;
    border-bottom: 1px solid #E5E7EB;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-controls {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.category-filter {
    min-width: 100px;
    padding: 10px 12px;
    border: 2px solid #767676;
    border-radius: var(--radius-lg);
    font-size: 14px;
    font-family: var(--font-family);
    color: #333333;
    background: #ffffff;
    outline: none;
    cursor: pointer;
}

.category-filter:focus {
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.search-modal-input {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #767676;
    border-radius: var(--radius-lg);
    font-size: 14px;
    font-family: var(--font-family);
    color: #333333;
    background: #ffffff;
    outline: none;
}
.search-modal-input:focus {
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.search-modal-input::placeholder {
    color: #767676;
}
.search-modal-close {
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    color: #555555;
    font-size: 24px;
    line-height: 1;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
}
.search-modal-close:hover {
    background: #F0F0F0;
    color: #333333;
}


.search-results {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-sm) 0;
}
.search-result-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    text-decoration: none;
    color: #333333;
    border-bottom: 1px solid #F0F0F0;
    transition: background 0.15s;
}
.search-result-item:hover {
    background: #F5F8FF;
    color: #1A1A1A;
}
.search-result-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
    border: 1px solid #BFDBFE;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.search-result-info {
    flex: 1;
    min-width: 0;
}
.search-result-name {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-result-category {
    font-size: var(--font-size-xs);
    color: #555555;
}
.search-result-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
}
.search-stat {
    font-size: 12px;
    color: #767676;
    white-space: nowrap;
}
.search-stat.views::before { content: "?몓 "; }
.search-stat.likes::before { content: "??"; }
.search-empty {
    text-align: center;
    padding: var(--spacing-2xl);
    color: #767676;
    font-size: var(--font-size-sm);
}


.like-section {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}
.like-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: #fff;
    color: #555555;
    border: 2px solid #D1D5DB;
    border-radius: 50px;
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-family);
    transition: all 0.2s;
    min-height: 44px;
}
.like-btn:hover {
    border-color: #E11D48;
    color: #E11D48;
    background: #FFF1F2;
    transform: translateY(-1px);
}
.like-btn.liked {
    background: #FFF1F2;
    border-color: #E11D48;
    color: #E11D48;
}
.like-count {
    font-weight: 700;
}




.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.site-logo {
    height: 90px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.logo-link:hover .site-logo {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.3));
}

.site-name-text {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, #1E40AF 0%, #7C3AED 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .site-logo {
        height: 110px;
    }
    .site-name-text {
        font-size: 22px;
    }
}


.current-country-flag {
    border-radius: 2px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}


@media (max-width: 640px) {
    .header-top {
        gap: 8px;
        padding: 0 12px;
    }

    .site-logo {
        height: 50px;
    }

    .site-name-text {
        font-size: 16px;
    }

    .current-country-flag {
        width: 18px;
        height: 13px;
    }
}


.calc-feed-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.calc-feed-item {
    border-bottom: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.calc-feed-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #3B82F6, #8B5CF6);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.calc-feed-item:hover::before {
    transform: scaleY(1);
}

.calc-feed-item:last-child {
    border-bottom: none;
}

.calc-feed-item:hover {
    background: linear-gradient(90deg, #F0F9FF 0%, #FAF5FF 100%);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}


.calc-feed-item.popular-item {
    background: linear-gradient(90deg, #FEF3C7 0%, #FED7AA 100%);
}

.calc-feed-item.popular-item:hover {
    background: linear-gradient(90deg, #FBBF24 0%, #F59E0B 100%);
    box-shadow: 0 8px 24px rgba(251, 191, 36, 0.3);
}

.calc-feed-item.popular-item .calc-feed-title {
    background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}


.calc-feed-item.recent-item {
    background: linear-gradient(90deg, #DBEAFE 0%, #E0E7FF 100%);
}

.calc-feed-item.recent-item:hover {
    background: linear-gradient(90deg, #93C5FD 0%, #A5B4FC 100%);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.calc-feed-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    text-decoration: none;
    color: var(--text);
}

.calc-feed-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #60A5FA 0%, #8B5CF6 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.calc-feed-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.calc-feed-item:hover .calc-feed-icon {
    transform: rotate(10deg) scale(1.1);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.5);
}

.calc-emoji {
    font-size: 28px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}


.calc-feed-icon i {
    font-size: 28px;
    color: #ffffff;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.calc-feed-icon i.fab {
    font-size: 26px;
}


.popular-icon {
    background: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.popular-icon .calc-emoji {
    color: #ffffff;
    font-weight: 700;
    font-size: 24px;
}


.recent-icon {
    background: linear-gradient(135deg, #10B981 0%, #3B82F6 100%);
}

.calc-feed-content {
    flex: 1;
    min-width: 0;
}

.calc-feed-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--spacing-xs);
    line-height: 1.4;
}

.calc-feed-desc {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.calc-feed-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: var(--font-size-xs);
}

.calc-category-badge {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-sm);
    background-color: rgba(0, 102, 204, 0.1);
    color: var(--primary);
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.calc-views {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.calc-feed-arrow {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 0.2s;
}

.calc-feed-item:hover .calc-feed-arrow {
    transform: translateX(4px);
    color: var(--primary);
}


.ad-infeed-inline {
    padding: var(--spacing-lg);
    background-color: #F9FAFB;
    border-bottom: 1px solid var(--border);
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.loading-spinner {
    padding: var(--spacing-xl);
    text-align: center;
}

.spinner-circle {
    width: 40px;
    height: 40px;
    border: 4px solid #E5E7EB;
    border-top-color: #3B82F6;
    border-radius: 50%;
    margin: 0 auto var(--spacing-md);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-spinner p {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

.scroll-end-message {
    padding: var(--spacing-xl);
    text-align: center;
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.scroll-end-message p {
    background: linear-gradient(135deg, #8B5CF6 0%, #3B82F6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


@media (max-width: 640px) {
    .calc-feed-link {
        gap: var(--spacing-sm);
        padding: var(--spacing-md);
    }

    .calc-feed-icon {
        width: 48px;
        height: 48px;
    }

    .calc-emoji {
        font-size: 24px;
    }

    .calc-feed-title {
        font-size: var(--font-size-base);
    }

    .calc-feed-desc {
        font-size: var(--font-size-xs);
        -webkit-line-clamp: 1;
    }
}


@media print {
    .site-header,
    .site-footer,
    .breadcrumb,
    .ad-slot,
    .share-section,
    .related-section {
        display: none;
    }

    .site-main {
        padding: 0;
    }

    .calc-card,
    .result-card,
    .content-card {
        box-shadow: none;
        border: 1px solid var(--border);
    }
}




.country-flag-icon {
    cursor: pointer;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.8);
    object-fit: cover;
    flex-shrink: 0;
    display: block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
    position: relative;
    width: 32px;
    height: 32px;
}

.country-flag-icon::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.country-flag-icon:hover::before {
    opacity: 0.3;
}

.country-flag-icon:hover {
    transform: scale(1.15);
    border-color: rgba(255, 255, 255, 1);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.country-flag-icon:active {
    transform: scale(0.95);
}


.lang-code-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 64px;
    height: 36px;
    padding: 0 14px;
    
    background: linear-gradient(155deg, rgba(0, 102, 204, 0.26) 0%, rgba(0, 102, 204, 0.07) 55%, rgba(0, 102, 204, 0.16) 100%);
    backdrop-filter: blur(12px) saturate(1.6);
    -webkit-backdrop-filter: blur(12px) saturate(1.6);
    color: rgba(0, 102, 204, 0.92);
    border: 1px solid rgba(0, 102, 204, 0.32);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    font-family: var(--font-family);
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: rgba(0, 0, 0, 0.38) 0px 3px 14px 0px,
                rgba(255, 255, 255, 0.32) 0px 1.5px 0px 0px inset,
                rgba(0, 0, 0, 0.14) 0px -1px 0px 0px inset;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
}

.lang-code-btn:hover {
    background: linear-gradient(155deg, rgba(0, 102, 204, 0.35) 0%, rgba(0, 102, 204, 0.12) 55%, rgba(0, 102, 204, 0.25) 100%);
    color: rgba(0, 102, 204, 1);
    border-color: rgba(0, 102, 204, 0.5);
    transform: translateY(-1px);
    box-shadow: rgba(0, 0, 0, 0.45) 0px 5px 18px 0px,
                rgba(255, 255, 255, 0.4) 0px 2px 0px 0px inset,
                rgba(0, 0, 0, 0.18) 0px -1.5px 0px 0px inset;
}

.lang-code-btn:active {
    transform: translateY(0);
    box-shadow: rgba(0, 0, 0, 0.3) 0px 2px 8px 0px,
                rgba(255, 255, 255, 0.25) 0px 1px 0px 0px inset;
}

@media (max-width: 640px) {
    .lang-code-btn {
        min-width: 64px;
        height: 32px;
        font-size: 12px;
        padding: 0 10px;
        gap: 3px;
    }
}


.country-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2100;
    animation: fadeIn 0.2s ease;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
}

.country-modal-overlay.open {
    display: flex;
}


.country-modal {
    background: #ffffff;
    color: #333333;
    width: 80vw;
    max-width: 80vw;
    height: 80vh;
    max-height: 80vh;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.25s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.country-modal-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.country-modal-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.country-modal-close {
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    color: #555555;
    font-size: 24px;
    line-height: 1;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    transition: all 0.2s;
}

.country-modal-close:hover {
    background: #F0F0F0;
    color: #333333;
}


.country-modal-body {
    padding: var(--spacing-lg);
    max-height: 60vh;
    overflow-y: auto;
}


.language-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
    border: 1px solid #E5E7EB;
}

.language-option:hover {
    background: linear-gradient(135deg, #EFF6FF 0%, #F3E8FF 100%);
    border-color: #D1D5DB;
}

.language-name {
    font-size: 16px;
    font-weight: 700;
    color: #1F2937;
}

.language-flags {
    display: flex;
    gap: 8px;
    align-items: center;
}

.country-flag-btn {
    cursor: pointer;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.country-flag-btn:hover {
    transform: scale(1.15);
    border-color: #3B82F6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.country-flag-btn:active {
    transform: scale(0.95);
}


.country-option {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid #F5F5F5;
}

.country-option:hover {
    background: #F5F8FF;
}

.country-option:last-child {
    border-bottom: none;
}


.language-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 4px;
}


.language-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #FFFFFF 0%, #F9FAFB 100%);
    border: 1.5px solid #E5E7EB;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.language-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(147, 51, 234, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.25s;
}

.language-item:hover {
    background: linear-gradient(135deg, #EFF6FF 0%, #F5F3FF 100%);
    border-color: #3B82F6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.language-item:hover::before {
    opacity: 1;
}

.language-item:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.15);
}


.language-item .flag {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}


.language-item .language-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}


.language-item .language-native {
    font-size: 15px;
    font-weight: 600;
    color: #1F2937;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.language-item .language-english {
    font-size: 12px;
    font-weight: 400;
    color: #6B7280;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.language-item.tier-1 {
    border-color: #DBEAFE;
}

.language-item.tier-2 {
    border-color: #E5E7EB;
}

.language-item.tier-3 {
    border-color: #F3F4F6;
}


.language-item.active {
    background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
    border-color: #3B82F6;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.language-item.active .language-native,
.language-item.active .language-english {
    color: #FFFFFF;
}


@media (max-width: 480px) {
    .language-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .language-item {
        padding: 10px 12px;
        gap: 8px;
    }

    .language-item .flag {
        font-size: 22px;
    }

    .language-item .language-native {
        font-size: 13px;
    }

    .language-item .language-english {
        font-size: 11px;
    }
}


@media (min-width: 640px) {
    .language-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

.country-flag-img {
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.global-icon {
    font-size: 1.8rem;
    width: 32px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.country-name {
    font-size: var(--font-size-base);
    color: #1a1a1a;
    font-weight: 500;
}


@media (max-width: 640px) {
    .country-modal {
        max-width: 90%;
    }

    .country-flag-icon {
        width: 20px;
        height: 15px;
    }
}


.scroll-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
    gap: var(--spacing-md);
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #E5E7EB;
    border-top-color: #3B82F6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.scroll-loader p {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.scroll-end {
    padding: var(--spacing-xl);
    text-align: center;
}

.scroll-end p {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    font-weight: 600;
    background: linear-gradient(135deg, #10B981 0%, #3B82F6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


@keyframes spin {
    to { transform: rotate(360deg); }
}


@keyframes fadeInItem {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.calc-feed-item.fade-in {
    animation: fadeInItem 0.4s ease;
}


.helpful-section {
    text-align: center;
    padding: 24px 20px;
    background: var(--bg-gray);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin: 24px 0 16px;
}

.helpful-question {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text);
    margin: 0 0 16px;
}

.helpful-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}


.btn-helpful {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    font-family: var(--font-family);
    border: 2px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
    min-height: 44px;
    background: #28a745;
    color: #ffffff;
}

.btn-helpful:hover:not(:disabled) {
    background: #218838;
    transform: translateY(-1px);
}


.btn-helpful.btn-helpful-no {
    background: #6c757d;
    color: #ffffff;
}

.btn-helpful.btn-helpful-no:hover:not(:disabled) {
    background: #5a6268;
    transform: translateY(-1px);
}


.btn-helpful:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.helpful-icon {
    font-size: 18px;
    line-height: 1;
}


.helpful-count-text {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin: 10px 0 4px;
}

.helpful-count-text #helpfulCount {
    font-weight: 700;
    color: var(--primary);
}


.helpful-voted-msg {
    font-size: var(--font-size-sm);
    color: var(--accent);
    font-weight: 600;
    margin: 4px 0 0;
}


@media (max-width: 480px) {
    .helpful-buttons {
        flex-direction: column;
        align-items: center;
    }
    .btn-helpful {
        width: 100%;
        max-width: 240px;
        justify-content: center;
    }
}


.home-banner-wrap {
    position: relative;
    margin-bottom: 24px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(0, 82, 163, 0.35);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
    background: linear-gradient(135deg, #0052a3 0%, #0066cc 50%, #3B82F6 100%);
    color: #ffffff;
}

.home-banner-shell {
    position: relative;
    padding: 12px 78px 13px 22px;
    min-height: 77px;
    background: radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.3), transparent 42%);
    transform-style: preserve-3d;
    transition: background 0.35s ease, transform 0.35s ease, opacity 0.35s ease;
    opacity: 1;
}

.home-banner-shell.is-fade {
    opacity: 0.75;
    transform: translateY(3px) scale(0.99);
}

.home-banner-empty .home-banner-shell {
    min-height: 65px;
    background: linear-gradient(130deg, #1D4ED8 0%, #3B82F6 50%, #06B6D4 100%);
}

.home-banner-kicker {
    margin: 0;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #D0E9FF;
    font-weight: 700;
}

.home-banner-title {
    margin: 2px 0 5px;
    font-size: clamp(14px, 2.5vw, 18px);
    line-height: 1.1;
    font-weight: 700;
    color: #FFFFFF;
}

.home-banner-desc {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 15px;
    max-width: 740px;
    line-height: 1.65;
    min-height: 2.6em;
}

.home-banner-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    background: #FFFFFF;
    color: #0F172A;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.22);
}

.home-banner-cta:hover {
    transform: translateY(-1px);
    background: #F1F5F9;
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.24);
}

.home-banner-progress {
    margin-top: 16px;
    height: 3px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.2);
}

.home-banner-progress span {
    display: block;
    width: 0%;
    height: 100%;
    background: #ffffff;
    transition: width 0.25s linear;
}

.home-banner-dots {
    position: absolute;
    right: 22px;
    bottom: 20px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.home-banner-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    background: transparent;
    cursor: pointer;
    transition: width 0.2s, background 0.2s;
}

.home-banner-dot.active {
    width: 26px;
    background: #ffffff;
}

.home-banner-hint {
    position: absolute;
    right: 22px;
    top: 26px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.86);
}

.home-banner-wrap.is-ripple {
    animation: homeBannerRipple 0.28s ease;
}

.home-banner-empty .home-banner-hint {
    display: none;
}

@keyframes homeBannerRipple {
    0% { transform: scale(0.995); }
    50% { transform: scale(0.985); }
    100% { transform: scale(1); }
}


.updates-section {
    padding: 12px 0 28px;
}

.updates-section-header p {
    margin: 6px 0 0;
    color: #334155;
}

.updates-kicker {
    margin: 0;
    font-size: 12px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: #2563EB;
    font-weight: 700;
}

.updates-section-header h1 {
    margin: 8px 0 0;
    font-size: 34px;
    color: #0F172A;
}

.updates-list {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.notice-card,
.notice-empty {
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.notice-card h2 {
    margin: 0 0 8px;
    color: #0F172A;
    font-size: 18px;
}

.notice-card p {
    margin: 0;
    color: #475569;
    line-height: 1.65;
}

.notice-link {
    margin-top: 14px;
    color: #1D4ED8;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
}

.notice-empty {
    text-align: center;
    color: #64748B;
    padding: 24px;
}

@media (max-width: 768px) {
    .home-banner-shell {
        padding: 20px 20px 82px;
    }
    .home-banner-kicker {
        font-size: 11px;
    }
    .home-banner-dots {
        right: 18px;
        bottom: 22px;
    }
    .home-banner-hint {
        right: 18px;
        top: 18px;
        font-size: 11px;
    }
}


:root {
    
    --primary: #0066cc;
    --primary-dark: #0052a3;
    --primary-light: #3385d6;

    
    --accent: #059669;
    --accent-dark: #047857;

    
    --text: #1F2937;
    --text-light: #555555;
    --text-muted: #767676;

    
    --bg: #FFFFFF;
    --bg-gray: #F9FAFB;
    --bg-dark: #F3F4F6;

    
    --border: #E5E7EB;
    --border-dark: #D1D5DB;

    
    --success: #0D7A3F;
    --warning: #92600A;
    --error: #C42B2B;
    --info: #1A6FB5;

    
    --max-width: 720px;
    --radius: 8px;
    --radius-sm: 4px;
    --radius-lg: 12px;

    
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;

    
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", "Malgun Gothic", sans-serif;
    --font-size-xs: 12px;
    --font-size-sm: 14px;
    --font-size-base: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 20px;
    --font-size-2xl: 24px;
    --font-size-3xl: 30px;

    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg-gray);
}


.container {
    max-width: 100%;
    width: 100%;
    padding: 0 var(--spacing-md);
    margin: 0 auto;
}


@media (max-width: 767px) {
    .container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: var(--max-width);
    }
}


.site-header {
    background-color: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: var(--spacing-md) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.logo {
    margin-bottom: var(--spacing-md);
}

.logo a {
    text-decoration: none;
    color: var(--primary);
}

.logo h1 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin: 0;
}




.category-nav-wrapper {
    position: relative;
    
    margin-left: calc(-1 * var(--spacing-md));
    margin-right: calc(-1 * var(--spacing-md));
    background: linear-gradient(135deg, #111827 0%, #1f2937 55%, #111827 100%);
    padding: 14px 0;
    position: relative;
}

.category-nav-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(148, 163, 184, 0.05) 10px,
            rgba(148, 163, 184, 0.05) 20px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 10px,
            rgba(71, 85, 105, 0.06) 10px,
            rgba(71, 85, 105, 0.06) 20px
        );
    pointer-events: none;
}


.category-nav-gradient {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    pointer-events: none; 
    z-index: 2;
    opacity: 1;
    transition: opacity 0.3s ease;
}


.category-nav-gradient-left {
    left: 0;
    background: linear-gradient(to right, rgba(17, 24, 39, 1), rgba(17, 24, 39, 0.75), transparent);
}


.category-nav-gradient-right {
    right: 0;
    background: linear-gradient(to left, rgba(17, 24, 39, 1), rgba(17, 24, 39, 0.85), transparent);
}


.category-nav-gradient.visible {
    opacity: 1;
}


    
    animation: scrollHintPulse 1.5s ease-in-out infinite;
}

.category-scroll-hint svg {
    width: 18px;
    height: 18px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}


.category-scroll-hint.hidden {
    opacity: 0;
    transform: translateY(-50%) scale(0.5);
}


@keyframes scrollHintPulse {
    0%, 100% {
        transform: translateY(-50%) translateX(0) scale(1);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    }
    50% {
        transform: translateY(-50%) translateX(6px) scale(1.1);
        box-shadow: 0 6px 16px rgba(59, 130, 246, 0.6);
    }
}


.category-nav {
    
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 var(--spacing-md);
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
}

.category-nav::-webkit-scrollbar {
    display: none;
}

.category-nav:active {
    cursor: grabbing;
}

.category-nav.dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    user-select: none;
}




.category-nav.slide-paused .category-list {
    animation-play-state: paused;
}


@media (min-width: 768px) {
    .category-nav-wrapper {
        margin-left: 0;
        margin-right: 0;
    }

    .category-scroll-hint {
        display: none;
    }

    .category-nav-gradient {
        display: none;
    }

    
    .category-nav {
        overflow: visible;
        padding: 0;
    }

    
    .category-nav .category-list {
        animation: none !important;
        transform: none !important;
        white-space: normal;
        flex-wrap: wrap;
    }
}


.category-list {
    display: flex;
    gap: var(--spacing-sm);
    list-style: none;
    white-space: nowrap;
    
    /* animation: categorySlide 28s linear infinite; */
    
}

.category-item {
    flex-shrink: 0;
    background: none !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
}


.category-card-link::after {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: calc(var(--radius-lg) - 4px);
    border: 1px solid rgba(30, 64, 175, 0.0);
    pointer-events: none;
    transition: border-color 0.25s ease;
    z-index: -1;
}



.category-card-link:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.7);
    outline-offset: 4px;
}



.breadcrumb {
    padding: var(--spacing-md) 0;
    background-color: var(--bg-gray);
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    list-style: none;
    font-size: var(--font-size-sm);
}

.breadcrumb-item {
    color: var(--text-light);
}

.breadcrumb-item:not(:last-child)::after {
    content: "??;
    margin-left: var(--spacing-sm);
    color: var(--text-muted);
}

.breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--text);
}


.site-main {
    padding: var(--spacing-xl) 0;
    min-height: 60vh;
}


.ad-slot {
    margin: var(--spacing-xl) auto;
    padding: var(--spacing-md);
    background-color: var(--bg-dark);
    border-radius: var(--radius);
    text-align: center;
    min-height: 100px;
}


.calc-card,
.result-card,
.content-card,
.category-card {
    background-color: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow);
    margin-bottom: var(--spacing-lg);
}


.calc-header {
    margin-bottom: var(--spacing-xl);
}

.calc-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.calc-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0;
    flex: 1;
}

.calc-intro {
    font-size: var(--font-size-lg);
    color: var(--text-light);
    line-height: 1.6;
}


.calc-section {
    margin-bottom: var(--spacing-xl);
}


.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text);
    font-size: var(--font-size-base);
}

.form-input,
.form-select {
    width: 100%;
    padding: 14px var(--spacing-md);
    border: 2px solid #767676; 
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    font-family: var(--font-family);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: var(--bg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.form-input:hover,
.form-select:hover {
    border-color: var(--primary-light);
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.08);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.15), 0 4px 12px rgba(0, 102, 204, 0.1);
    transform: translateY(-1px);
}

.form-input::placeholder {
    color: #767676; /* WCAG 2.2 AA: ?鍮?4.5:1 ??蹂寃???var(--text-muted) opacity:0.7 */
}

.form-help {
    display: block;
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-top: var(--spacing-sm);
}


.btn {
    display: inline-block;
    padding: 14px var(--spacing-xl);
    font-size: var(--font-size-base);
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-family);
    
    background: linear-gradient(155deg, rgba(0, 102, 204, 0.26) 0%, rgba(0, 102, 204, 0.07) 55%, rgba(0, 102, 204, 0.16) 100%);
    backdrop-filter: blur(12px) saturate(1.6);
    -webkit-backdrop-filter: blur(12px) saturate(1.6);
    color: rgba(0, 102, 204, 0.92);
    border: 1px solid rgba(0, 102, 204, 0.32);
    box-shadow: rgba(0, 0, 0, 0.38) 0px 3px 14px 0px,
                rgba(255, 255, 255, 0.32) 0px 1.5px 0px 0px inset,
                rgba(0, 0, 0, 0.14) 0px -1px 0px 0px inset;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.btn:hover {
    background: linear-gradient(155deg, rgba(0, 102, 204, 0.35) 0%, rgba(0, 102, 204, 0.12) 55%, rgba(0, 102, 204, 0.25) 100%);
    color: rgba(0, 102, 204, 1);
    border-color: rgba(0, 102, 204, 0.5);
    transform: translateY(-1px);
    box-shadow: rgba(0, 0, 0, 0.45) 0px 5px 18px 0px,
                rgba(255, 255, 255, 0.4) 0px 2px 0px 0px inset,
                rgba(0, 0, 0, 0.18) 0px -1.5px 0px 0px inset;
}

.btn:active {
    width: 300px;
    height: 300px;
}

.btn-primary {
    
    background: linear-gradient(155deg, rgba(59, 130, 246, 0.3) 0%, rgba(59, 130, 246, 0.1) 55%, rgba(59, 130, 246, 0.2) 100%);
    backdrop-filter: blur(12px) saturate(1.6);
    -webkit-backdrop-filter: blur(12px) saturate(1.6);
    color: #ffffff;
    border: 1px solid rgba(59, 130, 246, 0.4);
    box-shadow: rgba(0, 0, 0, 0.38) 0px 3px 14px 0px,
                rgba(255, 255, 255, 0.32) 0px 1.5px 0px 0px inset,
                rgba(0, 0, 0, 0.14) 0px -1px 0px 0px inset;
}

.btn-primary:hover {
    background: linear-gradient(155deg, rgba(59, 130, 246, 0.4) 0%, rgba(59, 130, 246, 0.15) 55%, rgba(59, 130, 246, 0.3) 100%);
    border-color: rgba(59, 130, 246, 0.6);
    transform: translateY(-1px);
    box-shadow: rgba(0, 0, 0, 0.45) 0px 5px 18px 0px,
                rgba(255, 255, 255, 0.4) 0px 2px 0px 0px inset,
                rgba(0, 0, 0, 0.18) 0px -1.5px 0px 0px inset;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: rgba(0, 0, 0, 0.3) 0px 2px 8px 0px,
                rgba(255, 255, 255, 0.25) 0px 1px 0px 0px inset;
}

.btn-secondary {
    
    background: linear-gradient(155deg, rgba(156, 163, 175, 0.3) 0%, rgba(156, 163, 175, 0.1) 55%, rgba(156, 163, 175, 0.2) 100%);
    backdrop-filter: blur(12px) saturate(1.6);
    -webkit-backdrop-filter: blur(12px) saturate(1.6);
    color: #111827;
    border: 1px solid rgba(156, 163, 175, 0.4);
    box-shadow: rgba(0, 0, 0, 0.38) 0px 3px 14px 0px,
                rgba(255, 255, 255, 0.32) 0px 1.5px 0px 0px inset,
                rgba(0, 0, 0, 0.14) 0px -1px 0px 0px inset;
}

.btn-secondary:hover {
    background: linear-gradient(155deg, rgba(156, 163, 175, 0.4) 0%, rgba(156, 163, 175, 0.15) 55%, rgba(156, 163, 175, 0.3) 100%);
    border-color: rgba(156, 163, 175, 0.6);
    transform: translateY(-1px);
    box-shadow: rgba(0, 0, 0, 0.45) 0px 5px 18px 0px,
                rgba(255, 255, 255, 0.4) 0px 2px 0px 0px inset,
                rgba(0, 0, 0, 0.18) 0px -1.5px 0px 0px inset;
}

.btn-success {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: var(--bg);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.3);
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-group {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}


.result-section {
    margin-bottom: var(--spacing-xl);
}

.result-card {
    background: #fff;
    color: #111;
    padding: var(--spacing-xl);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-lg);
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
}

.result-highlight {
    text-align: center;
    padding: var(--spacing-xl);
    background-color: #f0f7ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
}

.result-label {
    font-size: var(--font-size-sm);
    color: #374151;
    margin-bottom: var(--spacing-sm);
}

.result-value {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: #111;
    margin-bottom: var(--spacing-xs);
}

.result-unit {
    font-size: var(--font-size-lg);
    color: #374151;
}

.result-details {
    background-color: var(--bg);
    color: var(--text);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
}

.result-row {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border);
}

.result-row:last-child {
    border-bottom: none;
}

.result-row-label {
    font-weight: 500;
    color: var(--text-light);
}

.result-row-value {
    font-weight: 600;
    color: var(--text);
}


.disclaimer-section {
    margin-bottom: var(--spacing-xl);
}

.disclaimer {
    background-color: #FEF3C7;
    border-left: 4px solid var(--warning);
    padding: var(--spacing-lg);
    border-radius: var(--radius);
}

.disclaimer h3 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-md);
    color: var(--text);
}

.disclaimer p {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
}

.disclaimer p:last-child {
    margin-bottom: 0;
}


.internal-links-section {
    margin-bottom: var(--spacing-xl);
}

.internal-links {
    padding: var(--spacing-lg);
    background-color: var(--bg-gray);
    border-radius: var(--radius);
}

.internal-links p {
    font-size: var(--font-size-sm);
    color: var(--text-light);
}

.internal-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.internal-links a:hover {
    text-decoration: underline;
}


.content-section {
    margin-bottom: var(--spacing-xl);
}

.content-card h2 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-lg);
    color: var(--text);
}

.content-card h3 {
    font-size: var(--font-size-xl);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    color: var(--text);
}

.content-card p {
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
    color: var(--text-light);
}

.content-card ul,
.content-card ol {
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-xl);
}

.content-card li {
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
}

.disclaimer-text {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    font-style: italic;
    margin-top: var(--spacing-lg);
}


.faq-section {
    margin-bottom: var(--spacing-xl);
}

.faq-title {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-lg);
    color: var(--text);
}

.faq-list {
    background-color: var(--bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: var(--spacing-lg);
    background-color: var(--bg);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text);
    transition: background-color 0.2s;
}

.faq-question:hover {
    background-color: var(--bg-gray);
}

.faq-q-text {
    flex: 1;
}

.faq-icon {
    font-size: var(--font-size-2xl);
    color: var(--primary);
    font-weight: 400;
    width: 24px;
    text-align: center;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer {
    background-color: #FAFAFA;
}
.faq-answer p {
    padding: 0 var(--spacing-lg) var(--spacing-lg) var(--spacing-lg);
    color: #333333;
    line-height: 1.6;
}


.share-section {
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

.share-title {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-md);
    color: var(--text);
}

.share-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn {
    padding: var(--spacing-md) var(--spacing-lg);
    border: none;
    border-radius: var(--radius);
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-family);
}

.share-btn.kakao {
    background-color: #FEE500;
    color: #000000;
}


#kakao-share-wrap a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #000000;
    text-decoration: none;
    font-weight: 600;
}

.share-btn.facebook {
    background-color: #1877F2;
    color: var(--bg);
}

.share-btn.link {
    background-color: var(--bg-dark);
    color: var(--text);
    border: 1px solid var(--border);
}


.share-btn.forward {
    background-color: var(--bg-dark);
    color: var(--text);
    border: 1px solid var(--border);
}
.share-btn.forward:hover {
    background-color: #D1D5DB;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}


.related-section {
    margin-bottom: var(--spacing-xl);
}

.related-title {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-lg);
    color: var(--text);
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

@media (min-width: 480px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.related-card {
    background-color: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--spacing-lg);
    transition: all 0.2s;
}

.related-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.related-link {
    text-decoration: none;
    display: block;
}

.related-name {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--spacing-sm);
}

.related-desc {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    line-height: 1.5;
}


.intro-section {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--bg);
    border-radius: var(--radius-lg);
}

.intro-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.intro-desc {
    font-size: var(--font-size-lg);
    line-height: 1.6;
    opacity: 0.95;
}


.section-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text);
}

.section-desc {
    font-size: var(--font-size-base);
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
}


.popular-section,
.recent-section {
    margin-bottom: var(--spacing-2xl);
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

@media (min-width: 480px) {
    .calc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .calc-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.calc-card-home,
.calc-card-list {
    background-color: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: all 0.2s;
    height: 100%;
}

.calc-card-home:hover,
.calc-card-list:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.calc-card-link {
    text-decoration: none;
    display: block;
}

.calc-card-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--spacing-sm);
}

.calc-card-desc {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: var(--spacing-sm);
    
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calc-card-category {
    display: inline-block;
    font-size: var(--font-size-xs);
    color: var(--primary);
    background-color: rgba(0, 102, 204, 0.1);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.calc-card-stats {
    margin-top: var(--spacing-sm);
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}


.category-section {
    margin-bottom: var(--spacing-2xl);
    background: linear-gradient(135deg, #0F172A 0%, #1A1F35 100%);
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl) var(--spacing-xl);
    margin-left: calc(-1 * var(--spacing-xl));
    margin-right: calc(-1 * var(--spacing-xl));
    padding-left: var(--spacing-xl);
    padding-right: var(--spacing-xl);
}

.category-section .section-title {
    color: #FFFFFF;
    background: linear-gradient(90deg, #E0E7FF 0%, #FCA5A5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.category-section .section-desc {
    color: rgba(255, 255, 255, 0.8);
}

.category-grid {
    display: flex;
    gap: var(--spacing-md);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
    padding-bottom: var(--spacing-md);
    cursor: grab;
}

.category-grid:active {
    cursor: grabbing;
}

.category-grid.dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    user-select: none;
}


.category-grid::-webkit-scrollbar {
    height: 8px;
}

.category-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.category-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.category-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.category-card {
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: var(--spacing-xl);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    min-width: 280px;
    flex-shrink: 0;
}

@media (min-width: 480px) {
    .category-card {
        min-width: calc(50% - var(--spacing-md) / 2);
    }
}

@media (min-width: 768px) {
    .category-card {
        min-width: calc(33.333% - var(--spacing-md) * 2 / 3);
    }
}

@media (min-width: 1024px) {
    .category-card {
        min-width: 300px;
    }
}


.category-grid.dragging .category-card-link {
    pointer-events: none;
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 30px;
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 12px 48px rgba(255, 255, 255, 0.25), 0 8px 32px rgba(31, 38, 135, 0.5);
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.2);
}

.category-card-link {
    text-decoration: none;
    display: block;
    position: relative;
    z-index: 1;
}

.category-icon {
    font-size: 56px;
    margin-bottom: var(--spacing-md);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.15) rotate(5deg);
}

.category-card-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: #FFD700;
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 8px rgba(255, 215, 0, 0.4), 0 0 20px rgba(255, 215, 0, 0.2);
}

.category-card-count {
    font-size: var(--font-size-sm);
    color: #A5F3FC;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 1px 2px rgba(165, 243, 252, 0.3);
}

.category-card-desc {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}


.about-section {
    margin-bottom: var(--spacing-2xl);
}

.about-content {
    background-color: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
}

.about-content h2 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-lg);
    color: var(--text);
}

.about-content p {
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
    color: var(--text-light);
}


.calc-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.calc-list-item {
    background-color: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--spacing-lg);
    transition: all 0.2s;
}

.calc-list-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.calc-list-link {
    text-decoration: none;
    display: block;
}

.calc-list-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--spacing-sm);
}

.calc-list-desc {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: var(--spacing-sm);
}

.calc-list-category {
    display: inline-block;
    font-size: var(--font-size-xs);
    color: var(--accent);
    background-color: rgba(5, 150, 105, 0.1);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-weight: 500;
}


.category-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.category-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--text);
    margin-bottom: var(--spacing-md);
}

.category-description {
    font-size: var(--font-size-lg);
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.category-meta {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.calculators-section {
    margin-bottom: var(--spacing-xl);
}

.empty-state {
    text-align: center;
    padding: var(--spacing-2xl);
    color: var(--text-muted);
}

.category-content {
    margin-bottom: var(--spacing-xl);
}

.other-categories {
    margin-bottom: var(--spacing-xl);
}

.category-list-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.category-link-item {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: all 0.2s;
}

.category-link-item:hover {
    background-color: var(--primary);
    color: var(--bg);
    border-color: var(--primary);
}


.site-footer {
    background-color: var(--text);
    color: var(--bg);
    padding: var(--spacing-xl) 0;
    margin-top: var(--spacing-2xl);
}

.footer-nav {
    margin-bottom: var(--spacing-lg);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md) var(--spacing-lg);
    list-style: none;
}

.footer-links a {
    color: var(--bg);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: opacity 0.2s;
}

.footer-links a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.copyright {
    text-align: center;
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.7);
}




.input-group {
    margin-bottom: 20px;
}

.input-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}


.num-input,
.calc-input,
.input-field,
.select-input,
.calc-select,
.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(229, 231, 235, 0.6);
    border-radius: 16px;
    font-size: 16px;
    font-family: var(--font-family);
    color: var(--text);
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.5) 100%);
    backdrop-filter: blur(10px) saturate(1.5);
    -webkit-backdrop-filter: blur(10px) saturate(1.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08),
                0 1px 0 rgba(255, 255, 255, 0.6) inset,
                0 -1px 0 rgba(0, 0, 0, 0.05) inset;
    appearance: none;
    -webkit-appearance: none;
}

.num-input:hover,
.calc-input:hover,
.input-field:hover,
.select-input:hover,
.calc-select:hover,
.form-control:hover {
    border-color: rgba(59, 130, 246, 0.5);
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.6) 100%);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1),
                0 1px 0 rgba(255, 255, 255, 0.7) inset,
                0 -1px 0 rgba(0, 0, 0, 0.05) inset;
    transform: translateY(-1px);
}

.num-input:focus,
.calc-input:focus,
.input-field:focus,
.select-input:focus,
.calc-select:focus,
.form-control:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.6);
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.7) 100%);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15),
                0 8px 20px rgba(59, 130, 246, 0.15),
                0 2px 0 rgba(255, 255, 255, 0.8) inset,
                0 -1px 0 rgba(0, 0, 0, 0.05) inset;
    transform: translateY(-2px);
}

.num-input::placeholder,
.calc-input::placeholder,
.input-field::placeholder {
    color: #767676; 
}

.input-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.5;
}


.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: 2px solid #767676; 
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    background: #fff;
    transition: all 0.2s;
}

.radio-label:hover {
    border-color: #3B82F6; 
    background: #EFF6FF;
}

.radio-label input[type="radio"] {
    accent-color: #3B82F6;
}

.radio-label input[type="radio"]:checked ~ span,
.radio-label:has(input:checked) {
    color: #2563EB;
}

.radio-label:has(input:checked) {
    border-color: #3B82F6;
    background: #EFF6FF;
    font-weight: 600;
}


.calc-buttons {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}


.btn_calculate {
    flex: 1;
    padding: 16px 24px;
    
    background: linear-gradient(155deg, rgba(0, 102, 204, 0.26) 0%, rgba(0, 102, 204, 0.07) 55%, rgba(0, 102, 204, 0.16) 100%);
    backdrop-filter: blur(12px) saturate(1.6);
    -webkit-backdrop-filter: blur(12px) saturate(1.6);
    color: rgba(0, 102, 204, 0.92);
    border: 1px solid rgba(0, 102, 204, 0.32);
    border-radius: 24px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: rgba(0, 0, 0, 0.38) 0px 3px 14px 0px,
                rgba(255, 255, 255, 0.32) 0px 1.5px 0px 0px inset,
                rgba(0, 0, 0, 0.14) 0px -1px 0px 0px inset;
    position: relative;
    overflow: hidden;
    letter-spacing: -0.01em;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.btn_calculate:hover {
    background: linear-gradient(155deg, rgba(0, 102, 204, 0.35) 0%, rgba(0, 102, 204, 0.12) 55%, rgba(0, 102, 204, 0.25) 100%);
    color: rgba(0, 102, 204, 1);
    border-color: rgba(0, 102, 204, 0.5);
    transform: translateY(-1px);
    box-shadow: rgba(0, 0, 0, 0.45) 0px 5px 18px 0px,
                rgba(255, 255, 255, 0.4) 0px 2px 0px 0px inset,
                rgba(0, 0, 0, 0.18) 0px -1.5px 0px 0px inset;
}

.btn_calculate:active {
    transform: translateY(0);
    box-shadow: rgba(0, 0, 0, 0.3) 0px 2px 8px 0px,
                rgba(255, 255, 255, 0.25) 0px 1px 0px 0px inset;
}


.btn_reset {
    flex: 1;
    padding: 16px 24px;

    background: linear-gradient(155deg, rgba(156, 163, 175, 0.26) 0%, rgba(156, 163, 175, 0.07) 55%, rgba(156, 163, 175, 0.16) 100%);
    backdrop-filter: blur(12px) saturate(1.6);
    -webkit-backdrop-filter: blur(12px) saturate(1.6);
    color: rgba(107, 114, 128, 0.92);
    border: 1px solid rgba(156, 163, 175, 0.32);
    border-radius: 24px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: rgba(0, 0, 0, 0.38) 0px 3px 14px 0px,
                rgba(255, 255, 255, 0.32) 0px 1.5px 0px 0px inset,
                rgba(0, 0, 0, 0.14) 0px -1px 0px 0px inset;
    position: relative;
    overflow: hidden;
    letter-spacing: -0.01em;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.btn_reset:hover {
    background: linear-gradient(155deg, rgba(156, 163, 175, 0.35) 0%, rgba(156, 163, 175, 0.12) 55%, rgba(156, 163, 175, 0.25) 100%);
    color: rgba(107, 114, 128, 1);
    border-color: rgba(156, 163, 175, 0.5);
    transform: translateY(-1px);
    box-shadow: rgba(0, 0, 0, 0.45) 0px 5px 18px 0px,
                rgba(255, 255, 255, 0.4) 0px 2px 0px 0px inset,
                rgba(0, 0, 0, 0.18) 0px -1.5px 0px 0px inset;
}

.btn_reset:active {
    transform: translateY(0);
    box-shadow: rgba(0, 0, 0, 0.3) 0px 2px 8px 0px,
                rgba(255, 255, 255, 0.25) 0px 1px 0px 0px inset;
}

.btn_reset:active {
    transform: translateY(0);
    box-shadow: rgba(0, 0, 0, 0.3) 0px 2px 8px 0px,
                rgba(255, 255, 255, 0.25) 0px 1px 0px 0px inset;
}




.result-detail {
    margin-top: 20px;
}


.result-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.result-table th,
.result-table td {
    padding: 12px 16px;
    text-align: left;
    font-size: 14px;
    border-bottom: 1px solid #e5e7eb;
    color: #111;
}

.result-table th {
    font-weight: 600;
    background: #f9fafb;
    width: 55%;
}

.result-table td {
    font-weight: 600;
    text-align: right;
}

.result-table tr:last-child th,
.result-table tr:last-child td {
    border-bottom: none;
}

.result-table tr:hover th,
.result-table tr:hover td {
    background: #1e3a8a;
    color: #fff;
}

.result-table tr.divider th {
    background: #f3f4f6;
    font-weight: 700;
    text-align: center;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #374151;
}

.result-table tr.total-row th,
.result-table tr.total-row td {
    background: #1e3a8a;
    font-weight: 800;
    font-size: 16px;
    color: #fff;
    border-top: 2px solid #1d4ed8;
}

.result-table tr.total-row:hover th,
.result-table tr.total-row:hover td {
    background: #1d4ed8;
    color: #fff;
}

.result-table tr.highlight-row th,
.result-table tr.highlight-row td {
    background: #eff6ff;
    font-weight: 700;
    color: #1e40af;
}

.result-table tr.highlight-row:hover th,
.result-table tr.highlight-row:hover td {
    background: #1e3a8a;
    color: #fff;
}

.result-table tr.sub-total th,
.result-table tr.sub-total td {
    background: #f3f4f6;
    font-weight: 700;
    color: #374151;
}


.result-info {
    margin-top: 16px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 10px;
    padding: 14px 16px;
}

.result-title {
    font-size: 13px;
    font-weight: 600;
    color: #111;
    margin-bottom: 4px;
}


.info-box {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: 16px;
    font-size: 14px;
    color: #1E40AF;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    font-size: 14px;
}

.info-table th,
.info-table td {
    padding: 8px 12px;
    border: 1px solid var(--border);
    text-align: left;
}

.info-table th {
    background: var(--bg-gray);
    font-weight: 600;
    color: var(--text);
}

.info-table td {
    color: var(--text-light);
}

.info-text {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 8px;
}

.table-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
    font-style: italic;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 2px solid #111;
    border-radius: 8px;
    position: relative;
}


@media (max-width: 768px) {
    .table-responsive::after {
        content: '??醫뚯슦 ?ㅽ겕濡???;
        display: block;
        text-align: center;
        font-size: 11px;
        font-weight: 700;
        color: #111;
        background: #f3f4f6;
        border-top: 1px solid #d1d5db;
        padding: 5px;
        letter-spacing: 0.05em;
    }
}


.salary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-top: 16px;
}

.salary-table th,
.salary-table td {
    padding: 10px 14px;
    border: 1px solid var(--border);
    text-align: right;
}

.salary-table th {
    background: linear-gradient(135deg, #2563EB, #1D4ED8);
    color: #fff;
    font-weight: 600;
    text-align: center;
}

.salary-table tr:nth-child(even) td {
    background: var(--bg-gray);
}

.salary-table tr:hover td {
    background: #EFF6FF;
}

.salary-table .highlight {
    background: #FEF9C3 !important;
    font-weight: 700;
    color: #92400E;
}

.highlight-text {
    color: #2563EB;
    font-weight: 700;
}


.result-card {
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.hidden {
    display: none;
}

.visible {
    display: block;
}


@media (min-width: 768px) {
    .logo {
        margin-bottom: var(--spacing-lg);
    }

    .logo h1 {
        font-size: var(--font-size-3xl);
    }

    .calc-title {
        font-size: 36px;
    }

    .intro-title {
        font-size: 40px;
    }
}


.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.detail-row:last-child {
    border-bottom: none;
}
.detail-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}
.detail-value {
    font-size: 14px;
    color: #ffffff;
    font-weight: 600;
    text-align: right;
}


.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
    padding: 4px 0;
}
.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2563EB;
    cursor: pointer;
}


.random-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 8px 0;
}
.random-number-badge {
    background: rgba(255,255,255,0.25);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 700;
    min-width: 48px;
    text-align: center;
}



.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-sm);
}


.search-trigger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    
    background: linear-gradient(155deg, rgba(0, 102, 204, 0.26) 0%, rgba(0, 102, 204, 0.07) 55%, rgba(0, 102, 204, 0.16) 100%);
    backdrop-filter: blur(12px) saturate(1.6);
    -webkit-backdrop-filter: blur(12px) saturate(1.6);
    color: rgba(0, 102, 204, 0.92);
    border: 1px solid rgba(0, 102, 204, 0.32);
    border-radius: 50%;
    cursor: pointer;
    font-family: var(--font-family);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: rgba(0, 0, 0, 0.38) 0px 3px 14px 0px,
                rgba(255, 255, 255, 0.32) 0px 1.5px 0px 0px inset,
                rgba(0, 0, 0, 0.14) 0px -1px 0px 0px inset;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.search-trigger-btn:hover {
    background: linear-gradient(155deg, rgba(0, 102, 204, 0.35) 0%, rgba(0, 102, 204, 0.12) 55%, rgba(0, 102, 204, 0.25) 100%);
    color: rgba(0, 102, 204, 1);
    border-color: rgba(0, 102, 204, 0.5);
    transform: translateY(-1px);
    box-shadow: rgba(0, 0, 0, 0.45) 0px 5px 18px 0px,
                rgba(255, 255, 255, 0.4) 0px 2px 0px 0px inset,
                rgba(0, 0, 0, 0.18) 0px -1.5px 0px 0px inset;
}
.search-trigger-btn:active {
    transform: translateY(0);
    box-shadow: rgba(0, 0, 0, 0.3) 0px 2px 8px 0px,
                rgba(255, 255, 255, 0.25) 0px 1px 0px 0px inset;
}
.search-trigger-btn svg {
    width: 20px;
    height: 20px;
}
.search-trigger-btn span {
    display: none;
}


.header-banner-area {
    display: flex;
    align-items: center;
    gap: 12px;
}


.search-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    animation: fadeIn 0.2s ease;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.search-modal-overlay.open {
    display: flex;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


.search-modal {
    background: #ffffff;
    color: #333333;
    width: 80vw;
    max-width: 80vw;
    height: 80vh;
    max-height: 80vh;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideDown 0.25s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}


.search-modal-header {
    padding: 16px;
    border-bottom: 1px solid #E5E7EB;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-controls {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.category-filter {
    min-width: 100px;
    padding: 10px 12px;
    border: 2px solid #767676;
    border-radius: var(--radius-lg);
    font-size: 14px;
    font-family: var(--font-family);
    color: #333333;
    background: #ffffff;
    outline: none;
    cursor: pointer;
}

.category-filter:focus {
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.search-modal-input {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #767676;
    border-radius: var(--radius-lg);
    font-size: 14px;
    font-family: var(--font-family);
    color: #333333;
    background: #ffffff;
    outline: none;
}
.search-modal-input:focus {
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.search-modal-input::placeholder {
    color: #767676;
}
.search-modal-close {
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    color: #555555;
    font-size: 24px;
    line-height: 1;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
}
.search-modal-close:hover {
    background: #F0F0F0;
    color: #333333;
}


.search-results {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-sm) 0;
}
.search-result-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    text-decoration: none;
    color: #333333;
    border-bottom: 1px solid #F0F0F0;
    transition: background 0.15s;
}
.search-result-item:hover {
    background: #F5F8FF;
    color: #1A1A1A;
}
.search-result-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
    border: 1px solid #BFDBFE;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.search-result-info {
    flex: 1;
    min-width: 0;
}
.search-result-name {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-result-category {
    font-size: var(--font-size-xs);
    color: #555555;
}
.search-result-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
}
.search-stat {
    font-size: 12px;
    color: #767676;
    white-space: nowrap;
}
.search-stat.views::before { content: "?몓 "; }
.search-stat.likes::before { content: "??"; }
.search-empty {
    text-align: center;
    padding: var(--spacing-2xl);
    color: #767676;
    font-size: var(--font-size-sm);
}


.like-section {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}
.like-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: #fff;
    color: #555555;
    border: 2px solid #D1D5DB;
    border-radius: 50px;
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-family);
    transition: all 0.2s;
    min-height: 44px;
}
.like-btn:hover {
    border-color: #E11D48;
    color: #E11D48;
    background: #FFF1F2;
    transform: translateY(-1px);
}
.like-btn.liked {
    background: #FFF1F2;
    border-color: #E11D48;
    color: #E11D48;
}
.like-count {
    font-weight: 700;
}




.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.site-logo {
    height: 90px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.logo-link:hover .site-logo {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.3));
}

.site-name-text {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, #1E40AF 0%, #7C3AED 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .site-logo {
        height: 110px;
    }
    .site-name-text {
        font-size: 22px;
    }
}


.current-country-flag {
    border-radius: 2px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}


@media (max-width: 640px) {
    .header-top {
        gap: 8px;
        padding: 0 12px;
    }

    .site-logo {
        height: 50px;
    }

    .site-name-text {
        font-size: 16px;
    }

    .current-country-flag {
        width: 18px;
        height: 13px;
    }
}


.calc-feed-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.calc-feed-item {
    border-bottom: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.calc-feed-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #3B82F6, #8B5CF6);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.calc-feed-item:hover::before {
    transform: scaleY(1);
}

.calc-feed-item:last-child {
    border-bottom: none;
}

.calc-feed-item:hover {
    background: linear-gradient(90deg, #F0F9FF 0%, #FAF5FF 100%);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}


.calc-feed-item.popular-item {
    background: linear-gradient(90deg, #FEF3C7 0%, #FED7AA 100%);
}

.calc-feed-item.popular-item:hover {
    background: linear-gradient(90deg, #FBBF24 0%, #F59E0B 100%);
    box-shadow: 0 8px 24px rgba(251, 191, 36, 0.3);
}

.calc-feed-item.popular-item .calc-feed-title {
    background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}


.calc-feed-item.recent-item {
    background: linear-gradient(90deg, #DBEAFE 0%, #E0E7FF 100%);
}

.calc-feed-item.recent-item:hover {
    background: linear-gradient(90deg, #93C5FD 0%, #A5B4FC 100%);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.calc-feed-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    text-decoration: none;
    color: var(--text);
}

.calc-feed-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #60A5FA 0%, #8B5CF6 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.calc-feed-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.calc-feed-item:hover .calc-feed-icon {
    transform: rotate(10deg) scale(1.1);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.5);
}

.calc-emoji {
    font-size: 28px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}


.calc-feed-icon i {
    font-size: 28px;
    color: #ffffff;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.calc-feed-icon i.fab {
    font-size: 26px;
}


.popular-icon {
    background: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.popular-icon .calc-emoji {
    color: #ffffff;
    font-weight: 700;
    font-size: 24px;
}


.recent-icon {
    background: linear-gradient(135deg, #10B981 0%, #3B82F6 100%);
}

.calc-feed-content {
    flex: 1;
    min-width: 0;
}

.calc-feed-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--spacing-xs);
    line-height: 1.4;
}

.calc-feed-desc {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.calc-feed-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: var(--font-size-xs);
}

.calc-category-badge {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-sm);
    background-color: rgba(0, 102, 204, 0.1);
    color: var(--primary);
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.calc-views {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.calc-feed-arrow {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 0.2s;
}

.calc-feed-item:hover .calc-feed-arrow {
    transform: translateX(4px);
    color: var(--primary);
}


.ad-infeed-inline {
    padding: var(--spacing-lg);
    background-color: #F9FAFB;
    border-bottom: 1px solid var(--border);
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.loading-spinner {
    padding: var(--spacing-xl);
    text-align: center;
}

.spinner-circle {
    width: 40px;
    height: 40px;
    border: 4px solid #E5E7EB;
    border-top-color: #3B82F6;
    border-radius: 50%;
    margin: 0 auto var(--spacing-md);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-spinner p {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

.scroll-end-message {
    padding: var(--spacing-xl);
    text-align: center;
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.scroll-end-message p {
    background: linear-gradient(135deg, #8B5CF6 0%, #3B82F6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


@media (max-width: 640px) {
    .calc-feed-link {
        gap: var(--spacing-sm);
        padding: var(--spacing-md);
    }

    .calc-feed-icon {
        width: 48px;
        height: 48px;
    }

    .calc-emoji {
        font-size: 24px;
    }

    .calc-feed-title {
        font-size: var(--font-size-base);
    }

    .calc-feed-desc {
        font-size: var(--font-size-xs);
        -webkit-line-clamp: 1;
    }
}


@media print {
    .site-header,
    .site-footer,
    .breadcrumb,
    .ad-slot,
    .share-section,
    .related-section {
        display: none;
    }

    .site-main {
        padding: 0;
    }

    .calc-card,
    .result-card,
    .content-card {
        box-shadow: none;
        border: 1px solid var(--border);
    }
}




.country-flag-icon {
    cursor: pointer;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.8);
    object-fit: cover;
    flex-shrink: 0;
    display: block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
    position: relative;
    width: 32px;
    height: 32px;
}

.country-flag-icon::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.country-flag-icon:hover::before {
    opacity: 0.3;
}

.country-flag-icon:hover {
    transform: scale(1.15);
    border-color: rgba(255, 255, 255, 1);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.country-flag-icon:active {
    transform: scale(0.95);
}


.lang-code-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 64px;
    height: 36px;
    padding: 0 14px;
    
    background: linear-gradient(155deg, rgba(0, 102, 204, 0.26) 0%, rgba(0, 102, 204, 0.07) 55%, rgba(0, 102, 204, 0.16) 100%);
    backdrop-filter: blur(12px) saturate(1.6);
    -webkit-backdrop-filter: blur(12px) saturate(1.6);
    color: rgba(0, 102, 204, 0.92);
    border: 1px solid rgba(0, 102, 204, 0.32);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    font-family: var(--font-family);
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: rgba(0, 0, 0, 0.38) 0px 3px 14px 0px,
                rgba(255, 255, 255, 0.32) 0px 1.5px 0px 0px inset,
                rgba(0, 0, 0, 0.14) 0px -1px 0px 0px inset;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
}

.lang-code-btn:hover {
    background: linear-gradient(155deg, rgba(0, 102, 204, 0.35) 0%, rgba(0, 102, 204, 0.12) 55%, rgba(0, 102, 204, 0.25) 100%);
    color: rgba(0, 102, 204, 1);
    border-color: rgba(0, 102, 204, 0.5);
    transform: translateY(-1px);
    box-shadow: rgba(0, 0, 0, 0.45) 0px 5px 18px 0px,
                rgba(255, 255, 255, 0.4) 0px 2px 0px 0px inset,
                rgba(0, 0, 0, 0.18) 0px -1.5px 0px 0px inset;
}

.lang-code-btn:active {
    transform: translateY(0);
    box-shadow: rgba(0, 0, 0, 0.3) 0px 2px 8px 0px,
                rgba(255, 255, 255, 0.25) 0px 1px 0px 0px inset;
}

@media (max-width: 640px) {
    .lang-code-btn {
        min-width: 64px;
        height: 32px;
        font-size: 12px;
        padding: 0 10px;
        gap: 3px;
    }
}


.country-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2100;
    animation: fadeIn 0.2s ease;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
}

.country-modal-overlay.open {
    display: flex;
}


.country-modal {
    background: #ffffff;
    color: #333333;
    width: 80vw;
    max-width: 80vw;
    height: 80vh;
    max-height: 80vh;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.25s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.country-modal-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.country-modal-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.country-modal-close {
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    color: #555555;
    font-size: 24px;
    line-height: 1;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    transition: all 0.2s;
}

.country-modal-close:hover {
    background: #F0F0F0;
    color: #333333;
}


.country-modal-body {
    padding: var(--spacing-lg);
    max-height: 60vh;
    overflow-y: auto;
}


.language-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
    border: 1px solid #E5E7EB;
}

.language-option:hover {
    background: linear-gradient(135deg, #EFF6FF 0%, #F3E8FF 100%);
    border-color: #D1D5DB;
}

.language-name {
    font-size: 16px;
    font-weight: 700;
    color: #1F2937;
}

.language-flags {
    display: flex;
    gap: 8px;
    align-items: center;
}

.country-flag-btn {
    cursor: pointer;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.country-flag-btn:hover {
    transform: scale(1.15);
    border-color: #3B82F6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.country-flag-btn:active {
    transform: scale(0.95);
}


.country-option {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid #F5F5F5;
}

.country-option:hover {
    background: #F5F8FF;
}

.country-option:last-child {
    border-bottom: none;
}


.language-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 4px;
}


.language-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #FFFFFF 0%, #F9FAFB 100%);
    border: 1.5px solid #E5E7EB;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.language-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(147, 51, 234, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.25s;
}

.language-item:hover {
    background: linear-gradient(135deg, #EFF6FF 0%, #F5F3FF 100%);
    border-color: #3B82F6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.language-item:hover::before {
    opacity: 1;
}

.language-item:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.15);
}


.language-item .flag {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}


.language-item .language-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}


.language-item .language-native {
    font-size: 15px;
    font-weight: 600;
    color: #1F2937;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.language-item .language-english {
    font-size: 12px;
    font-weight: 400;
    color: #6B7280;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.language-item.tier-1 {
    border-color: #DBEAFE;
}

.language-item.tier-2 {
    border-color: #E5E7EB;
}

.language-item.tier-3 {
    border-color: #F3F4F6;
}


.language-item.active {
    background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
    border-color: #3B82F6;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.language-item.active .language-native,
.language-item.active .language-english {
    color: #FFFFFF;
}


@media (max-width: 480px) {
    .language-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .language-item {
        padding: 10px 12px;
        gap: 8px;
    }

    .language-item .flag {
        font-size: 22px;
    }

    .language-item .language-native {
        font-size: 13px;
    }

    .language-item .language-english {
        font-size: 11px;
    }
}


@media (min-width: 640px) {
    .language-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

.country-flag-img {
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.global-icon {
    font-size: 1.8rem;
    width: 32px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.country-name {
    font-size: var(--font-size-base);
    color: #1a1a1a;
    font-weight: 500;
}


@media (max-width: 640px) {
    .country-modal {
        max-width: 90%;
    }

    .country-flag-icon {
        width: 20px;
        height: 15px;
    }
}


.scroll-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
    gap: var(--spacing-md);
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #E5E7EB;
    border-top-color: #3B82F6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.scroll-loader p {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.scroll-end {
    padding: var(--spacing-xl);
    text-align: center;
}

.scroll-end p {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    font-weight: 600;
    background: linear-gradient(135deg, #10B981 0%, #3B82F6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


@keyframes spin {
    to { transform: rotate(360deg); }
}


@keyframes fadeInItem {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.calc-feed-item.fade-in {
    animation: fadeInItem 0.4s ease;
}


.helpful-section {
    text-align: center;
    padding: 24px 20px;
    background: var(--bg-gray);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin: 24px 0 16px;
}

.helpful-question {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text);
    margin: 0 0 16px;
}

.helpful-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}


.btn-helpful {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    font-family: var(--font-family);
    border: 2px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
    min-height: 44px;
    background: #28a745;
    color: #ffffff;
}

.btn-helpful:hover:not(:disabled) {
    background: #218838;
    transform: translateY(-1px);
}


.btn-helpful.btn-helpful-no {
    background: #6c757d;
    color: #ffffff;
}

.btn-helpful.btn-helpful-no:hover:not(:disabled) {
    background: #5a6268;
    transform: translateY(-1px);
}


.btn-helpful:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.helpful-icon {
    font-size: 18px;
    line-height: 1;
}


.helpful-count-text {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin: 10px 0 4px;
}

.helpful-count-text #helpfulCount {
    font-weight: 700;
    color: var(--primary);
}


.helpful-voted-msg {
    font-size: var(--font-size-sm);
    color: var(--accent);
    font-weight: 600;
    margin: 4px 0 0;
}


@media (max-width: 480px) {
    .helpful-buttons {
        flex-direction: column;
        align-items: center;
    }
    .btn-helpful {
        width: 100%;
        max-width: 240px;
        justify-content: center;
    }
}


.home-banner-wrap {
    position: relative;
    margin-bottom: 24px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(0, 82, 163, 0.35);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
    background: linear-gradient(135deg, #0052a3 0%, #0066cc 50%, #3B82F6 100%);
    color: #ffffff;
}

.home-banner-shell {
    position: relative;
    padding: 12px 78px 13px 22px;
    min-height: 77px;
    background: radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.3), transparent 42%);
    transform-style: preserve-3d;
    transition: background 0.35s ease, transform 0.35s ease, opacity 0.35s ease;
    opacity: 1;
}

.home-banner-shell.is-fade {
    opacity: 0.75;
    transform: translateY(3px) scale(0.99);
}

.home-banner-empty .home-banner-shell {
    min-height: 65px;
    background: linear-gradient(130deg, #1D4ED8 0%, #3B82F6 50%, #06B6D4 100%);
}

.home-banner-kicker {
    margin: 0;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #D0E9FF;
    font-weight: 700;
}

.home-banner-title {
    margin: 2px 0 5px;
    font-size: clamp(14px, 2.5vw, 18px);
    line-height: 1.1;
    font-weight: 700;
    color: #FFFFFF;
}

.home-banner-desc {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 15px;
    max-width: 740px;
    line-height: 1.65;
    min-height: 2.6em;
}

.home-banner-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    background: #FFFFFF;
    color: #0F172A;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.22);
}

.home-banner-cta:hover {
    transform: translateY(-1px);
    background: #F1F5F9;
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.24);
}

.home-banner-progress {
    margin-top: 16px;
    height: 3px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.2);
}

.home-banner-progress span {
    display: block;
    width: 0%;
    height: 100%;
    background: #ffffff;
    transition: width 0.25s linear;
}

.home-banner-dots {
    position: absolute;
    right: 22px;
    bottom: 20px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.home-banner-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    background: transparent;
    cursor: pointer;
    transition: width 0.2s, background 0.2s;
}

.home-banner-dot.active {
    width: 26px;
    background: #ffffff;
}

.home-banner-hint {
    position: absolute;
    right: 22px;
    top: 26px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.86);
}

.home-banner-wrap.is-ripple {
    animation: homeBannerRipple 0.28s ease;
}

.home-banner-empty .home-banner-hint {
    display: none;
}

@keyframes homeBannerRipple {
    0% { transform: scale(0.995); }
    50% { transform: scale(0.985); }
    100% { transform: scale(1); }
}


.updates-section {
    padding: 12px 0 28px;
}

.updates-section-header p {
    margin: 6px 0 0;
    color: #334155;
}

.updates-kicker {
    margin: 0;
    font-size: 12px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: #2563EB;
    font-weight: 700;
}

.updates-section-header h1 {
    margin: 8px 0 0;
    font-size: 34px;
    color: #0F172A;
}

.updates-list {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.notice-card,
.notice-empty {
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.notice-card h2 {
    margin: 0 0 8px;
    color: #0F172A;
    font-size: 18px;
}

.notice-card p {
    margin: 0;
    color: #475569;
    line-height: 1.65;
}

.notice-link {
    margin-top: 14px;
    color: #1D4ED8;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
}

.notice-empty {
    text-align: center;
    color: #64748B;
    padding: 24px;
}

@media (max-width: 768px) {
    .home-banner-shell {
        padding: 20px 20px 82px;
    }
    .home-banner-kicker {
        font-size: 11px;
    }
    .home-banner-dots {
        right: 18px;
        bottom: 22px;
    }
    .home-banner-hint {
        right: 18px;
        top: 18px;
        font-size: 11px;
    }
}



.category-list {
    scroll-behavior: smooth;
    cursor: grab;
    user-select: none;
}

.category-list.dragging {
    scroll-behavior: auto;
    cursor: grabbing;
    animation: none !important;
}




.home-banner-desc {
    margin: 2px 0;
    font-size: clamp(12px, 2vw, 14px);
    line-height: 1.3;
    opacity: 0.95;
}

.home-banner-kicker {
    font-size: 10px;
    margin: 0 0 2px 0;
}



.country-modal {
    max-height: 85vh;
    overflow-y: auto;
}

.search-modal {
    max-height: 90vh;
    overflow-y: auto;
}

.search-modal-input {
    font-size: 16px;
    padding: 12px 16px;
}



.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    animation: fadeIn 0.2s ease-in-out;
}

.popup-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-container {
    background: var(--bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
    position: relative;
}

.popup-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.popup-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.popup-icon {
    font-size: var(--font-size-2xl);
}

.popup-icon.warning { color: var(--warning); }
.popup-icon.error { color: var(--error); }
.popup-icon.success { color: var(--success); }
.popup-icon.info { color: var(--info); }

.popup-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    transition: all 0.2s;
}

.popup-close:hover {
    background-color: var(--bg-dark);
    color: var(--text);
}

.popup-body {
    padding: var(--spacing-lg);
}

.popup-message {
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 0;
}

.popup-message ul {
    margin: var(--spacing-sm) 0;
    padding-left: var(--spacing-lg);
}

.popup-message li {
    margin: var(--spacing-xs) 0;
    color: var(--error);
}

.popup-footer {
    padding: var(--spacing-md) var(--spacing-lg);
    border-top: 1px solid var(--border);
    display: flex;
    gap: var(--spacing-sm);
    justify-content: flex-end;
}

.popup-btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: var(--font-size-base);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.popup-btn-primary {
    background-color: var(--primary);
    color: white;
}

.popup-btn-primary:hover {
    background-color: var(--primary-dark);
}

.popup-btn-secondary {
    background-color: var(--bg-dark);
    color: var(--text);
}

.popup-btn-secondary:hover {
    background-color: var(--border-dark);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}


@media (max-width: 480px) {
    .popup-container {
        max-width: 95%;
        margin: var(--spacing-md);
    }

    .popup-header,
    .popup-body {
        padding: var(--spacing-md);
    }
}



.language-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.language-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-align: left;
}

.language-item:hover {
    border-color: #3b82f6;
    background: #eff6ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.language-item.active {
    border-color: #3b82f6;
    background: #dbeafe;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.language-flag {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
}

.language-info {
    flex: 1;
}

.language-name {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
}

.language-code {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    font-weight: 500;
}

.language-check {
    font-size: 24px;
    color: #3b82f6;
    flex-shrink: 0;
}



.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
}

.search-result-item {
    display: block;
    padding: 16px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.search-result-item:hover {
    background: #eff6ff;
    border-color: #3b82f6;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.search-result-title {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.search-result-category {
    font-size: 13px;
    color: #64748b;
}

.search-loading,
.search-empty {
    padding: 40px 20px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

.search-loading::before {
    content: '⏳';
    display: block;
    font-size: 32px;
    margin-bottom: 12px;
}

.search-empty::before {
    content: '🔍';
    display: block;
    font-size: 32px;
    margin-bottom: 12px;
}


@media (max-width: 640px) {
    .language-item {
        padding: 12px;
        gap: 12px;
    }

    .language-flag {
        font-size: 28px;
    }

    .language-name {
        font-size: 15px;
    }

    .search-result-item {
        padding: 12px;
    }

    .search-modal {
        width: 80vw;
        max-width: 80vw;
        height: 80vh;
        max-height: 80vh;
    }

    .country-modal {
        width: 80vw;
        max-width: 80vw;
        height: 80vh;
        max-height: 80vh;
    }

    .search-modal-header {
        padding: 12px;
        gap: 8px;
    }

    .search-controls {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .category-filter {
        width: 100%;
        min-width: auto;
        font-size: 13px;
        padding: 8px 10px;
    }

    .search-modal-input {
        width: 100%;
        font-size: 13px;
        padding: 8px 10px;
    }

    .search-modal-close {
        min-width: 36px;
        min-height: 36px;
        padding: 6px;
    }
}
