/* 기존 스타일 유지, 변경된 부분만 추가/수정 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', sans-serif;
    color: #212529;
    line-height: 1.6;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: white;
    padding: 20px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 500;
    color: #0F4C4C;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -1px;
}

.logo-symbol {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

nav {
    display: flex;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: #495057;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #167064;
}

.header-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 5px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-login {
    background: transparent;
    color: #495057;
    border: 1px solid #dee2e6;
}

.btn-signup {
    background: #167064;
    color: white;
}

.btn-signup:hover {
    background: #0F4C4C;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 112, 100, 0.25);
}

.menu-toggle {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #495057;
}

.hero {
    background: url('./img/hero.jpg') no-repeat center center/cover;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #ffffff;
}

.hero-text p {
    font-size: 18px;
    color: #e9ecef;
    margin-bottom: 30px;
}

.email-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.email-form input {
    flex: 1;
    padding: 15px 20px;
    border: 1px solid #ced4da;
    border-radius: 30px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.email-form input::placeholder {
    color: #999;
}

.email-form input:focus {
    border-color: #167064;
    outline: none;
}

.email-form button {
    padding: 15px 40px;
    background: #167064;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.email-form button:hover {
    background: #0F4C4C;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 112, 100, 0.25);
}

.hero-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.stat-badge {
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    font-size: 14px;
    color: #212529;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.hero-image {
    position: relative;
}

.dashboard-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* ========== 시뮬레이션 안내 스타일 - 개선된 버전 ========== */
.simulator-guide {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 40px;
    text-align: center;
    margin: 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.simulator-guide::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.simulator-guide-content {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
}

.simulator-guide h3 {
    font-size: 32px;
    margin-bottom: 15px;
    color: white;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    animation: fadeInDown 0.8s ease;
}

.simulator-guide-subtitle {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.simulator-guide h4 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #ffd700;
    font-weight: 700;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.step-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease both;
    position: relative;
    overflow: hidden;
}

.step-box:nth-child(1) { animation-delay: 0.5s; }
.step-box:nth-child(2) { animation-delay: 0.6s; }
.step-box:nth-child(3) { animation-delay: 0.7s; }
.step-box:nth-child(4) { animation-delay: 0.8s; }

.step-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.step-box:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    border-color: rgba(255, 255, 255, 0.6);
}

.step-box:hover::before {
    opacity: 1;
}

.step-number-badge {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    font-weight: bold;
    color: #764ba2;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.step-box h5 {
    font-size: 18px;
    margin-bottom: 15px;
    color: white;
    font-weight: 700;
}

.step-box p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.9;
    margin: 0;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== 밈코인 리스트 섹션 ========== */
.meme-coins-section {
    padding: 100px 0;
    background: #f8f9fa;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.section-title p {
    color: #6c757d;
    font-size: 18px;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 12px 30px;
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    color: #495057;
    transition: all 0.3s;
}

.filter-tab:hover, .filter-tab.active {
    background: #167064;
    color: white;
    border-color: #167064;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 112, 100, 0.25);
}

.coins-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.coin-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.coin-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(22, 112, 100, 0.1), transparent);
    transition: left 0.5s;
}

.coin-card.updating::before {
    left: 100%;
}

.coin-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(22, 112, 100, 0.2);
}

.coin-rank {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #167064 0%, #0F4C4C 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 14px;
    box-shadow: 0 3px 10px rgba(22, 112, 100, 0.3);
    z-index: 10;
}

.coin-rank.rank-up {
    animation: rankUp 0.5s ease;
}

.coin-rank.rank-down {
    animation: rankDown 0.5s ease;
}

@keyframes rankUp {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes rankDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

.coin-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-left: 45px;
}

.coin-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E6F2F0 0%, #d4e9e6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.coin-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 3px;
}

.coin-symbol {
    font-size: 13px;
    color: #6c757d;
    font-weight: 600;
}

.coin-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 20px;
}

