/* CSS Reset 및 기본 설정 최적화 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary-color: #ff4757;
    --primary-dark: #e63946;
    --bg-dark: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #aaa;
    --border-color: #333;
    --shadow-primary: 0 4px 20px rgba(255, 71, 87, 0.2);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* 접근성 개선 */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* 포커스 표시 개선 */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* PWA 최적화 */
@media (display-mode: standalone) {
    .header {
        padding-top: env(safe-area-inset-top);
    }
}

/* 폰트 로딩 최적화 */
.fonts-loaded body {
    font-display: swap;
}

/* 성능 최적화 애니메이션 */
@media (prefers-reduced-motion: no-preference) {
    .feature-card {
        transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    }

    .feature-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    }
}

/* 레이아웃 쉬프트 방지 */
img {
    max-width: 100%;
    height: auto;
}

/* 로딩 스켈레톤 */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 헤더 최적화 */
.header {
    background: var(--bg-secondary);
    padding: 20px;
    border-bottom: 2px solid var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-primary);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
}

.header.scrolled {
    background: rgba(26, 26, 26, 0.95);
    box-shadow: 0 8px 32px rgba(255, 71, 87, 0.3);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: all var(--transition-normal);
    position: relative;
}

.logo:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.logo i {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(255, 71, 87, 0.5);
    transition: all var(--transition-normal);
}

.logo:hover i {
    text-shadow: 0 0 20px rgba(255, 71, 87, 0.8);
    transform: rotate(5deg);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-normal);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition-normal);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

.header-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.auth-btn {
    background: #2a2a2a;
    border: none;
    color: var(--text-primary);
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 130px;
    justify-content: center;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    will-change: transform;
}

.auth-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #ff4757, #ff3742);
    transition: width 0.4s ease;
}

.auth-btn:hover {
    background: #333;
    color: #ff4757;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(255, 71, 87, 0.4);
}

.auth-btn:hover::after {
    width: 100%;
}

.auth-btn i {
    transition: all 0.4s ease;
}

.auth-btn:hover i {
    color: #ff4757;
    transform: rotate(360deg);
}

