@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.6/dist/web/static/pretendard.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #f8fafc;
    --panel: #ffffff;
    --soft: #f1f5f9;
    --text: #1e293b;
    --muted: #64748b;
    --primary: #3b82f6;
    --primary-600: #2563eb;
    --primary-100: rgba(59, 130, 246, 0.1);
    --accent: #8b5cf6;
    --accent-glow: rgba(139, 92, 246, 0.3);
    --danger: #ef4444;
    --highlight: #f59e0b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --radius: 16px;
    --shadow: 0 8px 32px rgba(59, 130, 246, 0.12);
    --shadow-sm: 0 4px 16px rgba(59, 130, 246, 0.08);
    --shadow-glow: 0 0 30px rgba(59, 130, 246, 0.25);
    --border-color: rgba(59, 130, 246, 0.2);
    --neon-blue: #3b82f6;
    --neon-purple: #8b5cf6;
    --neon-pink: #ec4899;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Pretendard', 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
    background: var(--bg);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(236, 72, 153, 0.05) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text);
    letter-spacing: -0.01em;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, transparent 0%, rgba(59, 130, 246, 0.02) 50%, transparent 100%);
    pointer-events: none;
    z-index: 0;
    animation: scanline 12s linear infinite;
}

@keyframes scanline {
    0% { transform: translateY(0); opacity: 0.5; }
    50% { opacity: 1; }
    100% { transform: translateY(100vh); opacity: 0.5; }
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* Topbar */
.topbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 20px rgba(59, 130, 246, 0.08);
    color: var(--text);
    font-size: 13px;
    position: relative;
    z-index: 10;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    min-height: 36px;
}


.topbar-links {
    display: flex;
    gap: 16px;
    align-items: center;
}

.topbar a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    white-space: nowrap;
    font-size: 13px;
}

.topbar a:hover {
    color: var(--primary-600);
    text-decoration: underline;
}


/* Page Status Banner */
.page-status-banner {
    position: relative;
    z-index: 6;
    background: linear-gradient(120deg, rgba(33, 81, 255, 0.28) 0%, rgba(17, 187, 170, 0.18) 45%, rgba(96, 213, 255, 0.24) 100%);
    background-size: 320% 320%;
    border-bottom: 1px solid rgba(21, 43, 106, 0.16);
    color: #0d193c;
    padding: 14px 0;
    opacity: 0;
    transform: translateY(-10px);
    animation: statusBannerDrop 0.6s ease-out 0.15s forwards,
        statusBannerFlow 8.5s ease-in-out 0.9s infinite;
    will-change: opacity, transform, background-position;
}

.page-status-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    font-size: 15px;
    line-height: 1.6;
}

.page-status-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(21, 43, 106, 0.14);
    color: #152b6a;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.page-status-text {
    color: rgba(13, 25, 60, 0.84);
    animation: statusTextGlow 6s ease-in-out infinite;
    text-shadow: 0 0 0 rgba(33, 81, 255, 0);
    will-change: color, text-shadow;
}

@keyframes statusTextGlow {
    0%, 100% {
        color: rgba(13, 25, 60, 0.84);
        text-shadow: 0 0 0 rgba(33, 81, 255, 0);
    }
    50% {
        color: rgba(21, 43, 106, 0.96);
        text-shadow: 0 0 14px rgba(33, 81, 255, 0.35);
    }
}

