 
:root {
    --primary: #1e3799;  
    --gold: #f6b93b;
    --green: #27ae60;
    --red: #e74c3c;
    --bg: #f1f2f6;
    --white: #ffffff;
}

body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background: var(--bg); color: #333; }

 
.ticker-wrap { position: fixed; top: 0; width: 100%; height: 36px; background: #2f3640; color: #fff; z-index: 999; overflow: hidden; line-height: 36px; border-bottom: 2px solid var(--gold); }
.ticker {
    display: inline-block;
    white-space: nowrap;
    animation: scroll 60s linear infinite; 
}
.ticker-item { display: inline-block; padding: 0 15px; font-size: 0.85rem; border-right: 1px solid #444; }
.t-val { color: var(--gold); font-weight: bold; margin: 0 5px; }
.t-rate.up { color: var(--green); } .t-rate.down { color: var(--red); }
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }  
}
 
.main-header { background: var(--white); margin-top: 36px; padding: 15px 0; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.header-flex { display: flex; justify-content: space-between; align-items: center; }
.logo h1 { margin: 0; font-size: 1.5rem; color: #2f3640; }
.logo span { color: var(--primary); }
nav a { text-decoration: none; color: #555; margin-left: 20px; font-weight: 500; transition: 0.3s; }
nav a:hover, nav a.active { color: var(--primary); }

 
.container { max-width: 900px; margin: 0 auto; padding: 0 15px; }
.mt-40 { margin-top: 40px; }

 
.market-box { background: var(--white); border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); overflow: hidden; }
.tabs { display: flex; background: #dfe4ea; }
.tab-btn { flex: 1; padding: 15px; border: none; background: transparent; font-size: 1rem; font-weight: bold; color: #57606f; cursor: pointer; transition: 0.3s; }
.tab-btn.active { background: var(--white); color: var(--primary); border-top: 3px solid var(--primary); }
.tab-content { padding: 0; }

 
.market-table { width: 100%; border-collapse: collapse; }
.market-table th { background: #f8f9fa; text-align: left; padding: 12px 20px; color: #7f8fa6; font-size: 0.85rem; text-transform: uppercase; }
.market-table td { padding: 15px 20px; border-bottom: 1px solid #f1f2f6; font-size: 1rem; }
.text-right { text-align: right; }
.val-sell { font-weight: 700; color: #2f3640; }
.text-green { color: var(--green); } .text-red { color: var(--red); }
.last-update { padding: 10px 20px; font-size: 0.8rem; color: #aaa; text-align: right; font-style: italic; }

 
.content-area { margin-top: 30px; background: var(--white); padding: 30px; border-radius: 8px; line-height: 1.6; }
.content-area h2 { color: var(--primary); border-bottom: 2px solid #f1f2f6; padding-bottom: 10px; }

 
footer { text-align: center; padding: 30px 0; color: #7f8fa6; font-size: 0.9rem; margin-top: 40px; border-top: 1px solid #ddd; }

 
@media (max-width: 600px) {
    .header-flex { flex-direction: column; gap: 10px; }
    .hide-mobile { display: none; }
    .market-table td, .market-table th { padding: 12px 10px; font-size: 0.9rem; }
}

.info-note {
    background-color: #e8f4fd;  
    border-left: 5px solid #3498db;  
    padding: 15px;
    margin-top: 20px;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #2c3e50;
}

.content-area h3 {
    color: #2c3e50;
    margin-top: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.content-area strong {
    color: #c0392b;  
}



@keyframes flashGreen {
    0% { background-color: rgba(46, 204, 113, 0.4); color: #155724; }
    100% { background-color: transparent; }
}


@keyframes flashRed {
    0% { background-color: rgba(231, 76, 60, 0.4); color: #721c24; }
    100% { background-color: transparent; }
}

.up-anim {
    animation: flashGreen 1.5s ease-out;
}

.down-anim {
    animation: flashRed 1.5s ease-out;
}