:root {
    --bg: #050508;
    --surface: #0a0a0f;
    --surface2: #0f0f18;
    --surface3: #14141f;
    --border: #1a1a2e;
    --border2: #252540;
    --text: #e8e8ff;
    --text2: #8888aa;
    --text3: #444466;
    --neon: #7b2fff;
    --neon2: #9d50ff;
    --cyan: #00f5ff;
    --cyan2: #00c8d4;
    --green: #00ff88;
    --green2: #00cc6a;
    --red: #ff3366;
    --red2: #cc1144;
    --yellow: #ffd700;
    --orange: #ff8c00;
    --pink: #ff006e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 배경 효과 */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 40% at 20% 10%, rgba(123, 47, 255, 0.07) 0%, transparent 60%),
        radial-gradient(ellipse 50% 30% at 80% 80%, rgba(0, 245, 255, 0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(123, 47, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(123, 47, 255, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* 헤더 */
header {
    border-bottom: 1px solid var(--border2);
    padding: 0;
    background: rgba(5, 5, 8, 0.97);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(123, 47, 255, 0.3);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 58px;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 3px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--neon), var(--cyan));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 0 12px rgba(123, 47, 255, 0.5);
}

.logo span {
    color: var(--cyan);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 반응형 유틸리티 */
.mobile-only {
    display: none;
}

.desktop-only {
    display: inline-flex;
}

/* 요약 */
.summary-bar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    background: var(--border2);
    border: 1px solid var(--border2);
    border-radius: 8px;
    overflow: hidden;
    margin: 20px 0;
    box-shadow: 0 0 30px rgba(123, 47, 255, 0.08);
}

.summary-item {
    background: var(--surface);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    overflow: hidden;
    transition: background 0.2s;
}

.summary-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    opacity: 0;
    transition: opacity 0.2s;
}

.summary-item:hover {
    background: var(--surface2);
}

.summary-item:hover::before {
    opacity: 1;
}

.si-1::before {
    background: linear-gradient(90deg, var(--green), var(--cyan));
}

.si-2::before {
    background: linear-gradient(90deg, var(--neon), var(--pink));
}

.si-3::before {
    background: linear-gradient(90deg, var(--cyan), var(--neon));
}

.si-4::before {
    background: linear-gradient(90deg, var(--yellow), var(--orange));
}

.si-5::before {
    background: linear-gradient(90deg, var(--pink), var(--red));
}

.summary-label {
    font-size: 9px;
    color: #fff;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.summary-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.summary-value.green {
    color: var(--green);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.summary-value.cyan {
    color: var(--cyan);
    text-shadow: 0 0 10px rgba(0, 245, 255, 0.3);
}

.summary-value.neon {
    color: var(--neon2);
}

.summary-value.yellow {
    color: var(--yellow);
}

.summary-value.red {
    color: var(--red);
    text-shadow: 0 0 10px rgba(255, 51, 102, 0.3);
}

.summary-value.orange {
    color: var(--orange);
    text-shadow: 0 0 10px rgba(255, 140, 0, 0.3);
}

.summary-sub {
    font-size: 10px;
    color: var(--text2);
}

/* 전광판 (Ticker Group - 4 Rows) */
.ticker-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 24px;
}

.ticker-row {
    display: flex;
    align-items: center;
    background: rgba(10, 10, 15, 0.6);
    border: 1px solid rgba(123, 47, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    height: 38px;
    backdrop-filter: blur(10px);
    transition: transform 0.2s, border-color 0.2s;
}

.ticker-row:hover {
    border-color: rgba(123, 47, 255, 0.3);
    background: rgba(15, 15, 25, 0.8);
}

.ticker-label {
    width: 90px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.5px;
    flex-shrink: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.03);
}

.ticker-label.upbit {
    color: #00b3ff;
    text-shadow: 0 0 8px rgba(0, 179, 255, 0.4);
}

.ticker-label.bithumb {
    color: #ff9d00;
    text-shadow: 0 0 8px rgba(255, 157, 0, 0.4);
}

.ticker-label.coinone {
    color: #2e9aff;
    text-shadow: 0 0 8px rgba(46, 154, 255, 0.4);
}

.ticker-label.korbit {
    color: #a670ff;
    text-shadow: 0 0 8px rgba(166, 112, 255, 0.4);
}

.ticker-container {
    flex: 1;
    height: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

/* 페이드 효과 */
.ticker-container::before,
.ticker-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 60px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.ticker-container::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg), transparent);
}