@keyframes statusBannerDrop {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    60% {
        opacity: 1;
        transform: translateY(3px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes statusBannerFlow {
    0% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 45% 30%;
    }
    50% {
        background-position: 100% 50%;
    }
    75% {
        background-position: 55% 70%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-status-text {
        animation: none;
        text-shadow: none;
    }
    .page-status-banner {
        opacity: 1;
        transform: none;
        animation: none;
        background-position: 50% 50%;
        background-size: 100% 100%;
    }
}

/* Site Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 64px;
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--text);
}

.brand-text {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--neon-purple) 0%, var(--neon-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    filter: drop-shadow(0 2px 4px rgba(139, 92, 246, 0.2));
}

.brand-separator {
    color: var(--muted);
    font-size: 20px;
    font-weight: 300;
    opacity: 0.5;
}

.brand-text-archlink {
    background: linear-gradient(135deg, var(--neon-blue) 0%, var(--primary-600) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.2));
}

.nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    color: #1d1d1f;
    text-decoration: none;
    font-weight: 400;
    font-size: 15px;
    padding: 6px 12px;
    transition: all 0.2s ease;
    position: relative;
    background: none;
    border: none;
    border-radius: 6px;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--primary);
    background: rgba(59, 130, 246, 0.08);
    text-shadow: none;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 12px;
    right: 12px;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}

.nav-link.login-link:hover::after,
.nav-link.login-link:focus-visible::after,
.nav-link.nav-logout:hover::after,
.nav-link.nav-logout:focus-visible::after {
    display: none;
}

.nav-link.active {
    color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
    font-weight: 500;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 12px;
    right: 12px;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}

/* Auth Navigation */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.nav-greeting {
    font-weight: 600;
    color: var(--text);
    font-size: 15px;
}

.nav-greeting strong {
    color: var(--primary-600);
}

.nav-link.nav-logout {
    color: #ffffff;
    font-weight: 500;
    font-size: 15px;
    background: #1d1d1f;
    border: none;
    padding: 6px 20px;
    border-radius: 20px;
    transition: all 0.2s ease;
    font-family: inherit;
    cursor: pointer;
}

.nav-link.nav-logout:hover {
    background: #2d2d2f;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: none;
}

.nav-link.nav-logout:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.nav-link.nav-logout:hover::after {
    display: none;
}

.nav-link.login-link {
    color: #ffffff;
    font-weight: 500;
    font-size: 15px;
    background: #1d1d1f;
    border: none;
    padding: 6px 20px;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.nav-link.login-link:hover {
    background: #2d2d2f;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-link.login-link:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.nav-link.signup-link {
    color: var(--primary);
    font-weight: 500;
    font-size: 15px;
    background: transparent;
    border: 1px solid var(--primary);
    padding: 6px 20px;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.nav-link.signup-link:hover {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.nav-link.signup-link:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(59, 130, 246, 0.2);
}

/* ArchLink Bar */
.archlink-bar {
    background: transparent;
    padding: 12px 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
    width: 100%;
}

.archlink-bar-inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    min-height: 44px;
    width: 100%;
}

.archlink-promo {
    display: flex;
    align-items: center;
}

.archlink-promo-text {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.nav-link-archlink {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px 16px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: none;
    font-weight: 500;
    font-size: 14px;
    font-family: inherit;
}

.nav-link-archlink:hover,
.nav-link-archlink:focus-visible {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: none;
    text-decoration: none;
}

.archlink-label {
    font-size: 14px;
    font-weight: 600;
    color: inherit;
    line-height: 1;
    letter-spacing: -0.01em;
    position: relative;
    z-index: 1;
}

button.nav-link {
    font-family: inherit;
    background: none;
    cursor: pointer;
}

button.nav-link:focus-visible {
    outline: 2px solid var(--primary-300);
    outline-offset: 2px;
}

/* 인증 상태 배지 */
.auth-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    margin-right: 4px;
    transition: all 0.2s ease;
}

.auth-status-agreed {
    background: var(--success-color);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.auth-status-pending {
    background: var(--warning-color);
    color: white;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* Autobuild Bar */
.autobuild-bar {
    background: var(--bg);
    padding: 18px 0 12px;
}

.autobuild-bar-inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    min-height: 44px;
}

.autobuild-promo {
    display: flex;
    align-items: center;
}

.autobuild-promo-text {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.nav-link-autobuild {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: var(--panel);
    border: 1px solid rgba(30,110,232,0.18);
    border-radius: 12px;
    padding: 12px 20px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(17, 27, 52, 0.06);
}

.nav-link-autobuild:hover,
.nav-link-autobuild:focus-visible {
    background: var(--panel);
    border-color: rgba(30,110,232,0.28);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30,110,232,0.12);
}

.autobuild-badge {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.4px;
    color: var(--muted);
    text-transform: uppercase;
    line-height: 1;
}

.autobuild-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    line-height: 1;
    letter-spacing: -0.01em;
}

.nav-link-autobuild:hover .autobuild-badge,
.nav-link-autobuild:focus-visible .autobuild-badge {
    color: var(--primary-600);
}

.nav-link-autobuild:hover .autobuild-label,
.nav-link-autobuild:focus-visible .autobuild-label {
    color: var(--primary-600);
}

/* Page Header */
.page-header {
    text-align: center;
    margin: 48px 0 40px;
    padding: 0 20px;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--muted);
    font-weight: 400;
}

main {
    padding: 0;
    position: relative;
}

/* 히어로 섹션 */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    padding: 0;
    margin-bottom: 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.6) 100%),
        linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(139, 92, 246, 0.12) 100%),
        url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80'),
        url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(59,130,246,0.08)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    background-size: cover, cover, 120% 120%, 100px 100px;
    background-position: center, center, 50% 50%, center;
    filter: blur(2px);
    opacity: 1;
    z-index: 0;
    clip-path: inset(0 0 0 0);
    animation: heroBackgroundPan 30s ease-in-out forwards;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.08) 0%, transparent 60%);
    animation: heroBackgroundMove 20s ease-in-out infinite;
    z-index: 1;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 30% 40%, rgba(59, 130, 246, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 70% 60%, rgba(139, 92, 246, 0.08) 0%, transparent 40%);
    z-index: 1;
    pointer-events: none;
}

@keyframes heroBackgroundPan {
    0% {
        background-position: center center, center center, 50% 50%, center center;
        background-size: cover, cover, 120% 120%, 100px 100px;
    }
    100% {
        background-position: center center, center center, 45% 55%, center center;
        background-size: cover, cover, 130% 130%, 100px 100px;
    }
}

@keyframes heroBackgroundMove {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-20px, -20px) scale(1.1);
    }
}

.hero-container {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: 0 24px;
    margin-top: 180px;
    margin-bottom: 0;
}

