/* Sans oranlari sayfasi — companion-guide.css tokenlari uzerine tablo/sekme stilleri */

.brand-title {
  color: var(--gold-light);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(242, 194, 135, .3);
  white-space: nowrap;
}

.site-topbar .language-switch {
  position: absolute;
  right: calc(min(360px, 31vw) + 14px);
  top: 50%;
  transform: translateY(-50%);
}

.tabs-bar {
  position: sticky;
  top: 76px;
  z-index: 40;
  padding: 10px 0;
  background:
    linear-gradient(to bottom, rgba(14, 14, 18, .96), rgba(18, 18, 22, .92)),
    repeating-linear-gradient(135deg, rgba(255, 218, 154, .03) 0 1px, transparent 1px 14px);
  border-bottom: 1px solid rgba(242, 194, 135, .16);
  backdrop-filter: blur(10px);
}

.tabs-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.tab-pill {
  min-height: 38px;
  padding: 8px 15px;
  color: var(--gold-light);
  background:
    linear-gradient(180deg, rgba(21, 21, 25, .9), rgba(11, 11, 14, .9)),
    repeating-linear-gradient(135deg, rgba(255, 218, 154, .04) 0 1px, transparent 1px 12px);
  border: 1px solid rgba(255, 218, 154, .52);
  border-radius: var(--soft-radius);
  box-shadow: inset 0 0 12px rgba(0, 0, 0, .38), 0 0 14px rgba(242, 194, 135, .08);
  cursor: pointer;
  text-transform: uppercase;
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .035em;
  transition: transform .18s ease, color .18s ease, background .18s ease, box-shadow .18s ease;
}

.tab-pill:hover,
.tab-pill:focus-visible {
  color: var(--ink);
  background: var(--gold-light);
  outline: none;
  transform: translateY(-1px);
}

.tab-pill.is-active {
  color: var(--ink);
  background: linear-gradient(40deg, #ecbc84 10%, #9b7a50 100%);
  box-shadow: 0 0 16px rgba(242, 170, 37, .4);
}

.luck-main {
  display: block;
  padding: 18px 0 60px;
}

.disclaimer {
  margin: 18px 0 0;
  padding: 12px 16px;
  color: var(--muted);
  background: rgba(21, 21, 25, .7);
  border: 1px solid rgba(242, 194, 135, .22);
  border-left: 3px solid var(--gold);
  border-radius: 0 12px 0 12px;
  font-size: .9rem;
  line-height: 1.5;
}

.disclaimer strong { color: var(--gold-light); }

.luck-main .guide-card {
  border-top: 3px solid var(--gold);
}

.luck-main .guide-card > header {
  background-size: 100% 100%;
  padding-top: 14px;
  padding-bottom: 13px;
}

.luck-main .guide-card > header h2 {
  margin: 0;
  font-size: 1.15rem;
  color: #50402c;
  text-shadow: 0 3px 3px #f1c086;
}

.card-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.card-tools .hint {
  color: var(--muted);
  font-size: .92rem;
}

.table-search {
  min-width: 240px;
  min-height: 40px;
  padding: 8px 14px;
  color: var(--gold-soft);
  background:
    linear-gradient(180deg, rgba(21, 21, 25, .92), rgba(11, 11, 14, .92)),
    repeating-linear-gradient(135deg, rgba(255, 218, 154, .035) 0 1px, transparent 1px 12px);
  border: 1px solid rgba(255, 218, 154, .45);
  border-radius: 12px;
  box-shadow: inset 0 0 14px rgba(0, 0, 0, .48);
  outline: none;
}

.table-search:focus {
  border-color: var(--gold-light);
  box-shadow: inset 0 0 14px rgba(0, 0, 0, .48), 0 0 0 2px rgba(255, 218, 154, .16);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(242, 194, 135, .3);
  border-radius: 0 14px 0 14px;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, .35);
}

table.luck {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}

table.luck th {
  position: sticky;
  top: 0;
  padding: 10px 12px;
  color: #50402c;
  background-image: url("assets/images/card-header-widget-bg.png");
  background-size: cover;
  text-shadow: 0 2px 2px rgba(241, 192, 134, .8);
  text-transform: uppercase;
  font-size: .8rem;
  letter-spacing: .04em;
  text-align: left;
  white-space: nowrap;
}

