:root {
    --doji-red: #650205;
    --doji-red-dark: #5f0202;
    --doji-buy: #c8102e;
    --doji-sell: #17914b;
    --border: #e3e3e3;
    --panel-head: #f7f7f7;
    --text: #222;
    --muted: #777;
}

* { box-sizing: border-box; }

body {
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    color: var(--text);
    background: #fff;
}

.container-fluid{
    max-width: 1920px!important; /* gần full màn hình, chỉ giới hạn trên màn siêu rộng */
}
a { text-decoration: none; }

/* ---------------- Header ---------------- */

.site-header {
    background: var(--doji-red);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.site-header .navbar-brand {
    padding: 8px 0;
    position: relative;
}

/* Vệt sáng chéo phía sau logo */
.site-header .navbar-brand::before {
    content: "";
    position: absolute;
    left: -30px;
    top: -12px;
    bottom: -12px;
    width: 190px;
    background: linear-gradient(105deg, rgba(255, 255, 255, .18) 0%, rgba(255, 255, 255, .06) 55%, transparent 100%);
    transform: skewX(-18deg);
    pointer-events: none;
}

.brand-logo,
.brand-text { position: relative; z-index: 1; }

.brand-text {
    color: #fff;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 2px;
}

.site-header .nav-link {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    padding: 18px 14px;
    transition: opacity .15s ease;
}

.site-header .nav-link:hover,
.site-header .nav-link:focus { color: #fff; opacity: .78; }

/* Nút menu mobile: tông vàng đồng bộ với logo.
   Bootstrap được nạp sau file này nên phải dùng tiền tố .site-header để thắng độ ưu tiên. */
.site-header .navbar {
    --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23f2c14e' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.4' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    --bs-navbar-toggler-border-color: rgba(242, 193, 78, .65);
    --bs-navbar-toggler-focus-width: 2px;
}

.site-header .navbar-toggler {
    border: 1px solid rgba(242, 193, 78, .65);
    border-radius: 6px;
    padding: 4px 8px;
    background: rgba(242, 193, 78, .08);
    transition: background-color .15s ease, border-color .15s ease;
}

.site-header .navbar-toggler:hover,
.site-header .navbar-toggler[aria-expanded="true"] {
    border-color: #f2c14e;
    background: rgba(242, 193, 78, .18);
}

.site-header .navbar-toggler:focus { box-shadow: 0 0 0 2px rgba(242, 193, 78, .35); }

.site-header .navbar-toggler-icon {
    background-image: var(--bs-navbar-toggler-icon-bg);
}

/* ---------------- Layout ---------------- */

.page-main { padding: 18px 0 28px; }

.panel {
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

.panel-head {
    background: var(--panel-head);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
}

.panel-title {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .4px;
    margin: 0;
}

.panel-body { padding: 12px; }

.panel-foot {
    background: var(--panel-head);
    border-top: 1px solid var(--border);
    padding: 8px 16px;
    text-align: right;
    font-size: 12px;
    font-style: italic;
    color: #555;
}

.update-badge {
    background: #f0f0f0;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    padding: 4px 10px;
    font-size: 12px;
    color: #444;
    white-space: nowrap;
}

.update-badge .bi-circle-fill {
    font-size: 7px;
    color: var(--doji-sell);
    vertical-align: 2px;
    margin-right: 4px;
}

/* ---------------- Tabs khoảng thời gian ---------------- */

.range-tabs {
    border-bottom: 1px solid var(--border);
    margin-bottom: 10px;
    flex-wrap: nowrap;
}

.range-tabs .nav-link {
    border: 1px solid transparent;
    border-radius: 0;
    color: #555;
    font-size: 13px;
    padding: 6px 16px;
    background: none;
}

.range-tabs .nav-link:hover { color: var(--doji-red); border-color: transparent; }

.range-tabs .nav-link.active {
    color: var(--text);
    font-weight: 600;
    background: #fff;
    border-color: var(--border) var(--border) #fff;
    border-radius: 3px 3px 0 0;
    margin-bottom: -1px;
}

.chart-box {
    position: relative;
    height: 300px;
}

/* ---------------- Bảng giá ---------------- */

.price-table { margin: 0; }

.price-table thead th {
    background: var(--doji-red);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .3px;
    text-align: center;
    vertical-align: middle;
    border: none;
    padding: 12px 10px;
    white-space: nowrap;
}

.price-table thead th.text-start { text-align: left !important; }

.price-table .col-stt { width: 56px; }
.price-table .col-price { width: 150px; }

.price-table tbody td {
    border-bottom: 1px solid var(--border);
    padding: 14px 10px;
    vertical-align: middle;
    font-size: 14px;
}

.price-table tbody tr:last-child td { border-bottom: none; }

.price-table .cell-stt { text-align: center; color: #444; }

.price-table .cell-name {
    text-transform: uppercase;
    font-weight: 500;
}

.price-table .cell-buy,
.price-table .cell-sell {
    text-align: center;
    font-weight: 700;
    font-size: 15px;
}

.price-table .cell-buy { color: var(--doji-buy); }
.price-table .cell-sell { color: var(--doji-sell); }

/* ---------------- Banner ---------------- */

.banner {
    display: block;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    color: #fff;
}

.banner-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px;
    text-align: center;
}

.banner p { margin: 0; }

/* Dải ruy băng góc dưới phải */
.banner::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, transparent 50%, rgba(255, 255, 255, .22) 50%);
}

.banner-gold {
    background:
            radial-gradient(circle at 30% 35%, rgba(255, 210, 120, .45), transparent 55%),
            linear-gradient(135deg, #d81f36 0%, #b00d26 55%, #8c0a1d 100%);
}

.banner-gold .coin-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 240px;
}

.banner-gold .coin {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .3px;
    color: #7a4a06;
    background: linear-gradient(145deg, #ffe9a8, #e0b04a 60%, #c99327);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
    text-align: center;
    padding: 4px;
}

.banner-gold .coin-card { width: 62px; height: 46px; border-radius: 4px; }
.banner-gold .coin-round { width: 42px; height: 42px; border-radius: 50%; }

.banner-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffe9b0;
    margin-top: 6px !important;
}

.banner-silver {
    background:
            radial-gradient(circle at 70% 75%, rgba(212, 175, 92, .5), transparent 60%),
            linear-gradient(160deg, #f3ead6 0%, #dcc9a2 45%, #9fae8c 100%);
    color: #4a3a1c;
}

.banner-script {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 26px;
    font-weight: 700;
    font-style: italic;
    color: #8b6a1e;
    line-height: 1.1;
}

.banner-sub {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    font-style: italic;
}

.banner-pill {
    background: #b8232f;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    padding: 5px 14px;
    border-radius: 20px;
}

.banner-foot {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #6b5a35;
    margin-top: 4px !important;
}

.banner-trend {
    background:
            radial-gradient(circle at 75% 40%, rgba(120, 220, 180, .35), transparent 55%),
            linear-gradient(150deg, #0e5f4a 0%, #08423a 60%, #052b26 100%);
}

.banner-brand {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1;
}

.banner-brand span { color: #ffd66b; }

.banner-byline {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #cfe9dd;
}

.banner-trend .banner-sub { color: #f2e6c6; }

/* ---------------- Footer ---------------- */

.site-footer {
    background: var(--doji-red);
    color: #fff;
    padding: 36px 0 32px;
    margin-top: 10px;
}

.footer-brand {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 3px;
}

.footer-company {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
}

.footer-copy {
    font-size: 12px;
    color: rgba(255, 255, 255, .82);
    line-height: 1.7;
}

.footer-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .5px;
    margin-bottom: 16px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
}

.footer-contact i { margin-top: 3px; }

.footer-contact a,
.footer-links a {
    color: #fff;
    transition: opacity .15s ease;
}

.footer-contact a:hover,
.footer-links a:hover { opacity: .75; text-decoration: underline; }

.footer-links li { margin-bottom: 14px; }

.footer-links a {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .4px;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 1199.98px) {
    .chart-box { height: 260px; }
}

@media (max-width: 991.98px) {
    .site-header .nav-link { padding: 10px 0; }
    .site-header .navbar-collapse { padding-bottom: 10px; }
    .site-header .navbar-brand::before { display: none; }
}

@media (max-width: 575.98px) {
    .price-table tbody td { padding: 10px 6px; font-size: 13px; }
    .price-table .cell-buy,
    .price-table .cell-sell { font-size: 14px; }
    .panel-title { font-size: 14px; }
}