.hero-update-banner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(219, 234, 254, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 999px;
    font-size: 14px;
    color: #2563eb;
    font-weight: 500;
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
    animation: fadeInDown 0.6s ease-out;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.update-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    display: inline-block;
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

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

.hero-headline {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-headline-part1 {
    display: block;
    color: #1e293b;
    margin-bottom: 8px;
    font-weight: 700;
}

.hero-headline-part2 {
    display: block;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-ai-text {
    color: #8b5cf6;
    -webkit-text-fill-color: #8b5cf6;
    font-weight: 800;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subheadline {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #334155;
    line-height: 1.7;
    margin-bottom: 48px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    font-weight: 500;
}

.hero-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.hero-btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(59, 130, 246, 0.5);
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.hero-btn-secondary {
    background: white;
    color: var(--text);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
    color: var(--primary);
}

.hero-btn svg {
    flex-shrink: 0;
}

/* 히어로 서비스 지원 지역 라인 */
.hero-regions-line {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 16px 24px;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.hero-regions-line-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    flex-wrap: wrap;
}

.hero-regions-label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(71, 85, 105, 0.9);
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.hero-regions-separator {
    font-size: 12px;
    color: rgba(71, 85, 105, 0.4);
    line-height: 1;
    font-weight: 300;
}

.hero-regions-status {
    font-size: 13px;
    color: rgba(71, 85, 105, 0.8);
    line-height: 1.4;
    font-weight: 500;
}

.hero-regions-note {
    font-size: 12px;
    color: rgba(71, 85, 105, 0.65);
    line-height: 1.4;
    font-weight: 400;
}

@media (max-width: 768px) {
    .hero-regions-line {
        padding: 14px 16px;
    }
    
    .hero-regions-line-content {
        padding: 0 16px;
        gap: 8px;
    }
    
    .hero-regions-label {
        font-size: 12px;
    }
    
    .hero-regions-separator {
        font-size: 11px;
    }
    
    .hero-regions-status {
        font-size: 11px;
    }
    
    .hero-regions-note {
        font-size: 10px;
    }
}

/* 입력 폼 모달 - Mac 스타일 */
.input-form-modal {
    width: 100%;
    max-width: 900px;
    border: none;
    border-radius: 12px;
    padding: 0;
    background: transparent;
    box-shadow: 
        0 0 0 0.5px rgba(0, 0, 0, 0.1),
        0 20px 60px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    overflow: hidden;
    animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -48%) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.input-form-modal::backdrop {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    animation: backdropFadeIn 0.3s ease-out;
}

@keyframes backdropFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content-wrapper {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-radius: 12px;
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    border: 0.5px solid rgba(0, 0, 0, 0.1);
    box-shadow: 
        0 0 0 0.5px rgba(255, 255, 255, 0.5) inset,
        0 1px 2px rgba(0, 0, 0, 0.1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.1);
    position: relative;
    min-height: 52px;
}

.modal-traffic-lights {
    display: flex;
    gap: 8px;
    align-items: center;
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.traffic-light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 0.5px solid rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    flex-shrink: 0;
    box-shadow: 
        0 0 0 0.5px rgba(0, 0, 0, 0.1) inset,
        0 1px 2px rgba(0, 0, 0, 0.1);
}

.traffic-light::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.traffic-light:hover::before {
    opacity: 1;
}

.traffic-light-close {
    background: linear-gradient(180deg, #ff5f57 0%, #e0443e 100%);
}

.traffic-light-close:hover {
    background: linear-gradient(180deg, #ff3b30 0%, #d32f2a 100%);
    transform: scale(1.08);
    box-shadow: 
        0 0 0 0.5px rgba(0, 0, 0, 0.15) inset,
        0 1px 3px rgba(255, 59, 48, 0.3);
}

.traffic-light-minimize {
    background: linear-gradient(180deg, #ffbd2e 0%, #e6a626 100%);
}

.traffic-light-minimize:hover {
    background: linear-gradient(180deg, #ff9500 0%, #e6850e 100%);
    transform: scale(1.08);
    box-shadow: 
        0 0 0 0.5px rgba(0, 0, 0, 0.15) inset,
        0 1px 3px rgba(255, 149, 0, 0.3);
}

.traffic-light-maximize {
    background: linear-gradient(180deg, #28c840 0%, #24b138 100%);
}

.traffic-light-maximize:hover {
    background: linear-gradient(180deg, #1dbd2e 0%, #1aa528 100%);
    transform: scale(1.08);
    box-shadow: 
        0 0 0 0.5px rgba(0, 0, 0, 0.15) inset,
        0 1px 3px rgba(29, 189, 46, 0.3);
}

.modal-header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    position: relative;
    width: 100%;
    max-width: 100%;
}

.modal-title-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: 100%;
}

.modal-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    text-align: center;
    letter-spacing: -0.01em;
}


.modal-address {
    font-size: 0.875rem;
    color: var(--muted);
    font-weight: 400;
    text-align: center;
}


.modal-close-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    color: var(--muted);
    transition: all 0.2s ease;
    opacity: 0.7;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.modal-close-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    color: var(--text);
    opacity: 1;
}

.modal-body {
    padding: 32px;
    overflow-y: auto;
    flex: 1;
    background: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
}

/* Mac 스타일 스크롤바 */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
    background-clip: padding-box;
}

.modal-body .input-section {
    margin-bottom: 24px;
    box-shadow: none;
    border: 0.5px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
}

.modal-body .input-section:hover {
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.7);
}

/* Mac 스타일 입력 필드 - 모달 내부 */
.modal-body .form-group input,
.modal-body .form-group select,
.modal-body .form-group textarea {
    background-color: rgba(255, 255, 255, 0.9);
    border: 0.5px solid rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 15px;
    color: #1d1d1f;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.05),
        0 0 0 0.5px rgba(0, 0, 0, 0.05) inset;
}

.modal-body .form-group input:hover,
.modal-body .form-group select:hover,
.modal-body .form-group textarea:hover {
    border-color: rgba(0, 0, 0, 0.3);
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.08),
        0 0 0 0.5px rgba(0, 0, 0, 0.08) inset;
}

.modal-body .form-group input:focus,
.modal-body .form-group select:focus,
.modal-body .form-group textarea:focus {
    outline: none;
    border-color: #007AFF;
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 
        0 0 0 3px rgba(0, 122, 255, 0.15),
        0 2px 6px rgba(0, 0, 0, 0.1),
        0 0 0 0.5px rgba(0, 122, 255, 0.3) inset;
}

.modal-body .form-group input[readonly],
.modal-body .form-group input[readonly][disabled] {
    background-color: rgba(245, 245, 247, 0.8);
    border-color: rgba(0, 0, 0, 0.15);
    color: rgba(60, 60, 67, 0.6);
    cursor: default;
    box-shadow: none;
}

.modal-body .form-group input[readonly]:hover,
.modal-body .form-group input[readonly][disabled]:hover {
    border-color: rgba(0, 0, 0, 0.15);
    background-color: rgba(245, 245, 247, 0.8);
    box-shadow: none;
}

.modal-body .form-group select[disabled] {
    background-color: rgba(245, 245, 247, 0.8);
    border-color: rgba(0, 0, 0, 0.15);
    color: rgba(60, 60, 67, 0.6);
    cursor: not-allowed;
    box-shadow: none;
}

/* Mac 스타일 버튼 - 모달 내부 */
.modal-body .btn,
.modal-body .btn-primary,
.modal-body .btn-secondary,
.modal-body .btn-address {
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 20px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    letter-spacing: -0.01em;
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.1),
        0 0 0 0.5px rgba(0, 0, 0, 0.05) inset;
}

.modal-body .btn-primary {
    background: #007AFF;
    color: white;
    box-shadow: 
        0 2px 4px rgba(0, 122, 255, 0.3),
        0 0 0 0.5px rgba(0, 122, 255, 0.2) inset;
}

.modal-body .btn-primary:hover {
    background: #0051D5;
    box-shadow: 
        0 4px 8px rgba(0, 122, 255, 0.4),
        0 0 0 0.5px rgba(0, 122, 255, 0.3) inset;
    transform: translateY(-1px);
}

.modal-body .btn-primary:active {
    background: #0040B8;
    transform: translateY(0);
    box-shadow: 
        0 1px 2px rgba(0, 122, 255, 0.3),
        0 0 0 0.5px rgba(0, 122, 255, 0.2) inset;
}

.modal-body .btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #1d1d1f;
    border: 0.5px solid rgba(0, 0, 0, 0.2);
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.05),
        0 0 0 0.5px rgba(0, 0, 0, 0.05) inset;
}