table.luck td {
  padding: 8px 12px;
  border-top: 1px solid rgba(242, 194, 135, .14);
  color: var(--gold-soft);
  vertical-align: middle;
}

table.luck tbody tr:nth-child(odd) {
  background: rgba(33, 33, 40, .45);
}

table.luck tbody tr:hover {
  background: rgba(65, 52, 35, .5);
}

.item-cell {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.item-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  object-fit: contain;
  background: rgba(21, 21, 25, .85);
  border: 1px solid rgba(242, 194, 135, .4);
  border-radius: 6px;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, .5);
}

.item-icon.placeholder {
  display: grid;
  place-items: center;
  color: rgba(242, 194, 135, .4);
  font-size: .7rem;
  font-weight: 800;
}

.item-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.item-id {
  color: var(--muted);
  font-size: .78rem;
}

.pct-bar {
  position: relative;
  min-width: 120px;
  height: 18px;
  background: rgba(21, 21, 25, .8);
  border: 1px solid rgba(242, 194, 135, .3);
  border-radius: 9px;
  overflow: hidden;
}

.pct-bar > i {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, #55432e, #ecbc84);
  border-radius: 8px;
}

.pct-bar > b {
  position: relative;
  display: block;
  padding: 0 8px;
  color: #fff;
  font-size: .74rem;
  font-weight: 800;
  line-height: 18px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .8);
  white-space: nowrap;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 0 9px 0 9px;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  white-space: nowrap;
}