.price-value {
    font-size: 24px;
    font-weight: 800;
    color: #1a1a1a;
}

.price-change {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
}

.price-change.up {
    background: #d4edda;
    color: #155724;
}

.price-change.down {
    background: #f8d7da;
    color: #721c24;
}

.coin-chart {
    height: 80px;
    margin-bottom: 20px;
}

.coin-metrics {
    margin-bottom: 20px;
}

.metric-item {
    margin-bottom: 15px;
}

.metric-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 13px;
}

.metric-name {
    color: #6c757d;
    font-weight: 600;
}

.metric-value {
    color: #167064;
    font-weight: 700;
}

.metric-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.metric-fill {
    height: 100%;
    background: linear-gradient(90deg, #167064 0%, #0F4C4C 100%);
    border-radius: 10px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.metric-fill.low {
    background: linear-gradient(90deg, #dc3545 0%, #a71d2a 100%);
}

.metric-fill.medium {
    background: linear-gradient(90deg, #ffc107 0%, #e0a800 100%);
}

.metric-fill.high {
    background: linear-gradient(90deg, #28a745 0%, #1e7e34 100%);
}

.metric-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.coin-holders {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 600;
}

.coin-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.coin-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.btn-select {
    background: #e9ecef;
    color: #495057;
}

.btn-select:hover {
    background: #dee2e6;
    transform: scale(1.05);
}

.btn-select.selected {
    background: #167064;
    color: white;
}

.btn-trade {
    background: linear-gradient(135deg, #167064 0%, #0F4C4C 100%);
    color: white;
}

.btn-trade:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(22, 112, 100, 0.3);
}

.coin-card.high-recommend {
    animation: glow 1.5s infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 4px 15px rgba(22, 112, 100, 0.08);
    }
    to {
        box-shadow: 0 8px 25px rgba(22, 112, 100, 0.4);
    }
}

.loading-indicator {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e9ecef;
    border-top-color: #167064;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.update-timer {
    text-align: center;
    margin-top: 30px;
    color: #6c757d;
    font-size: 14px;
    font-weight: 600;
}

.timer-circle {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid #e9ecef;
    border-top-color: #167064;
    margin-right: 10px;
    vertical-align: middle;
    animation: spin 30s linear infinite;
}

/* 나머지 기존 스타일들 */
.why-section {
    padding: 100px 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.features-grid2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.feature-card {
    text-align: center;
    padding: 40px 30px;
    border-radius: 20px;
    background: #ffffff;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: #E6F2F0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.feature-card p {
    color: #6c757d;
    font-size: 15px;
}

.steps-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #167064 0%, #0F4C4C 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.steps-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    animation: pulse 5s infinite;
}

.steps-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    animation: pulse 7s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.2; }
    100% { transform: scale(1); opacity: 0.5; }
}

.steps-section .section-title h2,
.steps-section .section-title p {
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.steps-section .section-title h2 {
    font-size: 40px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.step-card {
    text-align: center;
    padding: 40px 30px;
    background: rgba(255,255,255,0.15);
    border-radius: 25px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.step-number {
    width: 90px;
    height: 90px;
    background: rgba(255,255,255,0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 42px;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.step-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.step-card p {
    opacity: 0.9;
}

footer {
    background: #212529;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #343a40;
    color: #6c757d;
}

/* ========== 장바구니 스타일 ========== */
.cart-sidebar {
    position: fixed;
    top: 100px;
    right: -400px;
    width: 350px;
    height: calc(100vh - 120px);
    background: white;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    padding: 30px;
    transition: right 0.5s ease;
    z-index: 999;
    overflow-y: auto;
    border-radius: 20px 0 0 20px;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.cart-header h2 {
    font-size: 24px;
    color: #167064;
}

.cart-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
}

.cart-items {
    margin-bottom: 30px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    opacity: 0;
    transform: translateY(20px);
    animation: cartItemEnter 0.5s forwards;
}

@keyframes cartItemEnter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cart-item-logo {
    width: 40px;
    height: 40px;
    background: #E6F2F0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.cart-item-info h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.cart-item-info p {
    font-size: 13px;
    color: #6c757d;
}

.cart-remove {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 18px;
    margin-left: auto;
}

.cart-summary {
    border-top: 1px solid #dee2e6;
    padding-top: 20px;
    text-align: center;
}

.cart-count {
    font-size: 16px;
    color: #167064;
    margin-bottom: 15px;
}

.btn-invest {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #167064 0%, #0F4C4C 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    opacity: 0.5;
    pointer-events: none;
}

.btn-invest.active {
    opacity: 1;
    pointer-events: auto;
}

.btn-invest:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(22, 112, 100, 0.3);
}

/* ========== 매수 시뮬레이션 오버레이 - 개선된 버전 ========== */
.purchase-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.purchase-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 30px;
    padding: 60px;
    text-align: center;
    max-width: 800px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.5s;
    position: relative;
    overflow: hidden;
}

.purchase-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(22, 112, 100, 0.1) 0%, transparent 70%);
    animation: rotate 10s linear infinite;
}

.purchase-content.active {
    transform: scale(1);
    opacity: 1;
}

.purchase-content h2 {
    font-size: 36px;
    color: #167064;
    margin-bottom: 40px;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.purchase-progress-container {
    position: relative;
    z-index: 1;
}

.purchase-list {
    margin-bottom: 40px;
    display: grid;
    gap: 20px;
}

.purchase-item {
    background: white;
    border-radius: 20px;
    padding: 25px 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 20px;
    opacity: 0;
    transform: translateX(-50px);
    position: relative;
    overflow: hidden;
}

.purchase-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, rgba(22, 112, 100, 0.1) 0%, rgba(22, 112, 100, 0.05) 100%);
    transition: width 1.5s ease;
}

.purchase-item.animate {
    animation: purchaseEnter 0.8s forwards ease-out;
}

.purchase-item.completed::before {
    width: 100%;
}

@keyframes purchaseEnter {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.purchase-item-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #E6F2F0 0%, #d4e9e6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(22, 112, 100, 0.2);
    position: relative;
    z-index: 1;
}

.purchase-item-details {
    flex: 1;
    text-align: left;
    position: relative;
    z-index: 1;
}

.purchase-item-name {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.purchase-item-symbol {
    font-size: 14px;
    color: #6c757d;
    font-weight: 600;
}

.purchase-item-status {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.status-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #e9ecef;
    border-top-color: #167064;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.status-text {
    font-size: 14px;
    color: #6c757d;
    font-weight: 600;
}

.status-text.processing {
    color: #ffc107;
}

.status-text.completed {
    color: #28a745;
}

.status-check {
    font-size: 28px;
    color: #28a745;
    animation: checkBounce 0.6s ease;
}

@keyframes checkBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.purchase-progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
}

.purchase-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #167064 0%, #0F4C4C 100%);
    width: 0%;
    transition: width 0.5s ease;
    position: relative;
}

.purchase-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 1.5s infinite;
}