.modal-body .btn-secondary:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(0, 0, 0, 0.3);
    color: #1d1d1f;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.08),
        0 0 0 0.5px rgba(0, 0, 0, 0.1) inset;
    transform: translateY(-1px);
}

.modal-body .btn-secondary:active {
    background: rgba(245, 245, 247, 0.9);
    transform: translateY(0);
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.05),
        0 0 0 0.5px rgba(0, 0, 0, 0.1) inset;
}

.modal-body .btn-address {
    background: #007AFF;
    color: white;
    box-shadow: 
        0 2px 4px rgba(0, 122, 255, 0.3),
        0 0 0 0.5px rgba(0, 122, 255, 0.2) inset;
}

.modal-body .btn-address:hover {
    background: #0051D5;
    box-shadow: 
        0 4px 8px rgba(0, 122, 255, 0.4),
        0 0 0 0.5px rgba(0, 122, 255, 0.3) inset;
    transform: translateY(-1px);
}

.modal-body .btn-address:active {
    background: #0040B8;
    transform: translateY(0);
    box-shadow: 
        0 1px 2px rgba(0, 122, 255, 0.3),
        0 0 0 0.5px rgba(0, 122, 255, 0.2) inset;
}

.modal-body .btn-remove {
    background: #FF3B30;
    color: white;
    box-shadow: 
        0 2px 4px rgba(255, 59, 48, 0.3),
        0 0 0 0.5px rgba(255, 59, 48, 0.2) inset;
}

.modal-body .btn-remove:hover {
    background: #D32F2A;
    box-shadow: 
        0 4px 8px rgba(255, 59, 48, 0.4),
        0 0 0 0.5px rgba(255, 59, 48, 0.3) inset;
    transform: translateY(-1px);
}

.modal-body .btn-remove:active {
    background: #B02824;
    transform: translateY(0);
    box-shadow: 
        0 1px 2px rgba(255, 59, 48, 0.3),
        0 0 0 0.5px rgba(255, 59, 48, 0.2) inset;
}

/* Mac 스타일 라디오 버튼 - 모달 내부 */
.modal-body .radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #007AFF;
    cursor: pointer;
}

/* Mac 스타일 체크박스 - 모달 내부 */
.modal-body input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #007AFF;
    cursor: pointer;
    border-radius: 4px;
}

/* Mac 스타일 라벨 - 모달 내부 */
.modal-body .form-group label {
    font-weight: 500;
    color: #1d1d1f;
    margin-bottom: 6px;
    font-size: 14px;
    letter-spacing: -0.01em;
}

/* Mac 스타일 select 드롭다운 화살표 */
.modal-body .form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.modal-body .form-group select:focus {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23007AFF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Mac 스타일 small 텍스트 - 모달 내부 */
.modal-body .form-group small {
    color: rgba(60, 60, 67, 0.6);
    font-size: 13px;
    font-weight: 400;
    margin-top: 4px;
    line-height: 1.4;
}

.modal-body .form-group small.info-note {
    color: #34C759;
    font-weight: 500;
}

/* Mac 스타일 버튼 그룹 - 모달 내부 */
.modal-body .button-group {
    gap: 10px;
    margin: 32px 0 0 0;
}

/* Mac 스타일 주소 입력 그룹 - 모달 내부 */
.modal-body .address-input-group {
    gap: 8px;
}

.modal-body .address-input-group input {
    flex: 1;
}

/* Mac 스타일 섹션 제목 - 모달 내부 */
.modal-body .input-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.1);
    letter-spacing: -0.01em;
}