.badge.gold { color: var(--ink); background: linear-gradient(40deg, #ecbc84, #ffda9a); }
.badge.dark { color: var(--gold-light); background: rgba(21, 21, 25, .8); border-color: rgba(255, 218, 154, .4); }
.badge.green { color: #0b2b0b; background: linear-gradient(40deg, #79c96f, #a6e59d); }
.badge.red { color: #fff; background: linear-gradient(40deg, #7a3030, #b85454); }
.badge.q1 { color: var(--gold-soft); background: rgba(90, 90, 100, .5); border-color: rgba(255, 255, 255, .25); }
.badge.q2 { color: #0f2438; background: linear-gradient(40deg, #7db4e0, #a9d3f5); }
.badge.q3 { color: #2b1a06; background: linear-gradient(40deg, #ecbc84, #ffda9a); }
.badge.q4 { color: #fff; background: linear-gradient(40deg, #8a5fc0, #b58ae0); }
.badge.q6 { color: #fff; background: linear-gradient(40deg, #b03a3a, #e06a6a); }
.badge.qg { color: #0b2b0b; background: linear-gradient(40deg, #79c96f, #a6e59d); }

.pct-bar.red > i {
  background: linear-gradient(90deg, #5a2323, #d96a6a);
}

.odds {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: .78rem;
  white-space: nowrap;
}

.odds strong { color: var(--gold-light); }

.item-qty {
  color: var(--gold-light);
  font-weight: 800;
  white-space: nowrap;
}

.pool-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 10px;
  color: var(--gold-light);
  font-size: 1.02rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.pool-count {
  color: var(--muted);
  font-size: .85rem;
  text-transform: none;
}

.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 9px;
}

.item-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(33, 33, 40, .55);
  border: 1px solid rgba(242, 194, 135, .22);
  border-radius: 0 10px 0 10px;
}

.item-tile .item-cell { flex: 1 1 auto; min-width: 0; }

.lvl-tag {
  flex: 0 0 auto;
  padding: 2px 8px;
  color: var(--muted);
  background: rgba(21, 21, 25, .8);
  border: 1px solid rgba(242, 194, 135, .25);
  border-radius: 8px;
  font-size: .74rem;
  white-space: nowrap;
}

.mat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mat-chip {
  display: inline-flex;
  padding: 3px 8px 3px 4px;
  background: rgba(33, 33, 40, .6);
  border: 1px solid rgba(242, 194, 135, .2);
  border-radius: 0 9px 0 9px;
}

.mat-chip .item-icon { width: 26px; height: 26px; }

.toggle-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-soft);
  font-size: .92rem;
  cursor: pointer;
  user-select: none;
}

.toggle-line input { accent-color: #ecbc84; }

.level-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--gold-soft);
  font-size: .95rem;
}

.card-tools .level-filter { margin: 0; }

.level-select {
  min-height: 40px;
  padding: 6px 12px;
  color: var(--gold-soft);
  background:
    linear-gradient(180deg, rgba(21, 21, 25, .92), rgba(11, 11, 14, .92));
  border: 1px solid rgba(255, 218, 154, .45);
  border-radius: 12px;
  outline: none;
  cursor: pointer;
}

.level-select:focus {
  border-color: var(--gold-light);
  box-shadow: 0 0 0 2px rgba(255, 218, 154, .16);
}

.chip-item .item-cell { margin-top: 6px; }

.cell-sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: .85rem;
}

table.luck tr.row-big {
  background: rgba(65, 52, 35, .55) !important;
  box-shadow: inset 3px 0 0 var(--gold);
}

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: var(--muted);
  font-size: .9rem;
}

.pager button {
  min-height: 34px;
  padding: 6px 13px;
  color: var(--gold-light);
  background: rgba(21, 21, 25, .8);
  border: 1px solid rgba(255, 218, 154, .45);
  border-radius: var(--soft-radius);
  cursor: pointer;
  font-weight: 800;
}

.pager button:disabled {
  opacity: .35;
  cursor: default;
}

.pager button:not(:disabled):hover {
  color: var(--ink);
  background: var(--gold-light);
}

.sub-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.stat-chip {
  padding: 10px 16px;
  background: rgba(65, 52, 35, .45);
  border: 1px solid rgba(242, 194, 135, .35);
  border-radius: var(--soft-radius);
  box-shadow: inset 0 0 12px rgba(21, 21, 25, .5);
}

.stat-chip b {
  display: block;
  color: var(--gold-light);
  font-size: 1.25rem;
}

.stat-chip span {
  color: var(--muted);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.chest-list {
  display: grid;
  gap: 10px;
}

.chest-item {
  border: 1px solid rgba(242, 194, 135, .3);
  border-radius: 0 14px 0 14px;
  background: rgba(21, 21, 25, .55);
  overflow: hidden;
}

.chest-head {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  color: var(--gold);
  background: rgba(65, 52, 35, .4);
  border: 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: background .18s ease;
}

.chest-head:hover {
  background: rgba(65, 52, 35, .68);
}

.chest-head .grow { flex: 1 1 auto; min-width: 0; }

.chest-preview {
  margin-top: 2px;
  color: var(--muted);
  font-size: .8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chest-head .count {
  color: var(--muted);
  font-size: .82rem;
  white-space: nowrap;
}

.chest-head .caret {
  color: var(--gold-light);
  transition: transform .2s ease;
}

.chest-item.open .chest-head .caret { transform: rotate(90deg); }

.chest-body { display: none; padding: 4px 14px 14px; }
.chest-item.open .chest-body { display: block; }

.note-box {
  margin: 0 0 16px;
  padding: 12px 16px;
  color: var(--gold-soft);
  background: rgba(65, 52, 35, .35);
  border-left: 3px solid var(--gold);
  border-radius: 0 12px 0 12px;
  font-size: .95rem;
  line-height: 1.5;
}

.scroll-top-btn {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: none;
  width: 46px;
  height: 46px;
  color: var(--ink);
  background: linear-gradient(40deg, #ecbc84, #ffda9a);
  border: 1px solid #e1c452;
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(242, 170, 37, .45);
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 900;
}

.scroll-top-btn.visible { display: block; }

@media (max-width: 900px) {
  .brand-title { display: none; }
  .tabs-bar { top: 0; position: static; }
  .guide-search { position: static; transform: none; width: 100%; margin-top: 8px; }
  .topbar-inner { flex-wrap: wrap; padding: 10px 0; }
  .site-topbar .language-switch { position: static; transform: none; }
}
