* {
    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 ========== */
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;
}

.logo-symbol {
    width: 36px;
    height: 36px;
}

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);
}

.menu-toggle {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
}

/* ========== Service Status ========== */
.service-status {
    background: linear-gradient(135deg, #167064 0%, #0F4C4C 100%);
    padding: 40px 0;
    color: white;
}

.status-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.status-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

.status-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.status-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.status-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.status-value {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 5px;
}

.status-subtext {
    font-size: 12px;
    opacity: 0.8;
}

/* ========== Tabs ========== */
.tabs-section {
    background: white;
    padding: 30px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: sticky;
    top: 90px;
    z-index: 999;
}

.tabs-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.tab-button {
    padding: 12px 35px;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    color: #495057;
    font-size: 16px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-button:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.tab-button.active {
    background: #167064;
    color: white;
    border-color: #167064;
    box-shadow: 0 4px 12px rgba(22, 112, 100, 0.25);
}

.tab-icon {
    font-size: 20px;
}

/* ========== Content ========== */
.content-section {
    padding: 60px 0;
    min-height: 600px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeInContent 0.5s;
}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.section-title p {
    color: #6c757d;
    font-size: 16px;
}

/* ========== Coins Grid ========== */
.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: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-1 { background: #FFD700; color: #333; }
.coin-rank.rank-2 { background: #C0C0C0; color: #333; }
.coin-rank.rank-3 { background: #CD7F32; color: white; }

.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);
    overflow: hidden;
}

.coin-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.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%);
}

.coin-details {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    font-size: 12px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.detail-label {
    color: #6c757d;
    font-weight: 600;
}

.detail-value {
    color: #1a1a1a;
    font-weight: 700;
}

.coin-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.badge {
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: #28a745;
    color: white;
}

.badge-warning {
    background: #ffc107;
    color: #333;
}

.badge-danger {
    background: #dc3545;
    color: white;
}

.badge-info {
    background: #17a2b8;
    color: white;
}

.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);
}

.update-info {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.loading-indicator {
    text-align: center;
    padding: 60px;
}

.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); }
}

/* ========== Empty State ========== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-title {
    font-size: 24px;
    font-weight: 700;
    color: #495057;
    margin-bottom: 10px;
}

.empty-description {
    color: #6c757d;
    font-size: 16px;
}

/* ========== Footer ========== */
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;
    overflow: hidden;
}

.cart-item-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.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;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.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;
    overflow: hidden;
}

.purchase-item-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.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;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.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;
}

.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);
}

.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;
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
    .status-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .coins-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;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .status-container,
    .coins-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .tabs-section {
        top: 80px;
    }
    
    .cart-sidebar {
        width: 85%;
        right: -85%;
        top: 120px;
        height: calc(100vh - 80px);
        border-radius: 0;
        box-shadow: -5px 0 20px rgba(0,0,0,0.3);
        z-index: 999;
    }
    
    .cart-sidebar.open {
        right: 0;
    }
    
    .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;
    }
}

/* ========== 설정 탭 스타일 ========== */
.settings-container {
    max-width: 800px;
    margin: 0 auto;
}

.settings-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.settings-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 10px;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: #167064;
    box-shadow: 0 0 0 3px rgba(22, 112, 100, 0.1);
}

.form-input[type="password"] {
    font-family: monospace;
}

.info-box {
    background: #e7f3ff;
    border-left: 4px solid #167064;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
}

.info-box-title {
    font-size: 14px;
    font-weight: 700;
    color: #167064;
    margin-bottom: 8px;
}

.info-box-list {
    list-style: none;
    padding-left: 0;
}

.info-box-list li {
    font-size: 13px;
    color: #495057;
    margin-bottom: 5px;
    padding-left: 20px;
    position: relative;
}

.info-box-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #167064;
    font-weight: bold;
}

.time-input-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #167064;
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.notification-type-settings {
    display: grid;
    gap: 20px;
}

.notification-type-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s;
}

.notification-type-item:hover {
    background: #e9ecef;
}

.notification-type-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.notification-type-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.notification-type-icon.buy-recommend {
    background: linear-gradient(135deg, #167064 0%, #0F4C4C 100%);
    color: white;
}

.notification-type-icon.sell-recommend {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: white;
}

.notification-type-icon.price-surge {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: white;
}

.notification-type-icon.price-drop {
    background: linear-gradient(135deg, #dc3545 0%, #a71d2a 100%);
    color: white;
}

.notification-type-text h4 {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 3px;
}

.notification-type-text p {
    font-size: 13px;
    color: #6c757d;
}

.btn-save {
    background: linear-gradient(135deg, #167064 0%, #0F4C4C 100%);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(22, 112, 100, 0.3);
}

/* ========== 수익률 통계 탭 스타일 ========== */
.statistics-container {
    max-width: 1000px;
    margin: 0 auto;
}

.stats-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(22, 112, 100, 0.15);
}

.stat-card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #E6F2F0 0%, #d4e9e6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px;
}

.stat-card-label {
    font-size: 14px;
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 10px;
}

.stat-card-value {
    font-size: 36px;
    font-weight: 800;
    color: #167064;
    margin-bottom: 5px;
}

.stat-card-subtext {
    font-size: 12px;
    color: #6c757d;
}

.chart-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.chart-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.chart-canvas {
    height: 300px !important;
    max-height: 300px;
}

.chart-section canvas {
    max-height: 300px !important;
}

.transaction-history {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.history-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
}

.history-table thead {
    background: #f8f9fa;
}

.history-table th {
    padding: 15px;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.history-table td {
    padding: 15px;
    font-size: 14px;
    color: #212529;
    border-bottom: 1px solid #e9ecef;
}

.history-table tbody tr:hover {
    background: #f8f9fa;
}

.transaction-type {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.transaction-type.buy {
    background: #d4edda;
    color: #155724;
}

.transaction-type.sell {
    background: #f8d7da;
    color: #721c24;
}




/* ========== 다이얼로그 스타일 ========== */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 1;
    animation: fadeIn 0.3s forwards;
}

.dialog-box {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    animation: scaleIn 0.3s forwards 0.1s;
}

@keyframes scaleIn {
    to {
        transform: scale(1);
    }
}

.dialog-icon {
    font-size: 64px;
    text-align: center;
    margin-bottom: 20px;
}

.dialog-title {
    font-size: 24px;
    font-weight: 800;
    color: #167064;
    text-align: center;
    margin-bottom: 25px;
}

.dialog-content {
    margin-bottom: 30px;
}

.dialog-notice {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.dialog-notice-title {
    font-size: 16px;
    font-weight: 700;
    color: #856404;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dialog-list {
    list-style: none;
    padding: 0;
}

.dialog-list li {
    font-size: 14px;
    color: #495057;
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
}

.dialog-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #167064;
    font-weight: bold;
    font-size: 18px;
}

.dialog-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-dialog-cancel {
    padding: 14px 40px;
    background: #e9ecef;
    color: #495057;
    border: 2px solid #dee2e6;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-dialog-cancel:hover {
    background: #dee2e6;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-dialog-agree {
    padding: 14px 50px;
    background: linear-gradient(135deg, #167064 0%, #0F4C4C 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-dialog-agree:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(22, 112, 100, 0.4);
}