.modal-body .input-section h2::after {
    display: none;
}

/* Mac 스타일 라디오 그룹 - 모달 내부 */
.modal-body .radio-group {
    gap: 20px;
    margin-top: 8px;
}

.modal-body .radio-label {
    font-weight: 500;
    color: #1d1d1f;
    font-size: 14px;
    gap: 8px;
}

.modal-body .radio-label:hover {
    color: #007AFF;
}

/* Mac 스타일 주소 상태 - 모달 내부 */
.modal-body .address-status {
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 12px;
    border: 0.5px solid;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-body .address-status.status-loading {
    background: rgba(0, 122, 255, 0.1);
    color: #007AFF;
    border-color: rgba(0, 122, 255, 0.2);
}

.modal-body .address-status.status-success {
    background: rgba(52, 199, 89, 0.1);
    color: #34C759;
    border-color: rgba(52, 199, 89, 0.2);
}

.modal-body .address-status.status-warning {
    background: rgba(255, 149, 0, 0.1);
    color: #FF9500;
    border-color: rgba(255, 149, 0, 0.2);
}

.modal-body .address-status.status-error {
    background: rgba(255, 59, 48, 0.1);
    color: #FF3B30;
    border-color: rgba(255, 59, 48, 0.2);
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh;
        padding: 0;
    }
    
    .hero-container {
        margin-top: 140px;
    }
    
    .hero-headline {
        font-size: 2rem;
    }
    
    .hero-subheadline {
        font-size: 1rem;
    }
    
    .hero-cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-btn {
        width: 100%;
        justify-content: center;
    }
    
    .input-form-modal {
        max-width: 100%;
        border-radius: 0;
        height: 100vh;
        max-height: 100vh;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        box-shadow: none;
    }
    
    .modal-content-wrapper {
        border-radius: 0;
        height: 100%;
        max-height: 100vh;
        border: none;
    }
    
    .modal-header {
        padding: 12px 16px;
        min-height: 48px;
    }
    
    .modal-traffic-lights {
        left: 12px;
        gap: 6px;
    }
    
    .traffic-light {
        width: 10px;
        height: 10px;
    }
    
    .modal-close-btn {
        width: 28px;
        height: 28px;
        right: 8px;
    }
    
    .modal-header-content {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .modal-title-group {
        align-items: center;
    }
    
    .modal-header h2 {
        font-size: 1.125rem;
        text-align: center;
    }
    
    .modal-address {
        font-size: 0.8125rem;
        text-align: center;
    }
    
    
    .modal-close-btn {
        width: 28px;
        height: 28px;
        right: 8px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .metrics-cards-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .metric-card {
        padding: 16px;
    }
    
    .metric-current {
        font-size: 1.25rem;
    }
}

.page-intro {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 56px;
    padding: 0 20px;
}

.page-intro h1 {
    font-size: 2.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--neon-blue) 0%, var(--neon-purple) 50%, var(--neon-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    filter: drop-shadow(0 2px 8px rgba(59, 130, 246, 0.2));
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        filter: drop-shadow(0 2px 8px rgba(59, 130, 246, 0.2));
    }
    to {
        filter: drop-shadow(0 4px 16px rgba(139, 92, 246, 0.3));
    }
}

.intro-text {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    white-space: nowrap;
}

section {
    margin-bottom: 32px;
}

.input-section {
    background: var(--panel);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    margin-bottom: 32px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.input-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.05), transparent);
    transition: left 0.5s ease;
}

.input-section:hover::before {
    left: 100%;
}

.input-section:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    border-color: var(--neon-blue);
}

section h2 {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, var(--neon-blue), var(--neon-purple)) 1;
    font-weight: 600;
    letter-spacing: -0.01em;
    position: relative;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-blue), transparent);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 24px;
}

.form-row .form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
    background-color: var(--soft);
    color: var(--text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--neon-blue);
    background-color: var(--panel);
    box-shadow: 0 0 0 3px var(--primary-100), 0 4px 12px rgba(59, 130, 246, 0.15);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: var(--neon-blue);
    background-color: rgba(59, 130, 246, 0.03);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.form-group input[readonly] {
    background-color: var(--soft);
    cursor: default;
    color: var(--text);
}

.form-group input[readonly]:hover {
    background-color: var(--soft);
    border-color: var(--border-color);
    box-shadow: none;
}

.form-group input[readonly]:focus {
    background-color: var(--soft);
    border-color: var(--border-color);
    box-shadow: none;
}

.form-group input[readonly][disabled] {
    background-color: var(--soft);
    cursor: not-allowed;
    opacity: 0.7;
}

.form-group select[disabled] {
    background-color: var(--soft);
    cursor: not-allowed;
    opacity: 0.7;
}

.form-group small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.85rem;
}

.form-group small.info-note {
    color: var(--success-color);
    font-weight: 500;
}

.development-scale-group {
    margin-bottom: 24px;
}

.form-category {
    margin-bottom: 24px;
}

.form-category:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-color);
}

.design-description-group {
    margin-top: 0;
}

.form-category + .design-description-group {
    margin-top: 0;
}

.radio-group {
    display: flex;
    gap: 24px;
    margin-top: 8px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text);
    font-size: 0.95rem;
}

