/* MIKE102 market ticker (homepage strip): 3 equal columns, compact */
.m102-tk, .m102-tk * { box-sizing: border-box; }
.m102-tk {
  width: calc(100% - 48px); margin: 12px auto 14px; position: relative;
  background: linear-gradient(90deg, #8b5cf6, #38bdf8) top / 100% 1px no-repeat, #fff; border: 1px solid #e5e0ee; border-radius: 10px; color: #1f1b2e;
  box-shadow: 0 1px 3px rgba(45, 25, 75, .04), 0 6px 18px rgba(45, 25, 75, .05);
}
.m102-tk__track { overflow: hidden; border-radius: 10px; display: grid; grid-template-columns: repeat(var(--m102-tk-n, 3), minmax(0, 1fr)); }
.m102-tk__item {
  display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 9px 16px 10px; border-right: 1px solid #efe9f6; color: inherit; text-decoration: none; transition: background .2s;
}
.m102-tk__item:last-child { border-right: 0; }
a.m102-tk__item:hover { background: #faf6ff; color: inherit; }

/* name row: label left, update time right */
.m102-tk__name { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; line-height: 1.3; }
.m102-tk__label { min-width: 0; overflow: hidden; color: #6b6480; font-size: 11px; font-weight: 800; letter-spacing: .02em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.m102-tk__unit-m { display: none; }
.m102-tk__time { flex: 0 0 auto; color: #9a93ab; font-size: 10px; white-space: nowrap; }

/* Bitcoin / world gold: price + change on the left, sparkline on the right */
.m102-tk__body { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.m102-tk__main { flex: 0 0 auto; }
.m102-tk__price { font-size: 20px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.m102-tk__chg { margin-top: 1px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.m102-tk--up { color: #16a34a; } .m102-tk--down { color: #dc2626; } .m102-tk--flat { color: #6b6480; }
.m102-tk__spark polyline { vector-effect: non-scaling-stroke; stroke-width: 1.5px; opacity: .85; }
.m102-tk__spark { display: block; flex: 1 1 auto; min-width: 0; width: 100%; height: 38px; }

/* Vàng SJC: two tinted rows, buy / sell */
.m102-tk__sjc { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.m102-tk__sjc-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 10px;
  border-left: 2px solid; border-radius: 5px; line-height: 1.2;
}
.m102-tk__sjc-row span { font-size: 11px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.m102-tk__sjc-row strong { font-size: 15px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.m102-tk__sjc-row strong small { margin-left: 4px; font-size: 10px; font-weight: 600; opacity: .75; }
.m102-tk__sjc-row--buy { border-color: #16a34a; background: #f3fbf6; color: #166534; }
.m102-tk__sjc-row--sell { border-color: #dc2626; background: #fef5f5; color: #991b1b; }

.m102-tk__info { position: absolute; top: 7px; right: 7px; z-index: 5; }
.m102-tk__info summary { display: flex; align-items: center; justify-content: center; width: 17px; height: 17px; border: 1px solid #d9cfee; border-radius: 50%; background: #fff; color: #7c6fa0; font: italic 700 10px/1 Georgia, serif; cursor: pointer; list-style: none; user-select: none; }
.m102-tk__info summary::-webkit-details-marker { display: none; }
.m102-tk__info summary:hover, .m102-tk__info[open] summary { border-color: #8b5cf6; color: #6d28d9; }
.m102-tk__src { position: absolute; top: 24px; right: 0; width: 250px; padding: 9px 11px; border: 1px solid #e5e0ee; border-radius: 8px; background: #fff; box-shadow: 0 8px 24px rgba(45, 25, 75, .14); color: #6b6480; font-size: 11px; line-height: 1.45; }
.m102-tk--empty { width: calc(100% - 48px); margin: 0 auto 14px; padding: 10px 14px; border: 1px dashed #c9b6e6; border-radius: 8px; color: #5b21a6; font-size: 13px; }
.m102-tk--empty p { margin: 0; }

@media (max-width: 991px) {
  .m102-tk, .m102-tk--empty { width: calc(100% - 20px); margin-top: 8px; }
  .m102-tk__item { padding: 9px 11px 9px; }
  .m102-tk__price { font-size: 17px; }
  .m102-tk__body { gap: 8px; }
  .m102-tk__spark { height: 32px; }
}
/* Narrow screens: stack price above the sparkline, time under the label */
@media (max-width: 767px) {
  .m102-tk__name { flex-wrap: wrap; row-gap: 0; }
  .m102-tk__time { flex: 0 0 100%; }
  .m102-tk__body { flex-direction: column; align-items: flex-start; gap: 4px; }
  .m102-tk__spark { flex: none; height: 24px; }
}
@media (max-width: 575px) {
  .m102-tk__item { padding: 9px 8px 8px; }
  .m102-tk__label { font-size: 9px; }
  .m102-tk__unit-m { display: inline; margin-left: 4px; font-size: 8px; font-weight: 600; text-transform: none; letter-spacing: 0; }
  .m102-tk__sjc-row strong small { display: none; }
  .m102-tk__time { font-size: 9px; }
  .m102-tk__price { font-size: 14px; }
  .m102-tk__chg { font-size: 10px; }
  .m102-tk__from { display: none; }
  .m102-tk__sjc { gap: 4px; }
  .m102-tk__sjc-row { flex-direction: column; align-items: flex-start; gap: 1px; padding: 4px 6px; }
  .m102-tk__sjc-row span { font-size: 9px; }
  .m102-tk__sjc-row strong { font-size: 12px; }
}