.signup-btn {
    background: linear-gradient(145deg, #ff4757 0%, #e63946 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(255, 71, 87, 0.4);
}

.signup-btn::after {
    background: linear-gradient(90deg, #ff6b6b, #ff4757);
}

.signup-btn:hover {
    background: linear-gradient(145deg, #e63946 0%, #d63031 100%);
    color: #fff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(230, 57, 70, 0.6);
}

.signup-btn:hover i {
    color: #fff;
}

.auth-btn:disabled {
    background: #555;
    color: #888;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.auth-btn:disabled:hover {
    background: #555;
    color: #888;
    transform: none;
    box-shadow: none;
}

.auth-btn:disabled::after {
    width: 0;
}

.auth-btn:disabled i {
    color: #888;
    transform: none;
}

.form-input:disabled {
    background: #333;
    color: #777;
    border-color: #555;
    cursor: not-allowed;
}

.form-submit:disabled {
    background: #555;
    color: #888;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.form-submit:disabled:hover {
    background: #555;
    color: #888;
    transform: none;
    box-shadow: none;
}

.view-terms:disabled {
    background: none;
    border: 1px solid #555;
    color: #777;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    cursor: not-allowed;
    opacity: 0.6;
    transition: all 0.2s ease;
}

.view-terms:disabled:hover {
    background: none;
    border: 1px solid #555;
    color: #777;
    opacity: 0.6;
}

/* 비교 섹션 */
.comparison {
    padding: 80px 20px;
    background: #101010; /* 화이트 배경 */
    font-family: 'Noto Sans KR', sans-serif;
}

.comparison-container {
    max-width: 1200px;
    margin: 0 auto;
}

.comparison-table-wrapper {
    margin: 40px 0;
    overflow-x: auto;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb; /* 연한 그레이 */
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* 테이블 */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

/* 헤더 */
.comparison-table th {
    background: #f9fafb;
    color: #333;
    padding: 18px 24px;
    text-align: center;
    font-weight: 600;
    border-bottom: 2px solid #e5e7eb;
}

.feature-column {
    background: #f3f4f6 !important;
    width: 20%;
}

.other-column {
    width: 25%;
    color: #555;
}

.our-column {
    background: linear-gradient(135deg, #ff4757, #e63946) !important;
    width: 30%;
    color: #FFFFFF !important;
    font-weight: 700;
    border-radius: 0 12px 0 0;
}

/* 헤더 안 텍스트 */
.our-service {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 17px;
}

/* 셀 */
.comparison-table td {
    padding: 16px 24px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
    text-align: center;
}

/* 항목명(왼쪽 열) */
.feature-name {
    background: #f9fafb;
    color: #111;
    font-weight: 600;
    text-align: left;
    padding-left: 28px;
}

/* 다른 업체 */
.other-cell {
    background: #fff;
    color: #666;
}

/* 오늘의단타 */
.our-cell {
    background: #fff5f5;  /* 옅은 레드 배경 */
    color: #e63946;
    font-weight: 600;
}

/* 강조 텍스트 */
.highlight {
    color: #ff4757;
    font-weight: 700;
}


		/* 요약 카드 */
		.comparison-summary {
			display: grid;
			grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
			gap: 30px;
			margin-top: 60px;
		}

		.summary-card {
			background: #1c1c1c;
			padding: 28px;
			border-radius: 14px;
			text-align: center;
			border: 1px solid #2a2a2a;
			transition: all 0.3s ease;
		}

		.summary-card:hover {
			transform: translateY(-4px);
			border-color: #ff4757;
			box-shadow: 0 10px 20px rgba(255, 71, 87, 0.15);
		}

		.summary-icon {
			width: 60px;
			height: 60px;
			background: linear-gradient(135deg, #ff4b5c, #ff3a44);
			border-radius: 50%;
			display: flex;
			align-items: center;
			justify-content: center;
			margin: 0 auto 18px;
		}

		.summary-icon i {
			font-size: 1.4rem;
			color: white;
		}

		.summary-card h3 {
			font-size: 1.2rem;
			color: #fff;
			margin-bottom: 12px;
			font-weight: 600;
		}

		.summary-card p {
			color: #bbb;
			line-height: 1.6;
			font-size: 14px;
		}

		/* 버튼 */
		.cta-button {
			background: linear-gradient(135deg, #ff4b5c, #ff3a44);
			color: white;
			padding: 12px 26px;
			border-radius: 25px;
			text-decoration: none;
			font-weight: 600;
			transition: all 0.3s ease;
			box-shadow: 0 4px 15px rgba(255, 71, 87, 0.25);
		}

		.cta-button:hover {
			transform: translateY(-2px);
			box-shadow: 0 8px 20px rgba(255, 71, 87, 0.35);
		}


/* 히어로 섹션 */
.hero {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23333" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ff4757, #ff8a80);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero .subtitle {
    font-size: 1.3rem;
    color: #ccc;
    margin-bottom: 50px;
    font-weight: 300;
}

.btn-primary {
    background: linear-gradient(135deg, #ff4757, #ff3742);
    color: white;
    padding: 18px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 71, 87, 0.4);
}

/* 특징 섹션 내 SEO 이미지 */
.features-seo-image {
    margin: 50px auto 60px;
    max-width: 1000px;
    text-align: center;
}

.features-main-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(255, 71, 87, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.features-main-image:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 25px 60px rgba(255, 71, 87, 0.3);
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .features-seo-image {
        margin: 30px auto 40px;
    }

    .features-main-image {
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(255, 71, 87, 0.15);
    }

    .features-main-image:hover {
        transform: translateY(-3px) scale(1.01);
        box-shadow: 0 15px 40px rgba(255, 71, 87, 0.25);
    }
}

/* 특징 섹션 */
.features {
    padding: 100px 20px;
    background: #1a1a1a;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #888;
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.feature-card {
    background: #2a2a2a;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #333;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: #ff4757;
    box-shadow: 0 20px 40px rgba(255, 71, 87, 0.15);
}

.feature-icon {
    font-size: 3rem;
    color: #ff4757;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
}

.feature-description {
    color: #ccc;
    line-height: 1.6;
}


/* 리뷰 섹션 */
.reviews {
    padding: 100px 20px;
    background: #0f0f0f;
}

.reviews-container {
    max-width: 1000px;
    margin: 0 auto;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.review-card {
    background: #2a2a2a;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    border-color: #ff4757;
    box-shadow: 0 15px 30px rgba(255, 71, 87, 0.1);
}

.stars {
    color: #ff4757;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.review-text {
    color: #fff;
    font-style: italic;
    margin-bottom: 15px;
    line-height: 1.6;
}

.reviewer {
    color: #888;
    font-weight: 500;
    font-size: 0.9rem;
}

/* FAQ 섹션 */
.faq {
    padding: 100px 20px;
    background: #1a1a1a;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #2a2a2a;
    border: 1px solid #333;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #ff4757;
}

.faq-question {
    padding: 25px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    color: #ff4757;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 20px 25px 25px 25px;
    color: #ccc;
    line-height: 1.6;
    display: none;
    border-top: 1px solid #333;
}

.faq-answer.active {
    display: block;
}

/* CTA 섹션 */
.cta-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, #ff4757, #ff3742);
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.btn-white {
    background: white;
    color: #ff4757;
    padding: 18px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

/* 푸터 */
.footer {
    background: #1a1a1a;
    padding: 60px 20px 40px;
    border-top: 1px solid #333;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    font-size: 28px;
    margin-bottom: 15px;
}

.footer-description {
    color: #888;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ff4757;
}

.company-info {
    background: #2a2a2a;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 1px solid #333;
}

.company-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
}

.company-info p {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 8px;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

/* 고정 카카오톡 버튼 */
.kakao-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #ff4757;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.kakao-button:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(255, 71, 87, 0.5);
}

.kakao-button i {
    font-size: 1.5rem;
    color: white;
}

/* 모달 스타일 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #2a2a2a;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 545px;
    position: relative;
    border: 1px solid #444;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #888;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #fff;
}

.modal-title {
    text-align: center;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    color: #ccc;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    transition: border-color 0.3s ease;
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
    user-select: auto;
}

.form-input:focus {
    outline: none;
    border-color: #ff4757;
    box-shadow: 0 0 0 2px rgba(255, 71, 87, 0.2);
}

.form-input::placeholder {
    color: #666;
}

/* 크롬 자동완성 스타일 오버라이드 */
.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus,
.form-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #1a1a1a inset !important;
    -webkit-text-fill-color: #fff !important;
    border: 1px solid #444 !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* 타임로그 모달 스타일 */
.timeline-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.timeline-modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.timeline-modal-header {
    background: #ff4757;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timeline-modal-header h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.timeline-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.timeline-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.timeline-modal-body {
    padding: 20px;
    max-height: calc(80vh - 80px);
    overflow-y: auto;
}

.stock-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    overflow-x: auto;
}

.stock-info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
}

.stock-info-table th {
    text-align: center;
    padding: 8px 12px;
    background: #e9ecef;
    font-weight: 600;
    color: #495057;
    border: 1px solid #dee2e6;
    white-space: nowrap;
}

.stock-info-table td {
    text-align: center;
    padding: 8px 12px;
    font-weight: 600;
    border: 1px solid #dee2e6;
    white-space: nowrap;
    color: #333;
}

.stock-info-table .profit-result {
    color: #dc3545; /* 빨간색 - 익절 */
}

.stock-info-table .loss-result {
    color: #007bff; /* 파란색 - 손절 */
}

.stock-info-table .profit-rate {
    color: #dc3545; /* 빨간색 - 양수 */
    font-size: 1.1rem;
    font-weight: 700;
}

.stock-info-table .loss-rate {
    color: #007bff; /* 파란색 - 음수 */
    font-size: 1.1rem;
    font-weight: 700;
}

.ai-balance-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border-top: 3px solid #6f42c1;
}

.ai-balance-title {
    font-size: 1rem;
    font-weight: 700;
    color: #6f42c1;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-balance-title::before {
    content: "🤖";
    font-size: 1.1rem;
}

.ai-balance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.ai-balance-item {
    background: white;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    text-align: center;
}

.ai-balance-label {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ai-balance-value {
    font-size: 1.1rem;
    font-weight: 700;
}

.ai-balance-value.balance-status {
    color: #000 !important;
}

.ai-balance-value.realized-profit.profit {
    color: #dc3545;
}

.ai-balance-value.realized-profit.loss {
    color: #007bff;
}

.timeline-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.timeline-card {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 16px;
    background: white;
    transition: all 0.2s ease;
    border-left: 4px solid #007bff;
}

.timeline-card.success {
    border-left-color: #28a745;
    background: #f8fff9;
}

.timeline-card.warning {
    border-left-color: #ffc107;
    background: #fffbf0;
}

.timeline-card.error {
    border-left-color: #dc3545;
    background: #fff5f5;
}

.timeline-card.info {
    border-left-color: #17a2b8;
    background: #f0f9ff;
}

.timeline-card.signal {
    border-left-color: #6f42c1;
    background: #f8f6ff;
}

.timeline-card.up {
    border-left-color: #e91e63;
    background: #fef6f8;
}

.timeline-card.down {
    border-left-color: #3f51b5;
    background: #f3f4f9;
}

.timeline-card.news {
    border-left-color: #ff9800;
    background: #fff8f0;
}

.timeline-card.disclosure {
    border-left-color: #795548;
    background: #f8f6f4;
}

.timeline-card.target_price {
    border-left-color: #4caf50;
    background: #f7fcf7;
}

.timeline-card.new_high {
    border-left-color: #f44336;
    background: #fff5f4;
}

.timeline-card.upper_limit {
    border-left-color: #ff1744;
    background: #fff0f2;
}

.timeline-card.monthly_high {
    border-left-color: #ff5722;
    background: #fff3f0;
}

.timeline-card.vi_static {
    border-left-color: #607d8b;
    background: #f5f6f7;
}

.timeline-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.timeline-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.timeline-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.timeline-badge.badge-info {
    background: #17a2b8;
    color: white;
}

.timeline-badge.badge-success {
    background: #28a745;
    color: white;
}

.timeline-badge.badge-warning {
    background: #ffc107;
    color: #000;
}

.timeline-badge.badge-error {
    background: #dc3545;
    color: white;
}

.timeline-badge.badge-signal {
    background: #6f42c1;
    color: white;
}

.timeline-badge.badge-up {
    background: #e91e63;
    color: white;
}

.timeline-badge.badge-down {
    background: #3f51b5;
    color: white;
}

.timeline-badge.badge-news {
    background: #ff9800;
    color: white;
}

.timeline-badge.badge-disclosure {
    background: #795548;
    color: white;
}

.timeline-badge.badge-target_price {
    background: #4caf50;
    color: white;
}

.timeline-badge.badge-new_high {
    background: #f44336;
    color: white;
}

.timeline-badge.badge-upper_limit {
    background: #ff1744;
    color: white;
}

.timeline-badge.badge-monthly_high {
    background: #ff5722;
    color: white;
}

.timeline-badge.badge-vi_static {
    background: #607d8b;
    color: white;
}

.timeline-time {
    font-size: 0.85rem;
    color: #666;
}

.timeline-title {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.timeline-content {
    margin: 0 0 12px 0;
    color: #555;
    line-height: 1.5;
    font-size: 0.95rem;
}

.timeline-price-info {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

.timeline-price-info .price {
    color: #333;
}

.timeline-price-info .change-rate {
    color: #28a745;
    font-weight: 600;
}

.no-timeline {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px 20px;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .timeline-modal-content {
        width: 95%;
        margin: 10px;
    }

    .timeline-modal-header h2 {
        font-size: 1rem;
    }

    .stock-info-table {
        font-size: 0.9rem;
    }

    .stock-info-table th,
    .stock-info-table td {
        padding: 6px 8px;
    }

    .timeline-price-info {
        flex-direction: column;
        gap: 5px;
    }
}

.form-input:-webkit-autofill::first-line {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    color: #fff !important;
}

.form-submit {
    width: 100%;
    background: linear-gradient(135deg, #ff4757, #ff3742);
    color: white;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.4);
}

.modal-footer {
    text-align: center;
    margin-top: 20px;
    color: #888;
    font-size: 14px;
}

.modal-footer a {
    color: #ff4757;
    text-decoration: none;
    font-weight: 500;
}

.modal-footer a:hover {
    text-decoration: underline;
}

/* 약관 모달 스타일 */
.terms-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.terms-modal-content {
    background: #2a2a2a;
    border-radius: 15px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    border: 1px solid #444;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow-y: scroll;
    position: relative;
    /* 스크롤바 숨기기 */
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE and Edge */
}

/* .terms-modal-content 웹킷 스크롤바 숨기기 */
.terms-modal-content::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.terms-modal-header {
    padding: 25px 30px 20px;
    border-bottom: 1px solid #444;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #333;
    border-radius: 15px 15px 0 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.terms-modal-header h2 {
    color: #fff;
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.terms-modal-close {
    color: #999;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
}

.terms-modal-close:hover {
    color: #ff4757;
}

.terms-modal-body {
    padding: 30px;
    flex: 1;
    background: #2a2a2a;
    border-radius: 0 0 15px 15px;
}

/* 웹킷 브라우저에서 스크롤바 완전히 숨기기 */
.terms-modal-body::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

.terms-modal-body::-webkit-scrollbar-track {
    display: none !important;
}

.terms-modal-body::-webkit-scrollbar-thumb {
    display: none !important;
}

.terms-content h3 {
    color: #ff4757;
    font-size: 18px;
    font-weight: 700;
    margin: 20px 0 10px 0;
    border-bottom: 2px solid #ff4757;
    padding-bottom: 8px;
}

.terms-content h3:first-child {
    margin-top: 0;
}

.terms-content p {
    color: #ddd;
    line-height: 1.3;
    margin: 3px 0;
    font-size: 14px;
}

.terms-date {
    text-align: center;
    background: #333;
    padding: 15px;
    border-radius: 10px;
    margin-top: 30px;
    border: 1px solid #ff4757;
}

.terms-date strong {
    color: #ff4757;
    font-size: 16px;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .terms-modal {
        padding: 10px;
    }

    .terms-modal-content {
        max-height: 95vh;
        border-radius: 12px;
    }

    .terms-modal-header {
        padding: 20px 20px 15px;
        border-radius: 12px 12px 0 0;
    }

    .terms-modal-header h2 {
        font-size: 20px;
    }

    .terms-modal-close {
        font-size: 28px;
    }

    .terms-modal-body {
        padding: 20px;
        border-radius: 0 0 12px 12px;
    }

    .terms-content h3 {
        font-size: 16px;
        margin: 25px 0 12px 0;
    }

    .terms-content p {
        font-size: 13px;
        line-height: 1.7;
    }

    .terms-date {
        padding: 12px;
    }

    .terms-date strong {
        font-size: 14px;
    }
}

.forgot-password {
    text-align: center;
    margin-top: 15px;
}

.forgot-password a {
    color: #ff4757;
    text-decoration: none;
    font-size: 14px;
}

.forgot-password a:hover {
    text-decoration: underline;
}

.agreement-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-top: 10px;
}

.agreement-item {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.agreement-label {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    flex: 1;
}

.agreement-label input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.1);
}

.view-terms {
    background: none;
    border: 1px solid #ddd;
    color: #666;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-terms:hover {
    background: #ff4757;
    color: white;
    border-color: #ff4757;
}

.terms-modal .modal-content {
    max-width: 600px;
    max-height: 80vh;
    overflow-y: scroll;
    /* 스크롤바 숨기기 */
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE and Edge */
}

/* .terms-modal .modal-content 웹킷 스크롤바 숨기기 */
.terms-modal .modal-content::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.terms-content {
    border-radius: 8px;
    margin: 10px 0;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-line;
    color: #fff;
}

.social-login {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #444;
}

.social-login-title {
    text-align: center;
    color: #888;
    font-size: 14px;
    margin-bottom: 15px;
}

.social-btn {
    width: 100%;
    padding: 12px;
    border: 1px solid #444;
    border-radius: 10px;
    background: #1a1a1a;
    color: #fff;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.social-btn:hover {
    background: #333;
    border-color: #666;
}

.kakao-btn {
    background: #fee500;
    color: #000;
    border-color: #fee500;
}

.kakao-btn:hover {
    background: #fdd835;
}

.google-btn {
    background: #fff;
    color: #333;
    border-color: #ddd;
}

.google-btn:hover {
    background: #f5f5f5;
}

/* 달력 섹션 */
.calendar-section {
    padding: 100px 20px;
    background: #0f0f0f;
    border-top: 2px solid #ff4757;
}

.calendar-container {
    max-width: 1200px;
    margin: 0 auto;
}

.ai-stockbot-calendar {
    background: #ffffff;
    border-radius: 18px;
    padding: 22px;
    border: 1px solid #e0e0e0;
    margin-top: 35px;
    box-shadow: 0 7px 25px rgba(0, 0, 0, 0.09);
    min-height: 420px;
    height: auto;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-nav-btn {
    background: transparent;
    border: 1px solid #ff4757;
    color: #ff4757;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.calendar-nav-btn:hover {
    background: #ff4757;
    color: white;
}

.calendar-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.calendar-loading .loading-spinner-small {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #ff4757;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.calendar-month-title {
    color: #333;
    font-size: 1.4rem;
    font-weight: 700;
}

.calendar-guide {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #666;
}

.highlight-text {
    color: #ff4757;
    font-weight: bold;
}

.calendar-table-wrapper {
    overflow-x: auto;
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
    height: 320px;
    table-layout: fixed;
}

.calendar-table th {
    background: #f8f9fa;
    color: #333;
    padding: 15px 10px;
    text-align: center;
    font-weight: 600;
    border: 1px solid #dee2e6;
}

.calendar-table td {
    border: 1px solid #dee2e6;
    vertical-align: top;
    height: 80px;
    min-height: 80px;
    max-height: 80px;
    width: 20%;
    position: relative;
    overflow: hidden;
    padding: 5px;
    box-sizing: border-box;
}

.calendar-day {
    padding: 4px;
    height: 70px;
    min-height: 70px;
    max-height: 70px;
    background: #ffffff;
    overflow: hidden;
    box-sizing: border-box;
}

.day-num {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}


.signal-link {
    display: block;
    cursor: pointer;
    margin-bottom: 4px;
    font-size: 11px;
    color: #333;
    background: rgba(255, 71, 87, 0.1);
    padding: 6px 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
    overflow: hidden;
    line-height: 1.2;
    height: auto;
    min-height: 20px;
}

.signal-link:hover {
    background: rgba(255, 71, 87, 0.2);
    transform: scale(1.02);
}

.closed-info {
    display: block !important;
    cursor: default !important;
    margin-bottom: 4px !important;
    font-size: 11px !important;
    color: #666 !important;
    background: rgba(108, 117, 125, 0.15) !important;
    padding: 6px 5px !important;
    border-radius: 4px !important;
    text-align: center !important;
    overflow: hidden !important;
    line-height: 1.2 !important;
    font-weight: 500 !important;
    height: auto !important;
    min-height: 20px !important;
}

.profit-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2px;
    padding: 6px 10px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.9));
    font-size: 11px;
    gap: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.profit-badge {
    background: linear-gradient(135deg, #6f42c1, #8e44ad);
    color: white;
    padding: 3px 8px;
    font-size: 9px;
    font-weight: 700;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 2px rgba(111, 66, 193, 0.3);
}

.profit-amount {
    font-weight: 700;
    flex-grow: 1;
    text-align: left;
    font-size: 11px;
}

.profit-amount.profit {
    color: #dc3545;
    text-shadow: 0 0 1px rgba(220, 53, 69, 0.3);
}

.profit-amount.loss {
    color: #007bff;
    text-shadow: 0 0 1px rgba(0, 123, 255, 0.3);
}

.profit-rate {
    font-weight: 600;
    text-align: right;
    flex-shrink: 0;
    font-size: 11px;
}

.profit-rate.profit {
    color: #dc3545;
    text-shadow: 0 0 1px rgba(220, 53, 69, 0.3);
}

.profit-rate.loss {
    color: #007bff;
    text-shadow: 0 0 1px rgba(0, 123, 255, 0.3);
}

.badge-profit {
    background: #dc3545;
    color: white;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 11px;
    margin-right: 6px;
    font-weight: 600;
}

.badge-loss {
    background: #007bff;
    color: white;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 11px;
    margin-right: 6px;
    font-weight: 600;
}

.profit-up {
    color: #dc3545 !important;
    font-size: 11px;
    font-weight: bold;
}

.profit-down {
    color: #007bff;
    font-size: 11px;
    font-weight: bold;
}

.holiday {
    background: #f5f5f5 !important;
}

.holiday-name {
    font-size: 12px;
    color: #999;
    text-align: center;
    padding: 10px 4px;
}

.monthly-summary {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #dee2e6;
}

.summary-item {
    text-align: center;
}

.summary-label {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
}

.summary-value {
    color: #333;
    font-size: 18px;
    font-weight: bold;
}

/* 모바일 최적화 반응형 */
@media (max-width: 768px) {
    /* 터치 친화적 인터랙션 */
    * {
        -webkit-tap-highlight-color: rgba(255, 71, 87, 0.2);
        -webkit-touch-callout: none;
    }

    /* 부드러운 스크롤 */
    html {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    /* 모바일 헤더 최적화 */
    .header {
        position: sticky;
        top: 0;
        z-index: 1000;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        background: rgba(26, 26, 26, 0.95);
        border-bottom: 2px solid #ff4757;
    }

    .logo {
        color: #ff4757 !important;
        font-size: 1.3rem !important;
    }

    .logo i {
        font-size: 1.2rem !important;
        margin-right: 6px;
        color: #ff4757 !important;
    }

    .header-content {
        padding: 5px 0;
    }

    .container {
        padding: 0 15px;
    }
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .subtitle {
        font-size: 1.1rem;
    }

    .nav-links {
        display: none;
    }

    .header-buttons {
        gap: 10px;
    }

    .auth-btn {
        padding: 12px 20px;
        font-size: 12px;
        min-width: 110px;
        gap: 6px;
        letter-spacing: 0.3px;
    }

    .cta-button {
        padding: 12px 20px;
        font-size: 16px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        transition: all 0.2s ease;
    }

    .cta-button:active {
        transform: scale(0.98);
        background: #e63946;
    }

    .modal-content {
        width: 95%;
        padding: 30px 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .kakao-button {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        transition: all 0.3s ease;
    }

    .kakao-button:active {
        transform: scale(0.95);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }

    .kakao-button i {
        font-size: 1.3rem;
    }

    /* 모바일 폰트 최적화 */
    body {
        font-size: 16px;
        line-height: 1.6;
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }

    /* 모바일 입력 요소 최적화 */
    input, textarea, select {
        font-size: 16px;
        border-radius: 8px;
        padding: 12px;
        border: 2px solid #e0e0e0;
        transition: border-color 0.2s ease;
    }

    input:focus, textarea:focus, select:focus {
        border-color: #ff4757;
        outline: none;
        box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.1);
    }

    /* 아이폰 세이프 에어리어 대응 */
    .header {
        padding-top: env(safe-area-inset-top);
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }

    .kakao-button {
        bottom: calc(20px + env(safe-area-inset-bottom));
        right: calc(20px + env(safe-area-inset-right));
    }

    /* 달력 모바일 반응형 */
    .calendar-section {
        padding: 40px 10px;
        padding-bottom: calc(40px + env(safe-area-inset-bottom));
    }

    .calendar-container {
        max-width: 100%;
        overflow-x: hidden;
    }

    .ai-stockbot-calendar {
        padding: 10px;
        margin-top: 15px;
        border-radius: 15px;
    }

    .calendar-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }

    .calendar-month-title {
        font-size: 1.1rem;
        order: 0;
        flex: 1;
        text-align: center;
    }

    .calendar-nav-btn {
        padding: 8px 15px;
        font-size: 14px;
    }

    .calendar-month-title {
        font-size: 1.2rem;
        order: -1;
    }

    .calendar-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .calendar-table {
        font-size: 11px;
        min-width: 100%;
        table-layout: fixed;
    }

    .calendar-table th {
        padding: 8px 2px;
        font-size: 11px;
        width: 20%;
    }

    .calendar-table td {
        height: 55px;
        width: 20%;
        padding: 0;
        vertical-align: top;
    }

    .calendar-day {
        padding: 3px;
        min-height: 55px;
        font-size: 10px;
    }

    .day-num {
        font-size: 11px;
        margin-bottom: 2px;
    }

    .signal-link {
        font-size: 9px;
        padding: 4px 6px;
        margin: 2px 0;
        line-height: 1.2;
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        transition: all 0.2s ease;
        min-height: 20px;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
        max-width: 100%;
    }

    .signal-link:active {
        transform: scale(0.95);
        background: rgba(255, 71, 87, 0.3);
    }

    .closed-info {
        min-height: 20px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 4px 6px !important;
        font-size: 9px !important;
    }

    .monthly-summary {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 8px;
        margin-top: 15px;
        padding: 15px;
    }

    .monthly-summary .summary-item:nth-child(1) { grid-column: 1; grid-row: 1; }
    .monthly-summary .summary-item:nth-child(2) { grid-column: 2; grid-row: 1; }
    .monthly-summary .summary-item:nth-child(3) { grid-column: 3; grid-row: 1; }
    .monthly-summary .summary-item:nth-child(4) { grid-column: 1; grid-row: 2; }
    .monthly-summary .summary-item:nth-child(5) { grid-column: 2; grid-row: 2; }

    /* 작은 화면 (아이폰 SE 등) 최적화 */
    @media (max-width: 480px) {
        .hero h1 {
            font-size: 2rem;
            line-height: 1.2;
        }

        .hero .subtitle {
            font-size: 1rem;
        }

        .container {
            padding: 0 10px;
        }

        .auth-btn {
            padding: 10px 16px;
            font-size: 11px;
            min-width: 90px;
        }

        .cta-button {
            padding: 10px 16px;
            font-size: 14px;
        }

        .calendar-section {
            padding: 30px 5px;
        }

        .ai-stockbot-calendar {
            padding: 8px;
            margin-top: 10px;
        }

        .calendar-table th {
            padding: 6px 1px;
            font-size: 10px;
        }

        .calendar-table td {
            height: 45px;
        }

        .calendar-day {
            min-height: 45px;
            padding: 2px;
        }

        .day-num {
            font-size: 10px;
            margin-bottom: 1px;
        }

        .signal-link {
            font-size: 8px;
            padding: 2px 4px;
            margin: 1px 0;
            min-height: 16px;
        }

        .closed-info {
            font-size: 8px !important;
            padding: 2px 4px !important;
            min-height: 16px !important;
        }

        /* 모바일에서 익절/손절 버튼 크기 축소 */
        .badge-profit, .badge-loss {
            padding: 1px 3px !important;
            font-size: 8px !important;
            margin-right: 2px !important;
            border-radius: 2px !important;
        }
        .monthly-summary {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            grid-template-rows: repeat(2, 1fr);
            gap: 6px;
            padding: 12px;
        }

        .monthly-summary .summary-item:nth-child(1) { grid-column: 1; grid-row: 1; }
        .monthly-summary .summary-item:nth-child(2) { grid-column: 2; grid-row: 1; }
        .monthly-summary .summary-item:nth-child(3) { grid-column: 3; grid-row: 1; }
        .monthly-summary .summary-item:nth-child(4) { grid-column: 1; grid-row: 2; }
        .monthly-summary .summary-item:nth-child(5) { grid-column: 2; grid-row: 2; }
    }

    .summary-item {
        padding: 8px;
    }

    .summary-label {
        font-size: 10px;
        margin-bottom: 4px;
    }

    .summary-value {
        font-size: 12px;
    }

    .day-num {
        font-size: 12px;
    }


    /* 비교 섹션 모바일 반응형 */
    .comparison {
        padding: 60px 15px;
    }

    .comparison-table {
        font-size: 12px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 12px 8px;
    }

    .comparison-summary {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 40px;
    }

    .summary-card {
        padding: 25px;
    }

    .summary-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }

    .summary-icon i {
        font-size: 1.2rem;
    }

    .summary-card h3 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    /* 리뷰 모바일 반응형 */
    .reviews {
        padding: 60px 15px;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}