.radio-label input[type="radio"] {
    width: auto;
    margin: 0;
    cursor: pointer;
    accent-color: var(--neon-blue);
}

.radio-label:hover {
    color: var(--neon-blue);
}

.boundary-info {
    background: var(--soft);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 16px;
    margin-top: 16px;
    border-left: 4px solid var(--primary);
}

.boundary-info h4 {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.boundary-info p {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0;
}

.address-input-group {
    display: flex;
    gap: 8px;
}

.address-input-group input {
    flex: 1;
}

.address-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.address-status.status-loading {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.address-status.status-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.address-status.status-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.address-status.status-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.address-status .status-icon {
    font-size: 1rem;
    line-height: 1;
}

.address-status .status-text {
    flex: 1;
}

.btn-address {
    padding: 12px 20px;
    font-size: 14px;
    white-space: nowrap;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-family: inherit;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-address::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-address:hover::before {
    width: 300px;
    height: 300px;
}

.btn-address:hover {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-blue));
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.btn-remove {
    padding: 12px 16px;
    font-size: 14px;
    white-space: nowrap;
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-remove:hover {
    background: #dc2626;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    transform: translateY(-1px);
}

.address-item {
    margin-bottom: 16px;
}

.address-item:last-child {
    margin-bottom: 0;
}

.button-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 40px 0;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-family: inherit;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    color: white;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    box-shadow: 0 6px 30px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--primary);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn-secondary:hover {
    border-color: var(--neon-blue);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.btn-secondary:hover::before {
    opacity: 1;
}

.results-section {
    background: var(--panel);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    margin-top: 40px;
    position: relative;
    overflow: hidden;
}

.results-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple), var(--neon-pink));
    box-shadow: 0 2px 12px rgba(59, 130, 246, 0.3);
}

.result-card {
    background: var(--soft);
    border: none;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    background: var(--panel);
}

.result-card h3 {
    color: var(--primary);
    margin-bottom: 16px;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.result-card.compliance {
    background: rgba(17, 190, 170, 0.05);
}

.result-card.compliance h3 {
    color: var(--accent);
}

.result-card.warning {
    background: rgba(255, 200, 111, 0.08);
}

.result-card.warning h3 {
    color: #d97706;
}

.result-card.error {
    background: rgba(239, 71, 111, 0.05);
}

.result-card.error h3 {
    color: var(--danger);
}

.result-item {
    margin-bottom: 12px;
    padding: 12px;
    background: var(--panel);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.result-item strong {
    color: var(--text);
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}

.result-item p {
    color: var(--muted);
    margin: 0;
    line-height: 1.6;
}

.law-reference {
    margin-top: 16px;
    padding: 16px;
    background: var(--soft);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.law-reference h4 {
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 1rem;
    font-weight: 600;
}

.law-reference p {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 4px 0;
}

.loading {
    text-align: center;
    padding: 40px;
}

.spinner {
    border: 3px solid var(--soft);
    border-top: 3px solid var(--neon-blue);
    border-right: 3px solid var(--neon-purple);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
    box-shadow: 0 2px 12px rgba(59, 130, 246, 0.3);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    color: var(--muted);
    font-size: 1.1rem;
}

.completion-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    color: white;
    font-size: 32px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 2px 12px rgba(59, 130, 246, 0.5);
    animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: var(--soft);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.progress-text {
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.current-item-text {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 4px;
}

.error-message {
    background: rgba(239, 71, 111, 0.08);
    color: var(--danger);
    padding: 16px;
    border-radius: 12px;
    border: none;
    margin-bottom: 20px;
}

.success-message {
    background: rgba(17, 190, 170, 0.08);
    color: var(--accent);
    padding: 16px;
    border-radius: 12px;
    border: none;
    margin-bottom: 20px;
}

.summary-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-600) 100%);
    color: white;
    padding: 28px;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(47, 76, 255, 0.25);
}

.summary-box h3 {
    margin-bottom: 16px;
    font-size: 1.3rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item strong {
    font-weight: 600;
}

/* Site Footer */
.site-footer {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -2px 20px rgba(59, 130, 246, 0.08);
    padding: 40px 0;
    position: relative;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.footer-brand .brand-text {
    font-size: 20px;
}

.footer-text {
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .archlink-bar {
        padding: 12px 0;
    }

    .archlink-bar-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .archlink-promo-text {
        font-size: 13px;
    }

    .nav-link-archlink {
        width: 100%;
        justify-content: center;
        font-size: 13px;
        padding: 10px 20px;
    }

    main {
        padding: 24px 0 60px;
    }

    .page-intro {
        margin-bottom: 32px;
    }

    .page-intro h1 {
        font-size: 2rem;
    }

    .intro-text {
        font-size: 1rem;
    }

    .input-section {
        padding: 28px 20px;
    }

    section h2 {
        font-size: 1.35rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .button-group {
        flex-direction: column;
        margin: 32px 0;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .header-inner {
        height: 56px;
    }

    .nav {
        gap: 20px;
    }

    .nav-link {
        padding: 0;
        font-size: 14px;
    }
    
    .nav-link.login-link {
        padding: 8px 16px;
        font-size: 14px;
    }

    .topbar-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px 0;
    }

    .results-section {
        padding: 28px 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    main {
        padding: 20px 0 48px;
    }

    .page-intro {
        margin-bottom: 24px;
        padding: 0 12px;
    }

    .page-intro h1 {
        font-size: 1.75rem;
    }

    .intro-text {
        font-size: 0.95rem;
    }

    .input-section {
        padding: 24px 16px;
    }

    section h2 {
        font-size: 1.25rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 16px;
        font-size: 14px;
    }

    .btn {
        padding: 14px 24px;
        font-size: 15px;
    }

    .brand-text {
        font-size: 20px;
    }

    .nav {
        display: none;
    }

    .results-section {
        padding: 24px 16px;
    }
}

/* 페이지 콘텐츠 스타일 */
.page-content {
    min-height: calc(100vh - 200px);
    overflow: hidden;
    position: relative;
    background: var(--bg);
}

#home-page {
    background: transparent;
}

/* 서비스 소개 및 사용 방법 섹션 스타일 */
.info-section {
    margin-bottom: 48px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 28px;
    max-width: 1000px;
    margin: 0 auto;
}

.info-card {
    padding: 32px;
    background: var(--panel);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.info-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    line-height: 1.4;
}

.info-card p {
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 12px;
}

.feature-list,
.usage-list,
.step-details,
.tip-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    margin-bottom: 24px;
    padding-left: 28px;
    position: relative;
}

.feature-list li:last-child {
    margin-bottom: 0;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2rem;
}

.feature-list li strong {
    display: block;
    color: var(--text);
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.feature-list li p {
    color: var(--muted);
    margin: 0;
    line-height: 1.6;
}

.usage-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.usage-list li {
    padding: 16px 20px;
    background: var(--panel);
    border-radius: 12px;
    color: var(--text);
    font-size: 0.95rem;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.usage-list li:hover {
    border-color: var(--primary);
    background: var(--primary-100);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.12);
}

.step-card {
    display: flex;
    gap: 24px;
    padding: 32px;
    background: var(--panel);
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.4;
}

.step-content > p {
    color: var(--muted);
    margin-bottom: 16px;
    line-height: 1.7;
}

.step-details {
    margin-top: 12px;
}

.step-details li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    color: var(--muted);
    line-height: 1.6;
}

.step-details li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
    font-size: 1.2rem;
}

.step-details li strong {
    color: var(--text);
}

.highlight-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(139, 92, 246, 0.08));
}