.ticker-container::after {
    right: 0;
    background: linear-gradient(-90deg, var(--bg), transparent);
}

.ticker-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: ticker-slide 60s linear infinite;
    padding-left: 20px;
}

.ticker-track:hover {
    animation-play-state: paused;
}

@keyframes ticker-slide {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 0 24px;
    font-size: 11px;
    font-weight: 500;
    border-right: 1px solid rgba(255, 255, 255, 0.03);
}

.ticker-sym {
    color: var(--text);
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.ticker-price {
    font-variant-numeric: tabular-nums;
    color: var(--text2);
    font-weight: 600;
}

.ticker-rate {
    font-size: 10px;
    font-weight: 700;
}

.ticker-rate.up {
    color: #ff3b3b;
    text-shadow: 0 0 5px rgba(255, 59, 59, 0.3);
}

.ticker-rate.down {
    color: #2e9aff;
    text-shadow: 0 0 5px rgba(46, 154, 255, 0.3);
}

.ticker-rate.zero {
    color: var(--text3);
}

/* 탭 */
.tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 20px;
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: 6px;
    padding: 4px;
    width: fit-content;
}

.tab-btn {
    padding: 7px 18px;
    background: none;
    border: none;
    border-radius: 4px;
    color: var(--text2);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    cursor: pointer;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: var(--text);
}

.tab-btn.active {
    background: linear-gradient(135deg, rgba(123, 47, 255, 0.3), rgba(0, 245, 255, 0.1));
    color: var(--cyan);
    box-shadow: 0 0 8px rgba(0, 245, 255, 0.1);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 입력 폼 */
.form-card {
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon), var(--cyan), transparent);
    opacity: 0.5;
}

.form-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: var(--text2);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    align-items: end;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

