.market-history{padding:72px 0;background:linear-gradient(180deg,#eef1f6 0%,#f6f3ed 100%)}.market-history__header{display:flex;align-items:flex-end;justify-content:space-between;gap:28px;margin-bottom:28px}.market-history__header .chip{display:inline-flex;align-items:center;gap:7px}.market-history__header .chip svg{width:15px;height:15px}.market-history__header .section-title{margin-bottom:10px}.market-history__header p{margin:0;color:#4a6388;font-size:14px}.market-history__ranges{display:flex;align-items:center;gap:6px;border:1px solid rgba(3,31,70,.1);border-radius:14px;background:rgba(255,255,255,.72);padding:5px;box-shadow:0 8px 24px rgba(3,31,70,.06)}.market-history__ranges button{min-width:62px;border-radius:10px;padding:9px 12px;color:#4a6388;font-size:12px;font-weight:800;transition:background .2s,color .2s,box-shadow .2s}.market-history__ranges button:hover{color:#031f46}.market-history__ranges button.is-active{background:#031f46;color:#e3b050;box-shadow:0 7px 18px rgba(3,31,70,.18)}.market-history__card{position:relative;overflow:hidden;border:1px solid rgba(227,176,80,.24);border-radius:28px;background:radial-gradient(circle at 10% 5%,rgba(227,176,80,.12),transparent 24%),linear-gradient(150deg,#07192e,#031f46);padding:24px 26px 18px;box-shadow:0 24px 65px rgba(3,31,70,.2);color:#fff}.market-history__stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:24px}.market-history__stats>div{border:1px solid rgba(255,255,255,.07);border-radius:15px;background:rgba(255,255,255,.045);padding:14px 16px}.market-history__stats span,.market-history__stats strong{display:block}.market-history__stats span{margin-bottom:6px;color:#98a8c4;font-size:12px}.market-history__stats strong{overflow:hidden;color:#fff;font-size:14px;font-weight:900;text-overflow:ellipsis;white-space:nowrap}.market-history__stats strong.is-positive{color:#6ee7b7}.market-history__stats strong.is-negative{color:#fda4af}.market-history__canvas-wrap{position:relative;height:390px;direction:ltr}.market-history__canvas-wrap canvas{position:relative;z-index:1;width:100%!important;height:100%!important;transition:opacity .2s}.market-history__state{position:absolute;z-index:2;inset:0;display:none;align-items:center;justify-content:center;flex-direction:column;gap:12px;border-radius:18px;color:#c5cfdf;text-align:center;direction:rtl}.market-history.is-loading .market-history__state,.market-history__card.is-loading .market-history__state,.market-history__card.is-error .market-history__state,.market-history__card.is-empty .market-history__state{display:flex}.market-history__card.is-loading canvas,.market-history__card.is-error canvas,.market-history__card.is-empty canvas{opacity:.18}.market-history__loader{width:30px;height:30px;border:3px solid rgba(227,176,80,.2);border-top-color:#e3b050;border-radius:50%;animation:market-chart-spin .8s linear infinite}.market-history__card.is-error .market-history__loader,.market-history__card.is-empty .market-history__loader{display:none}.market-history__state strong{font-size:13px}.market-history__footer{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:14px;padding-top:14px;border-top:1px solid rgba(255,255,255,.07);color:#98a8c4;font-size:12px;direction:rtl}@keyframes market-chart-spin{to{transform:rotate(360deg)}}html.dark .market-history{background:linear-gradient(180deg,#061525,#051223)}html.dark .market-history__header p{color:#a8b8d4}html.dark .market-history__ranges{border-color:rgba(255,255,255,.08);background:rgba(15,39,64,.78)}html.dark .market-history__ranges button{color:#c1cde3}html.dark .market-history__ranges button.is-active{background:#e3b050;color:#031f46}
@media(max-width:900px){.market-history__header{align-items:flex-start;flex-direction:column}.market-history__ranges{width:100%;overflow-x:auto}.market-history__ranges button{flex:1;white-space:nowrap}.market-history__stats{grid-template-columns:repeat(2,minmax(0,1fr))}.market-history__canvas-wrap{height:340px}}
@media(max-width:639px){.market-history{padding:52px 0}.market-history__header{margin-bottom:20px}.market-history__ranges{padding:4px}.market-history__ranges button{min-width:68px;padding:8px 9px}.market-history__card{border-radius:21px;padding:16px 14px 13px}.market-history__stats{gap:7px;margin-bottom:16px}.market-history__stats>div{padding:11px 12px}.market-history__stats strong{font-size:12px}.market-history__canvas-wrap{height:285px}.market-history__footer{align-items:flex-start;flex-direction:column;gap:5px}}