.tip-list li {
    padding: 10px 0;
    padding-left: 24px;
    position: relative;
    color: var(--muted);
    line-height: 1.7;
}

.tip-list li::before {
    content: "💡";
    position: absolute;
    left: 0;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .info-section {
        padding: 0;
    }

    .info-content {
        gap: 20px;
    }

    .info-card {
        padding: 24px 20px;
    }

    .step-card {
        flex-direction: column;
        gap: 16px;
        padding: 24px 20px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .usage-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .info-section {
        padding: 0;
    }

    .info-content {
        gap: 16px;
    }

    .info-card,
    .step-card {
        padding: 20px 16px;
    }

    .info-card h3,
    .step-content h3 {
        font-size: 1.2rem;
    }
}

/* 약관 동의 모달 */
.modal {
    border: none;
    border-radius: var(--radius);
    padding: 0;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    background: var(--panel);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.modal::backdrop {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
}

.modal-terms {
    max-width: 700px;
}

.terms-form {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.terms-header {
    padding: 32px 32px 24px;
    border-bottom: 1px solid var(--border-color);
}

.terms-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 8px 0;
    letter-spacing: -0.02em;
}

.terms-header p {
    font-size: 14px;
    color: var(--muted);
    margin: 0;
    line-height: 1.6;
}

.terms-content {
    padding: 24px 32px;
    overflow-y: auto;
    flex: 1;
    min-height: 200px;
    max-height: calc(90vh - 200px);
}

.terms-text {
    background: var(--soft);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    max-height: 400px;
    overflow-y: auto;
    line-height: 1.8;
    color: var(--text);
    font-size: 14px;
}

.terms-text p {
    margin: 0 0 12px 0;
}

.terms-text p:last-child {
    margin-bottom: 0;
}

.terms-text strong {
    color: var(--primary);
    font-weight: 600;
}

.terms-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--soft);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.terms-checkbox:hover {
    border-color: var(--primary);
    background: var(--primary-100);
}

.terms-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
    flex-shrink: 0;
}

.terms-checkbox span {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    user-select: none;
}

.terms-checkbox input[type="checkbox"]:checked + span {
    color: var(--primary);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 24px 32px;
    border-top: 1px solid var(--border-color);
    margin: 0;
}

.btn-ghost {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--border-color);
    padding: 12px 24px;
}

.btn-ghost:hover {
    background: var(--soft);
    color: var(--text);
    border-color: var(--border-color);
}

.modal .btn.primary {
    padding: 12px 28px;
}

@media (max-width: 768px) {
    .modal {
        width: 95%;
        max-height: 95vh;
    }

    .terms-header {
        padding: 24px 24px 20px;
    }

    .terms-header h2 {
        font-size: 1.5rem;
    }

    .terms-content {
        padding: 20px 24px;
    }

    .terms-text {
        padding: 20px;
        max-height: 300px;
    }

    .modal-actions {
        padding: 20px 24px;
        flex-direction: column-reverse;
    }

    .modal-actions .btn {
        width: 100%;
    }
}

/* 결과 페이지 스타일 */
.results-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 0;
}

.review-section,
.plan-section {
    margin-bottom: 24px;
    box-shadow: none;
    border: 0.5px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 32px;
    position: relative;
    overflow: hidden;
}

.review-section {
    /* 테두리 및 왼쪽 강조색 제거 */
}

.plan-section {
    /* 테두리 및 왼쪽 강조색 제거 */
}

/* 상단 그라데이션 라인 제거 */