label {
    font-size: 9px;
    color: #fff;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

input,
select,
textarea {
    background: var(--surface2);
    border: 1px solid var(--border2);
    border-radius: 4px;
    color: var(--text);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    padding: 8px 10px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

input:focus,
select:focus {
    border-color: var(--neon);
    box-shadow: 0 0 8px rgba(123, 47, 255, 0.2);
}

input::placeholder {
    color: var(--text3);
}

/* 날짜 입력창 달력 아이콘 색상 변경 (흰색) */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

select option {
    background: var(--surface2);
}

.auto-input {
    color: var(--cyan) !important;
}

/* 버튼 */
.btn {
    padding: 8px 18px;
    border: none;
    border-radius: 4px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-neon {
    background: linear-gradient(135deg, var(--neon), var(--cyan2));
    color: #000;
    box-shadow: 0 0 16px rgba(123, 47, 255, 0.4);
}

.btn-neon:hover {
    box-shadow: 0 0 24px rgba(123, 47, 255, 0.6);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border2);
    color: var(--text2);
}

.btn-outline:hover {
    border-color: var(--text2);
    color: var(--text);
}

.btn-red {
    background: transparent;
    border: 1px solid rgba(255, 51, 102, 0.4);
    color: var(--red);
}

.btn-red:hover {
    background: rgba(255, 51, 102, 0.1);
}

/* 필터 */
.filter-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-chip {
    padding: 4px 12px;
    border: 1px solid var(--border2);
    border-radius: 20px;
    background: transparent;
    color: var(--text2);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.15s;
    letter-spacing: 0.5px;
}

.filter-chip:hover {
    border-color: var(--neon);
    color: var(--neon2);
}

.filter-chip.active {
    background: rgba(123, 47, 255, 0.2);
    border-color: var(--neon);
    color: var(--neon2);
    box-shadow: 0 0 8px rgba(123, 47, 255, 0.2);
}

.filter-search {
    margin-left: auto;
    width: 180px;
}

/* 테이블 */
.table-wrap {
    border: 1px solid var(--border2);
    border-radius: 8px;
    overflow: hidden;
    overflow-x: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1000px;
}

thead tr {
    background: var(--surface2);
    border-bottom: 1px solid var(--border2);
}

th {
    padding: 10px 12px;
    text-align: center;
    font-size: 9px;
    color: var(--text3);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    white-space: nowrap;
}

th.num {
    text-align: center;
}

tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
    cursor: pointer;
}

tbody tr:hover {
    background: rgba(123, 47, 255, 0.08);
}

tbody tr:last-child {
    border-bottom: none;
}

tbody tr:hover {
    background: rgba(123, 47, 255, 0.05);
}

td {
    padding: 10px 12px;
    color: var(--text2);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

td.num {
    text-align: center;
}

/* 컬럼 구분선 */
.divider-r {
    border-right: 1px solid var(--border2) !important;
}

td.bold {
    color: var(--text);
    font-weight: 500;
}

.coin-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px 3px 3px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid;
}

.coin-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

.badge-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.badge-hold {
    background: rgba(123, 47, 255, 0.15);
    color: var(--neon2);
    border: 1px solid rgba(123, 47, 255, 0.3);
}

.badge-sold {
    background: rgba(0, 255, 136, 0.1);
    color: var(--green);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.badge-loss {
    background: rgba(255, 51, 102, 0.1);
    color: var(--red);
    border: 1px solid rgba(255, 51, 102, 0.3);
}

.profit-pos {
    color: var(--green);
}

.profit-neg {
    color: var(--red);
}

.profit-zero {
    color: var(--text3);
}

.btn-sm {
    padding: 3px 8px;
    border-radius: 3px;
    border: 1px solid var(--border2);
    background: transparent;
    color: var(--text3);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-sm.sell:hover {
    color: var(--cyan);
    border-color: var(--cyan);
}

.btn-sm.del:hover {
    color: var(--red);
    border-color: var(--red);
}

/* 차트 영역 */
.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.chart-card {
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: 8px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.chart-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(123, 47, 255, 0.3), transparent);
}

.chart-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 9px;
    color: #fff;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.bar-chart {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bar-label {
    width: 80px;
    font-size: 10px;
    color: var(--text2);
    text-align: right;
    flex-shrink: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bar-track {
    flex: 1;
    height: 4px;
    background: var(--surface3);
    border-radius: 2px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.bar-val {
    width: 80px;
    font-size: 10px;
    color: var(--text2);
    text-align: right;
    flex-shrink: 0;
}

/* 포트폴리오 도넛 */
.donut-wrap {
    display: flex;
    align-items: center;
    gap: 24px;
}

.donut-legend {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legend-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    flex-shrink: 0;
}

.legend-name {
    flex: 1;
    font-size: 10px;
    color: var(--text2);
}

.legend-pct {
    font-size: 10px;
    color: var(--text);
    font-weight: 600;
}

/* DCA 계산기 */
.dca-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.filter-search {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 6px 12px;
    color: var(--text);
    font-size: 11px;
    width: 160px;
    outline: none;
    transition: all 0.2s;
}

.filter-search:focus {
    border-color: var(--neon);
    box-shadow: 0 0 8px var(--neon-glow);
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: auto;
}

.search-reset {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: var(--text3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    transition: color 0.2s;
}

.search-reset:hover {
    color: var(--red);
}

.search-reset i {
    width: 14px;
    height: 14px;
}

.dca-inputs {
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dca-result {
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.result-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.result-stat:last-child {
    border-bottom: none;
}

.result-label {
    font-size: 10px;
    color: var(--text3);
    letter-spacing: 1px;
}

.result-val {
    font-size: 13px;
    color: var(--text);
    font-weight: 600;
}

.result-val.green {
    color: var(--green);
}

.result-val.red {
    color: var(--red);
}

.result-val.cyan {
    color: var(--cyan);
}

.dca-timeline {
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: 8px;
    padding: 20px;
    margin-top: 16px;
    overflow-x: auto;
}

.timeline-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 9px;
    color: var(--text3);
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.dca-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.dca-table th {
    padding: 8px 10px;
    font-size: 9px;
    color: var(--text3);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: var(--surface2);
    text-align: right;
}

.dca-table th:first-child {
    text-align: left;
}

.dca-table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
    font-size: 11px;
    color: var(--text2);
    text-align: right;
}

.dca-table td:first-child {
    text-align: left;
    color: var(--text);
}

.dca-table tr:last-child td {
    border-bottom: none;
}

/* 모달 */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal-overlay.open {
    display: flex;
}

.modal {
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: 10px;
    padding: 28px;
    width: 420px;
    max-width: 92vw;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 50px 100px rgba(0, 0, 0, 1),
        0 20px 50px rgba(255, 255, 255, 0.12),
        0 0 50px rgba(255, 255, 255, 0.12);
    transform: translateY(-8px);
    transition: transform 0.3s ease-out;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--surface2) transparent transparent transparent;
}

/* 전략 관리 탭 */
.strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.strategy-card {
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: 8px;
    padding: 16px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.strategy-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(123, 47, 255, 0.15);
    border-color: rgba(123, 47, 255, 0.4);
}

.strategy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--surface3);
}

.strategy-card.active::before {
    background: var(--neon);
    box-shadow: 0 0 10px var(--neon);
}

.strategy-card.completed::before {
    background: var(--green);
    box-shadow: 0 0 10px var(--green);
}

.strategy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--border2);
}