.btn-close-purchase {
    padding: 15px 50px;
    background: linear-gradient(135deg, #167064 0%, #0F4C4C 100%);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(22, 112, 100, 0.3);
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(20px);
}

.btn-close-purchase.show {
    opacity: 1;
    transform: translateY(0);
    animation: buttonAppear 0.5s ease;
}

@keyframes buttonAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-close-purchase:hover {
    background: linear-gradient(135deg, #0F4C4C 0%, #167064 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(22, 112, 100, 0.4);
}

/* ========== 추적 화면 스타일 - 개선된 버전 ========== */
.tracking-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.tracking-content {
    background: white;
    border-radius: 30px;
    padding: 40px;
    text-align: center;
    max-width: 95vw;
    max-height: 90vh;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.5s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tracking-content.active {
    transform: scale(1);
    opacity: 1;
}

.tracking-content h2 {
    font-size: 28px;
    color: #167064;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.tracking-list {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 20px 10px;
    flex: 1;
    align-items: center;
}

.tracking-list::-webkit-scrollbar {
    height: 10px;
}

.tracking-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.tracking-list::-webkit-scrollbar-thumb {
    background: #167064;
    border-radius: 10px;
}

.tracking-list::-webkit-scrollbar-thumb:hover {
    background: #0F4C4C;
}

.tracking-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 280px;
    max-width: 280px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.tracking-item:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 12px 35px rgba(22, 112, 100, 0.25);
}

.tracking-item .coin-header {
    padding-left: 0;
    margin-bottom: 10px;
}

.tracking-item .coin-logo {
    width: 45px;
    height: 45px;
    font-size: 22px;
}

.tracking-item .coin-info h3 {
    font-size: 17px;
}

.tracking-item .coin-price {
    margin-bottom: 10px;
}

.tracking-item .price-value {
    font-size: 20px;
}

.tracking-item .price-change {
    font-size: 12px;
    padding: 3px 8px;
}

.tracking-item .coin-chart {
    height: 100px;
    margin-bottom: 10px;
}

.tracking-item .profit {
    font-size: 20px;
    font-weight: bold;
    color: #28a745;
    margin: 10px 0;
    
}

@keyframes profitGlow {
    from {
        text-shadow: 0 0 5px #28a745;
    }
    to {
        text-shadow: 0 0 15px #28a745;
    }
}

.tracking-item .coin-actions {
    grid-template-columns: 1fr;
    margin-top: auto;
}

.tracking-item .btn-sell {
    background: linear-gradient(135deg, #dc3545 0%, #a71d2a 100%);
    color: white;
    padding: 10px 20px;
    font-size: 14px;
}

.tracking-item .btn-sell:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.btn-close-tracking {
    margin-top: 20px;
    padding: 12px 40px;
    background: #167064;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.btn-close-tracking:hover {
    background: #0F4C4C;
    transform: translateY(-2px);
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .coins-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid,
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .cart-sidebar {
        width: 300px;
        right: -300px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
        gap: 15px;
    }

    nav {
        display: none;
        width: 100%;
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 15px;
        padding: 20px 0;
        text-align: center;
    }

    .header-buttons {
        width: 100%;
        justify-content: center;
    }

    .menu-toggle {
        display: block;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .coins-grid,
    .features-grid,
    .steps-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .email-form {
        flex-direction: column;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
        top: 80px;
        height: calc(100vh - 80px);
        border-radius: 0;
    }

    .simulator-guide {
        padding: 40px 20px;
    }

    .simulator-guide h3 {
        font-size: 24px;
    }

    .simulator-guide h4 {
        font-size: 20px;
    }

    .steps-container {
        grid-template-columns: 1fr;
    }

    .tracking-content {
        padding: 30px 20px;
    }

    .tracking-content h2 {
        font-size: 22px;
    }

    .tracking-item {
        min-width: 240px;
        max-width: 240px;
    }

    .purchase-content {
        padding: 40px 30px;
    }

    .purchase-content h2 {
        font-size: 28px;
    }

    .purchase-item {
        padding: 20px;
    }

    .purchase-item-name {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .cart-sidebar {
        width: 85%; /* 100%에서 85%로 변경 */
        right: -85%; /* -100%에서 -85%로 변경 */
        top: 120px;
        height: calc(100vh - 80px);
        border-radius: 0;
        box-shadow: -5px 0 20px rgba(0,0,0,0.3); /* 그림자 강화 */
    }
    
    .cart-sidebar.open {
        right: 0;
    }
}

/* 모바일에서 장바구니 배경 오버레이 추가 */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-overlay.show {
    display: block;
    opacity: 1;
}

@media (max-width: 768px) {
    .cart-sidebar {
        z-index: 999; /* 오버레이보다 위에 */
    }
}