.section-header {
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.section-header-content {
    flex: 1;
}

.section-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 0;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-header h2::after {
    display: none;
}

.review-section .section-header h2 {
    color: #1d1d1f;
}

.plan-section .section-header h2 {
    color: #1d1d1f;
}

.section-description {
    color: rgba(60, 60, 67, 0.6);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.review-content,
.plan-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.review-content .result-card,
.plan-content .result-card {
    background: rgba(255, 255, 255, 0.9);
    border: 0.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 24px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.review-content .result-card:hover,
.plan-content .result-card:hover {
    transform: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.95);
}

.review-content .result-card h3,
.plan-content .result-card h3 {
    color: var(--primary);
    margin-bottom: 16px;
    font-size: 1.375rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.plan-content .result-card h3 {
    color: var(--text);
}

.review-content .result-card.compliance,
.plan-content .result-card.compliance {
    background: rgba(17, 190, 170, 0.05);
}

.review-content .result-card.compliance h3,
.plan-content .result-card.compliance h3 {
    color: var(--accent);
}

.review-content .result-card.warning,
.plan-content .result-card.warning {
    background: rgba(255, 200, 111, 0.08);
}

.review-content .result-card.warning h3,
.plan-content .result-card.warning h3 {
    color: #d97706;
}

.review-content .result-card.error,
.plan-content .result-card.error {
    background: rgba(239, 71, 111, 0.05);
}

.review-content .result-card.error h3,
.plan-content .result-card.error h3 {
    color: var(--danger);
}

.review-content .summary-box,
.plan-content .summary-box {
    margin-bottom: 0;
}

/* 접기/펴기 버튼 스타일 */
.section-toggle-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.section-toggle-btn:hover {
    background: var(--soft);
    border-color: var(--primary);
    color: var(--primary);
}

.section-toggle-btn:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.toggle-icon {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 12px;
    color: var(--muted);
}

.section-toggle-btn:hover .toggle-icon {
    color: var(--primary);
}

.section-toggle-btn[aria-expanded="false"] .toggle-icon {
    transform: rotate(-90deg);
}

/* 접힌 상태일 때 콘텐츠 숨김 */
.review-section.collapsed .review-content,
.plan-section.collapsed .plan-content {
    display: none;
}

/* 주요 지표 카드 그리드 */
.metrics-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.metric-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.metric-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.metric-label-ko {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.metric-label-en {
    font-size: 0.875rem;
    color: var(--muted);
}

.metric-value {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.metric-current {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3b82f6;
}

.metric-separator {
    font-size: 1rem;
    color: var(--muted);
    font-weight: 400;
}

.metric-limit {
    font-size: 1rem;
    color: var(--muted);
    font-weight: 400;
}

/* 주요 법규 검토 섹션 */
.legal-review-section {
    margin-top: 32px;
}

.legal-review-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
}

.legal-review-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.legal-review-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.legal-review-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.legal-review-item.compliance {
    border-left: 4px solid #10b981;
}

.legal-review-item.warning {
    border-left: 4px solid #f59e0b;
}

.legal-review-item.error {
    border-left: 4px solid #ef4444;
}

.legal-review-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.legal-review-item.compliance .legal-review-icon {
    color: #10b981;
}

.legal-review-item.warning .legal-review-icon {
    color: #f59e0b;
}

.legal-review-item.error .legal-review-icon {
    color: #ef4444;
}

.legal-review-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.legal-review-title-text {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text);
}

.legal-review-subtitle {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .results-container {
        gap: 24px;
        margin-top: 0;
    }

    .review-section,
    .plan-section {
        padding: 28px 20px;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .section-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .results-container {
        gap: 20px;
        margin-top: 0;
    }

    .review-section,
    .plan-section {
        padding: 24px 16px;
    }

    .section-header {
        margin-bottom: 24px;
        padding-bottom: 16px;
    }

    .section-header h2 {
        font-size: 1.35rem;
    }
}

/* 법규 검토 결과 표 스타일 */
.review-results-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.review-results-table thead {
    background-color: #f8f9fa;
}

.review-results-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #1d1d1f;
    border-bottom: 2px solid #dee2e6;
}

.review-results-table td {
    padding: 12px;
    color: #212529;
    border-bottom: 1px solid #e9ecef;
}

.review-results-table tbody tr:last-child td {
    border-bottom: none;
}

.review-results-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* 계획안 개요 표 스타일 */
.plan-summary-table-container {
    margin-top: 16px;
    overflow-x: auto;
}

.plan-summary-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--panel);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.plan-summary-table thead {
    background: var(--soft);
    border-bottom: 2px solid var(--border-color);
}

.plan-summary-table thead tr {
    border-bottom: 2px solid var(--border-color);
}

.plan-summary-table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    color: var(--text);
    border-bottom: 2px solid var(--border-color);
}

.plan-summary-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

.plan-summary-table tbody tr:last-child {
    border-bottom: none;
}

.plan-summary-table tbody tr:hover {
    background-color: var(--soft);
}

.plan-summary-table td {
    padding: 14px 20px;
    color: var(--text);
    font-size: 0.95rem;
}

.plan-summary-table td:first-child {
    font-weight: 600;
    color: var(--muted);
    width: 40%;
}

.plan-summary-table td:last-child {
    color: var(--text);
    font-weight: 500;
}

@media (max-width: 768px) {
    .plan-summary-table th,
    .plan-summary-table td {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .plan-summary-table th,
    .plan-summary-table td {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .plan-summary-table td:first-child {
        width: 45%;
    }
}