.strategy-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}

.strategy-status {
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: 1px;
}

.strategy-status.active {
    background: rgba(123, 47, 255, 0.1);
    color: var(--neon2);
    border: 1px solid rgba(123, 47, 255, 0.3);
}

.strategy-status.completed {
    background: rgba(0, 255, 136, 0.1);
    color: var(--green);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.strategy-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 11px;
}

.strategy-row span:first-child {
    color: var(--text2);
}

.strategy-row span:last-child {
    color: var(--text);
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}

/* 개선된 빈 화면 디자인 */
.empty-state-v2 {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--border2);
    border-radius: 12px;
    margin: 20px 0;
}

.empty-icon {
    width: 48px;
    height: 48px;
    color: var(--neon);
    margin-bottom: 20px;
    filter: drop-shadow(0 0 8px rgba(123, 47, 255, 0.5));
    opacity: 0.8;
}

.empty-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.empty-desc {
    font-size: 12px;
    color: var(--text2);
    text-align: center;
    line-height: 1.8;
}

.empty-desc .highlight {
    color: var(--neon2);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon), var(--cyan), transparent);
}

.modal-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
}

.modal-info {
    background: var(--surface2);
    border-radius: 6px;
    padding: 14px;
    margin-bottom: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.mi-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mi-label {
    font-size: 9px;
    color: var(--text3);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.mi-val {
    font-size: 13px;
    color: var(--text);
}

.preview-box {
    margin-top: 12px;
    padding: 14px;
    background: var(--surface2);
    border-radius: 6px;
    border-left: 3px solid var(--neon);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.preview-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.preview-row span:first-child {
    color: var(--text3);
}

.modal-actions {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.modal-actions .btn {
    flex: 1;
    text-align: center;
}

/* 빈 상태 */
.empty-state {
    padding: 48px 20px;
    text-align: center;
    color: var(--text3);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    width: 100%;
}

/* 토스트 */
#toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--surface2);
    border: 1px solid var(--neon);
    color: var(--neon2);
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 11px;
    z-index: 999;
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.3s;
    pointer-events: none;
    box-shadow: 0 0 20px rgba(123, 47, 255, 0.3);
}

#toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* 스크롤바 */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border2);
    border-radius: 4px;
}

/* 반응형 */
@media (max-width: 900px) {
    .summary-bar {
        grid-template-columns: repeat(3, 1fr);
    }

    .charts-grid {
        grid-template-columns: 1fr;
    }

    .dca-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .summary-bar {
        grid-template-columns: 1fr 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr 1fr;
    }

    .header-right .btn-outline:not(.mobile-only) {
        display: none;
    }
}

/* 코인 컬러 */
.coin-BTC {
    background: rgba(247, 147, 26, 0.1);
    border-color: rgba(247, 147, 26, 0.4);
    color: #f7931a;
}

.coin-BTC .coin-icon {
    background: rgba(247, 147, 26, 0.2);
    color: #f7931a;
}

.coin-ETH {
    background: rgba(98, 126, 234, 0.1);
    border-color: rgba(98, 126, 234, 0.4);
    color: #627eea;
}

.coin-ETH .coin-icon {
    background: rgba(98, 126, 234, 0.2);
    color: #627eea;
}

.coin-XRP {
    background: rgba(0, 170, 228, 0.1);
    border-color: rgba(0, 170, 228, 0.4);
    color: #00aae4;
}

.coin-XRP .coin-icon {
    background: rgba(0, 170, 228, 0.2);
    color: #00aae4;
}

.coin-SOL {
    background: rgba(153, 69, 255, 0.1);
    border-color: rgba(153, 69, 255, 0.4);
    color: #9945ff;
}

.coin-SOL .coin-icon {
    background: rgba(153, 69, 255, 0.2);
    color: #9945ff;
}

.coin-DOGE {
    background: rgba(195, 163, 46, 0.1);
    border-color: rgba(195, 163, 46, 0.4);
    color: #c3a32e;
}

.coin-DOGE .coin-icon {
    background: rgba(195, 163, 46, 0.2);
    color: #c3a32e;
}

.coin-OTHER {
    background: rgba(136, 136, 170, 0.1);
    border-color: rgba(136, 136, 170, 0.3);
    color: var(--text2);
}

.coin-OTHER .coin-icon {
    background: rgba(136, 136, 170, 0.1);
    color: var(--text2);
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border2), transparent);
    margin: 20px 0;
}

.neon-text {
    color: var(--neon2);
    text-shadow: 0 0 8px rgba(123, 47, 255, 0.5);
}

.cyan-text {
    color: var(--cyan);
}

.up-arrow::before {
    content: '▲ ';
    font-size: 9px;
    color: var(--green);
}

.down-arrow::before {
    content: '▼ ';
    font-size: 9px;
    color: var(--red);
}

/* 수익률 진행바 */
.rate-bar-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rate-bar-track {
    width: 60px;
    height: 3px;
    background: var(--surface3);
    border-radius: 2px;
    overflow: hidden;
    flex-shrink: 0;
}

.rate-bar-fill {
    height: 100%;
    border-radius: 2px;
}

.canvas-donut {
    width: 120px !important;
    height: 120px !important;
    flex-shrink: 0;
}

/* 로딩 스피너 오버레이 */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 14, 0.85);
    backdrop-filter: blur(4px);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(123, 47, 255, 0.1);
    border-top: 3px solid var(--neon);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    box-shadow: 0 0 15px var(--neon-glow);
    margin-bottom: 20px;
}

.loading-text {
    font-family: "Orbitron", sans-serif;
    color: var(--neon);
    font-size: 14px;
    letter-spacing: 4px;
    text-shadow: 0 0 10px var(--neon-glow);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* ===== 모바일 반응형 ===== */
@media (max-width: 600px) {

    /* 헤더 2줄 레이아웃 */
    .header-inner {
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px 0;
        height: auto;
    }

    .logo-group {
        flex: 1 1 100%;
    }

    .logo {
        white-space: nowrap;
        font-size: 14px;
    }

    .header-right {
        flex: 1 1 100%;
        justify-content: flex-start;
    }

    /* 모바일/PC 전용 버튼 전환 */
    .mobile-only {
        display: inline-flex;
    }

    .desktop-only {
        display: none;
    }


    .form-grid {
        grid-template-columns: 1fr !important;
    }

    /* 전략 설정 체크박스 영역 span 2 → 1 */
    .form-grid .form-group[style*="span 2"] {
        grid-column: span 1 !important;
    }

    /* 테이블 가로 스크롤 */
    .table-wrap {
        overflow-x: auto;
    }

    /* 탭 버튼 폰트 크기 조정 */
    .tab-btn {
        font-size: 10px;
        padding: 6px 10px;
    }

    /* 요약 카드 그리드 1열 */
    .summary-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* 차트 그리드 1열 */
    .charts-grid {
        grid-template-columns: 1fr;
    }

    /* 전략 카드 그리드 1열 */
    .strategy-grid {
        grid-template-columns: 1fr;
    }
}