/**
 * Aurelis LK v3 — page-specific presentation.
 * Business markup remains intact; rules are scoped by body.el-op-*.
 */

/* Dashboard */
.el-dash {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.el-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(300px, 0.85fr);
  align-items: end;
  gap: 24px;
  min-width: 0;
  padding: clamp(22px, 3vw, 34px);
  overflow: hidden;
  border: 1px solid var(--el-gold);
  color: #fff5df;
  background:
    radial-gradient(circle at 82% 20%, rgba(38, 139, 145, 0.31), transparent 40%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.016) 0 1px, transparent 1px 8px),
    var(--el-teal-deep);
  clip-path: polygon(13px 0, calc(100% - 13px) 0, 100% 13px, 100% calc(100% - 13px), calc(100% - 13px) 100%, 13px 100%, 0 calc(100% - 13px), 0 13px);
  box-shadow: inset 0 0 0 5px rgba(222, 183, 109, 0.07), var(--el-shadow-md);
}

.el-hero::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -110px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(233, 201, 143, 0.13);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(233, 201, 143, 0.025), 0 0 0 70px rgba(233, 201, 143, 0.02);
}

.el-hero-copy,
.el-hero-stats {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.el-hero-eyebrow {
  margin: 0 0 8px;
  color: var(--el-gold-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.el-hero-title {
  margin: 0 0 9px;
  color: #fff7e1 !important;
  font-family: var(--el-serif);
  font-size: clamp(31px, 3.5vw, 48px);
  font-weight: 400;
  letter-spacing: 0.045em;
  line-height: 1.04;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.el-hero-sub {
  max-width: 60ch;
  margin: 0;
  color: rgba(223, 237, 232, 0.78);
  font-family: var(--el-sans);
  font-size: 14px;
  line-height: 1.6;
}

.el-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.el-stat {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(229, 193, 127, 0.46);
  background: rgba(255, 255, 255, 0.035);
  text-align: center;
}

.el-stat-label {
  display: block;
  margin-bottom: 4px;
  color: rgba(222, 211, 184, 0.72);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.el-stat strong {
  display: block;
  color: #ffe6b2;
  font-family: var(--el-serif);
  font-size: clamp(14px, 1.2vw, 17px);
  overflow-wrap: anywhere;
}

.el-card {
  margin: 0;
}

.el-card-head {
  display: block;
}

.el-card-head p {
  margin: 4px 0 0;
  color: var(--el-muted);
  font-size: 13px;
}

.el-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.el-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.el-chip {
  margin: 0;
}

.el-inline-form {
  display: flex;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
}

.el-inline-form .el-input {
  flex: 1 1 180px;
  width: auto;
  min-width: 0;
  margin: 0;
}

.el-inline-form .el-btn {
  flex: 0 0 auto;
  margin: 0;
}

.el-hint {
  margin: 12px 0 0;
  color: var(--el-muted);
  font-size: 13px;
  line-height: 1.5;
}

.el-notice p {
  margin: 2px 0;
}

.el-notice-ok {
  border-color: var(--el-success);
  background: var(--el-success-bg);
}

.el-notice-error {
  border-color: var(--el-danger);
  background: var(--el-danger-bg);
}

.el-notice-info {
  border-color: var(--el-info);
  background: var(--el-info-bg);
}

.el-notice-muted {
  border-color: var(--el-border-soft);
  background: rgba(244, 231, 205, 0.58);
}

.el-reflink {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px dashed var(--el-border);
  background: rgba(255, 255, 255, 0.38);
}

.el-reflink span {
  display: block;
  margin-bottom: 4px;
  color: var(--el-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.el-reflink a {
  overflow-wrap: anywhere;
  font-weight: 600;
}

.el-tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
  gap: 9px;
}

/* --- Accumulation ladder (dashboard) --- */
.el-accum-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(190, 134, 65, 0.48);
  background:
    radial-gradient(circle at 100% 0%, rgba(233, 105, 46, 0.11), transparent 42%),
    radial-gradient(circle at 0% 100%, rgba(47, 118, 93, 0.13), transparent 38%),
    var(--el-paper-bright);
}

.el-accum-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 60%
  );
  transform: translateX(-120%);
  animation: el-accum-shine 7s ease-in-out infinite;
}

.el-accum-head {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 14px;
}

.el-accum-kicker {
  display: block;
  margin-bottom: 3px;
  color: #9b5c1d;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.el-accum-tagline {
  margin: 0;
  max-width: 260px;
  color: var(--el-muted);
  font-size: 12px;
  line-height: 1.35;
  text-align: right;
}

.el-accum-body {
  position: relative;
  z-index: 1;
  padding-top: 10px !important;
}

.el-accum-track {
  height: 10px;
  margin-bottom: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(19, 80, 86, 0.14);
  box-shadow: inset 0 1px 3px rgba(19, 80, 86, 0.16);
}

.el-accum-track-fill {
  position: relative;
  height: 100%;
  min-width: 4%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2f765d 0%, #e4ad48 52%, #e9692e 100%);
  background-size: 200% 100%;
  box-shadow: 0 0 14px rgba(228, 173, 72, 0.5);
  animation: el-accum-flow 3.2s linear infinite;
  transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.el-accum-track-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  animation: el-accum-shimmer 2.2s ease-in-out infinite;
}

.el-accum-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}

.el-accum-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.el-accum-stat.is-target {
  align-items: flex-end;
  text-align: right;
}

.el-accum-stat-label {
  color: var(--el-teal-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.el-accum-stat-value {
  color: var(--el-orange-dark);
  font-family: var(--el-serif);
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 800;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
  animation: el-accum-pop 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.el-accum-stat.is-target .el-accum-stat-value {
  color: #b7421f;
}

.el-accum-meta.is-max {
  justify-content: center;
  margin-bottom: 11px;
  padding: 9px 14px;
  border: 1px solid rgba(228, 173, 72, 0.5);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(228, 173, 72, 0.22), rgba(233, 105, 46, 0.12));
  color: var(--el-orange-dark);
  font-size: 13px;
  font-weight: 700;
  animation: el-tier-glow 3s ease-in-out infinite;
}

.el-tier-grid--ladder {
  grid-template-columns: repeat(var(--el-tier-count, 9), minmax(0, 1fr));
  gap: 5px;
}

.el-tier-grid--ladder .el-tier {
  position: relative;
  min-width: 0;
  padding: 9px 4px 8px;
  border: 1px solid rgba(190, 134, 65, 0.28);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 252, 241, 0.62));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  animation: el-tier-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--el-tier-i, 0) * 0.05s);
}

.el-tier-grid--ladder .el-tier::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -3px;
  width: 5px;
  height: 2px;
  background: rgba(190, 134, 65, 0.45);
  transform: translateY(-50%);
}

.el-tier-grid--ladder .el-tier:last-child::after {
  display: none;
}

.el-tier-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  margin-bottom: 4px;
  border-radius: 999px;
  background: rgba(19, 80, 86, 0.14);
  color: var(--el-teal-deep);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.el-tier.is-done {
  border-color: rgba(47, 118, 93, 0.48);
  background: linear-gradient(180deg, rgba(47, 118, 93, 0.16), rgba(255, 252, 241, 0.78));
}

.el-tier.is-done .el-tier-badge {
  background: var(--el-teal);
  color: #fff7df;
}

.el-tier.is-done .el-tier-sum {
  color: var(--el-teal-deep);
}

.el-tier.is-current {
  z-index: 2;
  border-color: var(--el-gold);
  background: linear-gradient(180deg, rgba(233, 201, 143, 0.55), rgba(255, 248, 230, 0.98));
  box-shadow:
    0 0 0 1px rgba(233, 201, 143, 0.6),
    0 6px 18px rgba(233, 105, 46, 0.2);
  animation:
    el-tier-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    el-tier-float 3s ease-in-out infinite;
  animation-delay: calc(var(--el-tier-i, 0) * 0.05s), 0.6s;
}

.el-tier.is-current .el-tier-badge {
  background: linear-gradient(135deg, #e9692e, #e4ad48);
  color: #fff;
  animation: el-tier-pulse 2.2s ease-in-out infinite;
}

.el-tier.is-current .el-tier-sum {
  color: #8a3a12;
  font-size: 13px;
}

.el-tier.is-next {
  border-style: dashed;
  border-color: rgba(19, 80, 86, 0.28);
  opacity: 1;
}

.el-tier-grid--ladder .el-tier-top {
  font-size: 16px;
  line-height: 1.15;
}

.el-tier-bonus {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.el-bonus-medal {
  display: block;
  margin: 0 auto 1px;
  filter: drop-shadow(0 2px 5px rgba(199, 107, 40, 0.28));
  animation: el-bonus-sparkle 4.5s ease-in-out infinite;
}

.el-tier-bonus-value {
  color: #8a3a12;
  font-family: var(--el-serif, Georgia, serif);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.el-tier-bonus-hint {
  color: #6b7f78;
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.2;
  text-transform: uppercase;
}

.el-tier.is-done .el-tier-bonus-value {
  color: var(--el-teal-deep);
}

.el-tier.is-done .el-bonus-medal {
  filter: drop-shadow(0 2px 4px rgba(47, 118, 93, 0.22));
}

.el-tier.is-current .el-tier-bonus-value {
  color: #9a3f10;
  font-size: 16px;
}

.el-tier.is-current .el-bonus-medal {
  animation: el-bonus-sparkle 3s ease-in-out infinite, el-bonus-float 3.2s ease-in-out infinite;
}

.el-tier.is-next .el-tier-bonus-value {
  color: #2f5652;
  font-size: 14px;
}

@keyframes el-bonus-sparkle {
  0%, 100% { filter: drop-shadow(0 2px 5px rgba(199, 107, 40, 0.22)); }
  50% { filter: drop-shadow(0 3px 8px rgba(233, 105, 46, 0.42)); }
}

@keyframes el-bonus-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.el-tier-grid--ladder .el-tier-mid {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  margin-top: 3px;
  line-height: 1.2;
}

.el-tier-from {
  color: #5a6f6a;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.el-tier-sum {
  color: #173e44;
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.el-tier.is-next .el-tier-from {
  color: #6b7f78;
}

.el-tier.is-next .el-tier-sum {
  color: #2f5652;
  font-size: 11px;
}

@keyframes el-accum-shine {
  0%, 78%, 100% { transform: translateX(-120%); }
  40% { transform: translateX(120%); }
}

@keyframes el-accum-flow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@keyframes el-accum-shimmer {
  0%, 100% { opacity: 0; transform: translateX(-30%); }
  50% { opacity: 1; transform: translateX(30%); }
}

@keyframes el-accum-pop {
  0% { opacity: 0; transform: scale(0.92) translateY(4px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes el-tier-rise {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes el-tier-float {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(-5px); }
}

@keyframes el-tier-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(233, 105, 46, 0.45); }
  50% { box-shadow: 0 0 0 5px rgba(233, 105, 46, 0); }
}

@keyframes el-tier-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(228, 173, 72, 0); }
  50% { box-shadow: 0 0 18px rgba(228, 173, 72, 0.35); }
}

@media (prefers-reduced-motion: reduce) {
  .el-accum-card::before,
  .el-accum-track-fill,
  .el-accum-track-fill::after,
  .el-accum-stat-value,
  .el-tier-grid--ladder .el-tier,
  .el-tier.is-current,
  .el-tier.is-current .el-tier-badge,
  .el-bonus-medal,
  .el-accum-meta.is-max {
    animation: none !important;
    transition: none !important;
  }

  .el-tier-grid--ladder .el-tier {
    opacity: 1;
    transform: none;
  }
}

.el-tier {
  min-width: 0;
  padding: 14px 9px;
  border: 1px solid var(--el-border-soft);
  background: rgba(255, 255, 255, 0.35);
  text-align: center;
}

.el-tier.is-current {
  border-color: var(--el-gold);
  background: linear-gradient(180deg, rgba(233, 201, 143, 0.28), rgba(255, 252, 241, 0.8));
  box-shadow: var(--el-shadow-sm);
}

.el-tier-top {
  color: var(--el-orange-dark);
  font-family: var(--el-serif);
  font-size: 20px;
  font-weight: 700;
}

.el-tier-mid,
.el-tier-note {
  display: block;
  margin-top: 3px;
  color: var(--el-muted);
  font-size: 11px;
}

.el-tier-note {
  color: var(--el-success);
  font-weight: 700;
}

.el-link {
  color: var(--el-teal) !important;
  font-family: var(--el-serif);
  font-weight: 700;
}

.el-vote-links p {
  margin: 8px 0;
}

/* Step-based pages: shop and clan */
body.aurelis-lk .el-step-group {
  margin-bottom: 20px;
}

body.aurelis-lk .label.label-info {
  margin: 0 7px 9px 0;
  border-color: rgba(7, 85, 99, 0.35);
  color: var(--el-teal-deep);
  background: var(--el-info-bg);
}

body.aurelis-lk .el-step-group > .label.label-info {
  display: inline-flex;
}

body.el-op-shop .el-step-group > .well,
body.el-op-klan .well {
  border-left: 3px solid var(--el-gold);
}

body.el-op-shop .well center {
  text-align: left;
}

body.el-op-shop .well .btn-large {
  margin: 3px 4px 3px 0;
}

.el-shop-grid,
body.el-op-shop .row-fluid:has(.shop-block),
body.el-op-pers .row-fluid:has(.pers-block) {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
  align-items: stretch;
  margin: 14px 0 !important;
}

.el-shop-grid::before,
.el-shop-grid::after,
body.el-op-top .el-main-inner > center > .row-fluid::before,
body.el-op-top .el-main-inner > center > .row-fluid::after {
  display: none !important;
  content: none !important;
}

body.aurelis-lk .shop-block,
body.aurelis-lk .pers-block {
  position: relative;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 17px 13px 14px !important;
  float: none !important;
  border: 1px solid var(--el-border-soft) !important;
  color: var(--el-ink-deep) !important;
  background:
    radial-gradient(circle at 50% 0, rgba(233, 201, 143, 0.24), transparent 45%),
    rgba(255, 250, 239, 0.94) !important;
  box-shadow: var(--el-shadow-sm) !important;
  text-align: center;
  text-shadow: none !important;
  transition: border-color var(--el-motion) ease, transform var(--el-motion) ease;
}

body.aurelis-lk .shop-block:hover,
body.aurelis-lk .pers-block:hover {
  border-color: var(--el-gold) !important;
  transform: translateY(-3px);
}

body.aurelis-lk .shop-block img.item_icon,
body.aurelis-lk .shop-block .item_icon {
  width: 52px !important;
  height: 52px !important;
  margin: 0 auto 10px !important;
  border: 1px solid var(--el-border-soft);
  background: var(--el-paper-bright);
  object-fit: contain;
}

body.aurelis-lk .shop-block > div[id^="name"] {
  color: var(--el-ink);
  font-family: var(--el-serif);
  font-size: 16px;
  font-weight: 400;
  overflow-wrap: anywhere;
}

body.aurelis-lk .shop-block hr {
  width: 100%;
}

body.aurelis-lk .notification {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid var(--el-border);
  border-radius: 50%;
  background: var(--el-paper-bright) !important;
}

body.aurelis-lk .notification_adm_edit,
body.aurelis-lk .notification_adm_delete,
body.aurelis-lk .notification_adm_clone {
  position: absolute;
  top: 8px;
}

body.aurelis-lk .notification_adm_edit { right: 8px; }
body.aurelis-lk .notification_adm_delete { right: 40px; }
body.aurelis-lk .notification_adm_clone { right: 72px; }

body.aurelis-lk .notification_discount {
  position: static;
  width: auto;
  height: auto;
  margin-top: 8px;
  padding: 3px 8px;
  border-radius: 999px;
}

/* Character cards */
body.el-op-pers .pers-block {
  align-items: stretch;
  text-align: left;
}

body.el-op-pers .pers-block > div {
  min-width: 0;
}

body.el-op-pers .pers-block .wfull {
  width: 100%;
  margin: 4px 0;
}

body.aurelis-lk .class_icon {
  display: inline-block !important;
  vertical-align: middle;
}

/* Account security and settings */
body.el-op-account .row-fluid + .row-fluid,
body.el-op-config .row-fluid + .row-fluid {
  margin-top: 18px;
}

body.el-op-account .box-content > p {
  max-width: 82ch;
}

body.el-op-account .box-content center {
  text-align: left;
}

body.el-op-account #chpassform fieldset {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(220px, 440px);
  align-items: center;
  gap: 10px 18px;
}

body.el-op-account #chpassform .control-label1 {
  width: auto !important;
  margin: 0;
  float: none !important;
  text-align: left !important;
}

body.el-op-account #chpassform .input-prepend {
  display: flex;
  width: 100%;
}

body.el-op-account #chpassform .input-prepend input {
  flex: 1 1 auto;
  min-width: 0;
}

body.el-op-account #chpassform .clearfix {
  display: none;
}

body.el-op-account #chpassform .form-actions {
  grid-column: 2;
}

body.el-op-account code a {
  margin-left: 7px;
}

/* Money and donate */
body.el-op-money .el-main-inner > center,
body.el-op-donate .el-main-inner > center {
  display: block;
  text-align: left;
}

body.el-op-money table[style],
body.el-op-donate table[style],
body.el-op-klan table[style] {
  width: 100% !important;
  max-width: 760px;
}

body.el-op-money .money_accinfo,
body.el-op-money .userinfo {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--el-border-soft);
  background: var(--el-info-bg);
}

body.el-op-donate .el-main-inner > p {
  margin: 8px 0;
  padding: 10px 13px;
  border-left: 3px solid var(--el-gold);
  background: rgba(255, 250, 239, 0.7);
}

/* Rankings — layout rules live in the Top 100 section near el-rank-card. */
body.el-op-top .box {
  margin: 0;
}

/* Data and admin pages */
body:is(.el-op-history, .el-op-loginlogs, .el-op-lklogs, .el-op-accounts, .el-op-stattop, .el-op-stat, .el-op-online, .el-op-config) .box-content {
  overflow-x: auto;
}

body:is(.el-op-history, .el-op-loginlogs, .el-op-lklogs, .el-op-accounts, .el-op-stattop) .dataTables_wrapper {
  min-width: 680px;
}

body.aurelis-lk tfoot input.search_init,
body.aurelis-lk tfoot input.search_focus {
  width: 100%;
  min-width: 84px;
  min-height: 34px;
  padding: 6px 8px;
  font-size: 12px;
}

body.aurelis-lk .dataTables_info,
body.aurelis-lk .dataTables_length,
body.aurelis-lk .dataTables_filter {
  color: var(--el-muted);
  font-size: 13px;
}

body.el-op-stat .el-main-inner > .row-fluid,
body.el-op-stattop .el-main-inner > .row-fluid,
body.el-op-online .el-main-inner > .row-fluid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

body.aurelis-lk .chart-container {
  width: 100% !important;
  min-width: 0;
  margin: 0 !important;
}

body.aurelis-lk .chart-placeholder {
  width: 100% !important;
  max-width: 100%;
  min-height: 280px;
}

body.el-op-config .nav-tabs {
  position: sticky;
  top: calc(var(--el-topbar-h) + 4px);
  z-index: 120;
  padding-top: 8px;
  margin-bottom: 12px;
  background: rgba(245, 232, 206, 0.96);
  backdrop-filter: blur(8px);
  pointer-events: auto;
}

body.el-op-config .nav-tabs > li > a {
  position: relative;
  z-index: 121;
  pointer-events: auto;
  cursor: pointer;
}

body.el-op-config .table td:first-child {
  width: 23%;
}

body.el-op-config .table td:nth-child(2) {
  width: 37%;
}

body.el-op-config .table td:last-child {
  color: var(--el-muted);
}

body.el-op-config .config_itemid,
body.el-op-config .config_cost {
  width: 120px;
}

body.el-op-config textarea[style] {
  width: 100% !important;
  max-width: 760px;
}

/* Modal and utility fixes */
body.aurelis-lk font {
  color: inherit !important;
}

body.aurelis-lk img.getitemicon,
body.aurelis-lk img.item_icon {
  border: 1px solid var(--el-border-soft);
  background: var(--el-paper-bright);
  vertical-align: middle;
}

body.aurelis-lk [style*="float:left"],
body.aurelis-lk [style*="float: left"] {
  max-width: 100%;
}

body.aurelis-lk .chosen-container,
body.aurelis-lk .chzn-container {
  max-width: 100%;
}

body.aurelis-lk .chosen-container .chosen-single,
body.aurelis-lk .chzn-container .chzn-single {
  min-height: 40px;
  border-color: var(--el-border);
  border-radius: 0;
  background: var(--el-paper-bright);
  box-shadow: none;
}

/* Wide workspace composition */
body.aurelis-lk .el-main-inner > center {
  display: block;
  width: 100%;
  text-align: left;
}

body.aurelis-lk .el-main-inner > center > .row-fluid {
  width: 100%;
}

/* Account: activity and password side by side, security full width */
body.el-op-account .el-main-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(390px, 0.65fr);
  gap: 20px;
  align-items: start;
}

body.el-op-account .el-main-inner > .row-fluid {
  margin: 0;
}

body.el-op-account .el-main-inner > .row-fluid:nth-of-type(3) {
  grid-column: 1 / -1;
}

body.el-op-account .box {
  height: 100%;
}

body.el-op-account #chpassform fieldset {
  grid-template-columns: minmax(140px, 180px) minmax(180px, 1fr);
}

body.el-op-account #chpassform input {
  width: 100%;
}

/* Characters: readable horizontal cards instead of tiny Bootstrap tiles */
body.el-op-pers .el-pers-intro {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-left: 4px solid var(--el-teal);
  background: var(--el-info-bg);
  color: var(--el-ink);
  font-size: 14px;
}

body.el-op-pers .el-pers-intro p {
  margin: 0;
}

body.el-op-pers .el-shop-grid,
body.el-op-pers .row-fluid:has(.pers-block),
body.el-op-pers .el-pers-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(310px, 380px));
  gap: 18px;
  justify-content: start;
  margin: 14px 0 !important;
}

body.el-op-pers .pers-block.el-pers-card {
  position: relative;
  display: flex !important;
  flex-direction: column;
  align-items: stretch !important;
  min-height: 220px;
  padding: 20px 20px 18px !important;
  border-top: 3px solid var(--el-gold) !important;
  border-radius: 18px;
  background:
    radial-gradient(circle at 95% 5%, rgba(7, 85, 99, 0.1), transparent 38%),
    linear-gradient(180deg, rgba(255, 252, 241, 0.98), rgba(251, 242, 223, 0.94)) !important;
  box-shadow: var(--el-shadow-sm) !important;
  text-align: left !important;
}

body.el-op-pers .el-pers-shop {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--el-border-soft);
  border-radius: 999px;
  background: rgba(255, 250, 239, 0.92);
  color: var(--el-teal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

body.el-op-pers .el-pers-shop .icon {
  opacity: 0.85;
}

body.el-op-pers .el-pers-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin: 0 72px 16px 0;
}

body.el-op-pers .el-pers-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

body.el-op-pers .el-pers-title {
  min-width: 0;
}

body.el-op-pers .el-pers-name {
  margin: 0;
  color: var(--el-ink-deep);
  font-family: var(--el-serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

body.el-op-pers .el-pers-class {
  margin: 4px 0 0;
  color: var(--el-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

body.el-op-pers .el-pers-level {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 10px 12px;
  border: 1px solid rgba(190, 134, 65, 0.35);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(233, 201, 143, 0.28), rgba(255, 250, 239, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  flex-shrink: 0;
}

body.el-op-pers .el-pers-level-label {
  color: var(--el-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.el-op-pers .el-pers-level-value {
  color: var(--el-teal);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

body.el-op-pers .el-pers-meta {
  display: grid;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--el-border-soft);
}

body.el-op-pers .el-pers-meta-label {
  display: block;
  margin-bottom: 4px;
  color: var(--el-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.el-op-pers .el-pers-online-value {
  color: #1f7a48;
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

body.el-op-pers .el-pers-online-value font {
  color: inherit !important;
}

body.el-op-pers .el-pers-clan-body {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

body.el-op-pers .el-pers-clan-icon {
  width: 22px;
  height: 22px;
  border-radius: 4px;
}

body.el-op-pers .el-pers-clan-name {
  color: var(--el-ink);
  font-weight: 700;
}

body.el-op-pers .el-pers-clan-role {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(7, 85, 99, 0.08);
  color: var(--el-teal);
  font-size: 11px;
  font-weight: 700;
}

body.el-op-pers .el-pers-bans {
  display: grid;
  gap: 10px;
}

body.el-op-pers .el-pers-ban {
  padding: 10px 12px;
  border: 1px solid rgba(166, 63, 50, 0.22);
  border-radius: 12px;
  background: var(--el-danger-bg);
  font-size: 12px;
  line-height: 1.45;
}

body.el-op-pers .el-pers-ban p {
  margin: 4px 0 0;
}

body.el-op-pers .el-pers-action {
  margin-top: 12px;
}

body.el-op-pers .el-pers-notice {
  margin-top: 18px;
}

body.el-op-pers .pers-block > hr,
body.el-op-pers .el-pers-card > hr {
  display: none !important;
}

body.el-op-pers .pers-block .label-info {
  width: auto !important;
  display: inline-block;
}

body.el-op-pers .pers-block > div:first-of-type {
  margin-bottom: 0;
  font-size: inherit;
}

body.el-op-pers .el-main-inner > .label-important + ul {
  margin: 18px 0 0;
  padding: 16px 18px 16px 38px;
  border: 1px solid rgba(166, 63, 50, 0.25);
  background: var(--el-danger-bg);
}

/* Shop: full-width steps and a useful product grid */
body.el-op-shop .el-step-group {
  padding: 0;
  border: 1px solid var(--el-border-soft);
  background: rgba(255, 250, 239, 0.8);
  box-shadow: var(--el-shadow-sm);
}

body.el-op-shop .el-step-group > .label-info {
  min-height: 34px;
  margin: 0;
  padding: 7px 13px;
  border: 0;
  border-radius: 0;
  color: #fff8e8;
  background: var(--el-teal);
  font-size: 11px;
}

body.el-op-shop .el-step-group > .well {
  margin: 0;
  padding: 18px;
  border: 0;
  border-top: 1px solid var(--el-border-soft);
  box-shadow: none;
}

body.el-op-shop .el-shop-grid,
body.el-op-shop .row-fluid:has(.shop-block) {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}

body.el-op-shop .shop-block {
  min-height: 250px;
  padding: 20px 16px !important;
  border-top: 3px solid var(--el-gold) !important;
}

body.el-op-shop .shop-block img.item_icon,
body.el-op-shop .shop-block .item_icon {
  width: 72px !important;
  height: 72px !important;
}

/* Money management: turn nested layout tables into cards */
body.el-op-money .el-main-inner > p:first-child {
  margin: 0 0 20px;
  padding: 16px 18px;
  border-left: 4px solid var(--el-teal);
  background: var(--el-info-bg);
}

body.el-op-money .el-main-inner > div[align="center"] {
  text-align: left;
}

body.el-op-money .el-main-inner > div[align="center"] > table,
body.el-op-money .el-main-inner > div[align="center"] > table > tbody {
  display: block;
  width: 100% !important;
  border: 0;
  background: transparent;
}

body.el-op-money .el-main-inner > div[align="center"] > table > tbody > tr {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
}

body.el-op-money .el-main-inner > div[align="center"] > table > tbody > tr > td {
  display: block;
  padding: 20px;
  border: 1px solid var(--el-border-soft);
  background: var(--el-paper-bright);
  box-shadow: var(--el-shadow-sm);
}

body.el-op-money .el-main-inner > div[align="center"] > table > tbody > tr > td:empty {
  display: none;
}

body.el-op-money .el-main-inner > div[align="center"] form > .label {
  display: flex;
  min-height: 38px;
  margin: -20px -20px 16px;
  padding: 9px 15px;
  border-radius: 0;
  color: #fff;
  background: var(--el-teal);
  font-size: 12px;
}

body.el-op-money .el-main-inner > div[align="center"] form table,
body.el-op-money .el-main-inner > div[align="center"] form tbody,
body.el-op-money .el-main-inner > div[align="center"] form tr,
body.el-op-money .el-main-inner > div[align="center"] form td {
  display: block;
  width: 100% !important;
  border: 0;
  background: transparent;
}

body.el-op-money .el-main-inner > div[align="center"] form td {
  padding: 6px 0;
}

body.el-op-money .el-main-inner > div[align="center"] form input[type="text"] {
  width: 100%;
}

body.el-op-money .el-money-admin-form {
  margin: 0;
}

body.el-op-money .el-money-admin-grid {
  display: grid;
  grid-template-columns: minmax(210px, 1.1fr) minmax(150px, 0.6fr) minmax(150px, 0.6fr) minmax(220px, 1fr) auto;
  gap: 14px;
  align-items: end;
}

body.el-op-money .el-money-admin-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

body.el-op-money .el-money-admin-field > span {
  color: var(--el-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

body.el-op-money .el-money-admin-field input {
  width: 100%;
  margin: 0;
}

body.el-op-money .el-money-admin-action .btn {
  min-height: 45px;
  margin: 0;
  white-space: nowrap;
}

/* Rankings: see Top 100 block (el-rank-card) for the stable grid layout. */
body.el-op-top .box {
  width: auto;
  margin: 0;
}

body.el-op-top .box-content {
  overflow-x: auto;
}

body.el-op-top .box-content > table {
  min-width: 0;
}

/* Premium donate experience */
.el-donate {
  display: grid;
  gap: 22px;
}

.el-donate-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.34fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  min-height: 290px;
  padding: clamp(28px, 4vw, 58px);
  overflow: hidden;
  border: 1px solid rgba(233, 201, 143, 0.62);
  color: #f8f0da;
  background:
    radial-gradient(circle at 88% 12%, rgba(49, 166, 164, 0.28), transparent 32rem),
    radial-gradient(circle at 8% 100%, rgba(233, 105, 46, 0.2), transparent 28rem),
    linear-gradient(125deg, #032f3a, #075563 58%, #063d49);
  clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 16px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px), 0 16px);
  box-shadow: 0 22px 55px rgba(3, 47, 58, 0.2), inset 0 0 0 5px rgba(255, 255, 255, 0.025);
}

.el-donate-hero::before,
.el-donate-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(233, 201, 143, 0.13);
  border-radius: 50%;
}

.el-donate-hero::before {
  right: -90px;
  bottom: -150px;
  width: 420px;
  height: 420px;
  box-shadow: 0 0 0 38px rgba(233, 201, 143, 0.025), 0 0 0 84px rgba(233, 201, 143, 0.018);
}

.el-donate-hero::after {
  top: -150px;
  left: 35%;
  width: 320px;
  height: 320px;
}

.el-donate-kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--el-gold-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

body.aurelis-lk .el-donate-hero h2 {
  max-width: 760px;
  margin: 0 0 16px;
  color: #fff7df;
  font-family: var(--el-serif);
  font-size: clamp(34px, 4vw, 62px);
  font-weight: 400;
  letter-spacing: 0.025em;
  line-height: 1.05;
}

.el-donate-hero-copy > p {
  max-width: 720px;
  margin: 0;
  color: rgba(235, 243, 232, 0.82);
  font-size: 15px;
  line-height: 1.75;
}

.el-donate-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.el-donate-trust span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(233, 201, 143, 0.28);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 248, 225, 0.88);
  font-size: 11px;
  font-weight: 600;
}

.el-donate-trust span::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: #e8c878;
  box-shadow: 0 0 10px rgba(232, 200, 120, 0.66);
}

.el-donate-rate {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 210px;
  padding: 26px 18px;
  border: 1px solid rgba(255, 231, 163, 0.44);
  background: rgba(3, 38, 46, 0.52);
  text-align: center;
  backdrop-filter: blur(8px);
}

.el-donate-rate > span,
.el-donate-rate > em {
  color: rgba(237, 229, 202, 0.7);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.el-donate-rate > strong {
  color: #ffe4a3;
  font-family: var(--el-serif);
  font-size: 38px;
  font-weight: 400;
}

.el-donate-coin {
  position: absolute;
  top: -26px;
  right: -20px;
  filter: drop-shadow(0 9px 16px rgba(0, 0, 0, 0.3));
  animation: el-donate-coin-float 4s ease-in-out infinite;
}

.el-donate-bonuses {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--el-border-soft);
  background: var(--el-paper-bright);
  box-shadow: var(--el-shadow-sm);
}

.el-donate-section-head {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(280px, 1fr);
  align-items: end;
  gap: 24px;
  margin-bottom: 22px;
}

.el-donate-section-head span {
  color: var(--el-orange-dark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.el-donate-section-head h3 {
  margin: 5px 0 0;
  font-size: 25px;
  font-weight: 400;
}

.el-donate-section-head p {
  max-width: 64ch;
  margin: 0;
  color: var(--el-muted);
  font-size: 13px;
}

.el-donate-bonus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.el-donate-bonus {
  position: relative;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--el-border-soft);
  background: linear-gradient(145deg, #fffdf7, #f4e5c7);
}

.el-donate-bonus::after {
  content: "";
  position: absolute;
  top: -24px;
  right: -24px;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(190, 134, 65, 0.25);
  transform: rotate(45deg);
}

.el-donate-bonus span,
.el-donate-bonus em {
  display: block;
  color: var(--el-muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
  text-transform: uppercase;
}

.el-donate-bonus strong {
  display: block;
  margin: 5px 0;
  color: var(--el-orange-dark);
  font-family: var(--el-serif);
  font-size: 28px;
  font-weight: 400;
}

body.el-op-donate .el-donate > .row-fluid {
  margin: 0;
}

body.el-op-donate .el-donate > .row-fluid > .box {
  display: grid;
  grid-template-columns: minmax(250px, 0.36fr) minmax(420px, 1fr);
  margin: 0;
  overflow: hidden;
  border-color: var(--el-gold);
  box-shadow: var(--el-shadow-md);
}

body.el-op-donate .el-donate > .row-fluid > .box > .box-header {
  min-height: 100%;
  align-items: flex-start;
  padding: 32px;
  border: 0;
  border-right: 1px solid rgba(233, 201, 143, 0.28);
  color: #fff7df;
  background:
    radial-gradient(circle at 10% 100%, rgba(233, 105, 46, 0.2), transparent 20rem),
    var(--el-teal-deep);
}

body.el-op-donate .el-donate > .row-fluid > .box > .box-header h2 {
  color: #fff7df;
  font-size: 24px;
  line-height: 1.35;
}

body.el-op-donate .el-donate > .row-fluid > .box > .box-content {
  padding: clamp(26px, 3vw, 42px);
}

body.el-op-donate #f0 fieldset {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(220px, 1fr);
  align-items: center;
  gap: 16px 22px;
  margin: 0;
}

body.el-op-donate #f0 .control-label,
body.el-op-donate #f0 .controls {
  width: auto;
  margin: 0;
  float: none;
}

body.el-op-donate #f0 .control-label {
  font-size: 13px;
}

body.el-op-donate #f0 input[type="text"],
body.el-op-donate #f0 input[type="email"] {
  width: 100%;
  max-width: 440px;
  min-height: 54px;
  padding: 12px 15px;
  font-size: 18px;
  font-weight: 700;
}

body.el-op-donate #f0 .help-block.el-donate-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--el-muted, #6b7f78);
}

body.el-op-donate #f0 .help-block.el-donate-hint.is-warn {
  color: #b7421f;
}

.el-donate-confirm {
  margin-top: 8px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid rgba(233, 201, 143, 0.45);
  border-radius: 16px;
  background: rgba(255, 252, 245, 0.92);
}

.el-donate-confirm h3 {
  margin: 0 0 16px;
  font-size: 20px;
}

.el-donate-confirm-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.el-donate-confirm-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(47, 118, 93, 0.12);
}

.el-donate-confirm-list li span {
  color: var(--el-muted, #6b7f78);
}

.el-donate-pay-btn {
  min-width: 220px;
  min-height: 52px;
}

body.el-op-donate #f0 .clearfix {
  display: none;
}

body.el-op-donate #f0 .form-actions {
  grid-column: 2;
  margin: 4px 0 0;
  padding: 0;
  border: 0;
}

body.el-op-donate #BSubmit {
  min-width: 220px;
  min-height: 52px;
  margin: 0;
  padding-inline: 26px;
  box-shadow: 0 10px 24px rgba(183, 66, 31, 0.22);
  font-size: 14px;
}

.el-donate-legal {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 17px 20px;
  border: 1px solid rgba(47, 118, 93, 0.35);
  background: var(--el-success-bg);
  color: var(--el-success);
}

.el-donate-legal svg {
  flex: 0 0 20px;
  margin-top: 2px;
}

.el-donate-legal strong {
  display: block;
  margin-bottom: 3px;
}

.el-donate-legal p {
  margin: 0;
  color: var(--el-ink-deep);
  font-size: 12px;
}

@keyframes el-donate-coin-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-5deg); }
  50% { transform: translate3d(0, -8px, 0) rotate(3deg); }
}

/* v4 — consistent treatment for every legacy route */
body:is(
  .el-op-history,
  .el-op-loginlogs,
  .el-op-lklogs,
  .el-op-accounts,
  .el-op-stattop,
  .el-op-stat,
  .el-op-online,
  .el-op-config
) .el-main-inner {
  display: block;
}

body:is(.el-op-history, .el-op-loginlogs, .el-op-lklogs, .el-op-accounts, .el-op-stattop) .el-main-inner > table,
body:is(.el-op-history, .el-op-loginlogs, .el-op-lklogs, .el-op-accounts, .el-op-stattop) .dataTables_wrapper {
  border: 1px solid var(--el-border-soft);
  background: rgba(255, 250, 239, 0.88);
  box-shadow: var(--el-shadow-sm);
}

body:is(.el-op-history, .el-op-loginlogs, .el-op-lklogs, .el-op-accounts, .el-op-stattop) .dataTables_wrapper {
  padding: 10px;
}

body:is(.el-op-history, .el-op-loginlogs, .el-op-lklogs, .el-op-accounts, .el-op-stattop) .dataTables_wrapper > table {
  margin: 0;
}

/* Expanded account/character records: compact and fully legible. */
body:is(.el-op-loginlogs, .el-op-lklogs, .el-op-accounts, .el-op-stattop, .el-op-klan) tr.details .userinfo {
  max-height: 430px;
  font-size: 12px;
  line-height: 1.45;
}

body:is(.el-op-loginlogs, .el-op-lklogs, .el-op-accounts, .el-op-stattop, .el-op-klan) tr.details .userinfo > br {
  display: none;
}

body:is(.el-op-loginlogs, .el-op-lklogs, .el-op-accounts, .el-op-stattop, .el-op-klan) tr.details .userinfo_table {
  min-width: 560px;
}

/* Account management is intentionally dense: preserve all columns but avoid
   microscopic text and let the workspace scroll locally. */
body.el-op-accounts .el-main-inner {
  overflow-x: auto;
}

body.el-op-accounts #acctable_wrapper {
  min-width: 1120px;
}

body.el-op-accounts #acctable th,
body.el-op-accounts #acctable td {
  white-space: nowrap;
}

body.el-op-accounts #acctable td:last-child {
  white-space: normal;
}

/* Configuration: transform the old stack of large panels into compact groups. */
body.el-op-config .el-main-inner > .row-fluid,
body.el-op-config .tab-pane > .row-fluid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 12px;
  align-items: start;
}

body.el-op-config .box {
  margin: 0 0 12px;
}

body.el-op-config .box-header {
  position: sticky;
  top: calc(var(--el-topbar-h) + 88px);
  z-index: 4;
}

body.el-op-config .box-content > table {
  margin: 0;
}

body.el-op-config label,
body.el-op-account label,
body.el-op-money label {
  color: var(--el-ink-deep);
  font-size: 12px;
  font-weight: 700;
}

/* Rankings and statistics use compact cards with equal visual rhythm. */
body:is(.el-op-top, .el-op-stat, .el-op-online, .el-op-stattop) .box {
  overflow: hidden;
  background: rgba(255, 250, 239, 0.91);
}

body:is(.el-op-stat, .el-op-online, .el-op-stattop) .chart-placeholder {
  min-height: 220px;
}

body.el-op-top .box-header,
body:is(.el-op-stat, .el-op-online, .el-op-stattop) .box-header {
  border-left: 3px solid var(--el-gold);
}

/* Shop, characters, clan and money share one card language. */
body:is(.el-op-shop, .el-op-pers, .el-op-klan, .el-op-money) .well,
body:is(.el-op-shop, .el-op-pers, .el-op-klan, .el-op-money) .box {
  background: rgba(255, 250, 239, 0.93);
}

body.el-op-pers .pers-block:not(.el-pers-card) {
  min-height: 150px;
  padding: 15px !important;
}

body.el-op-pers .pers-block:not(.el-pers-card) > div:first-of-type {
  font-size: 16px;
}

body.el-op-shop .shop-block {
  transition: border-color var(--el-fast) ease, box-shadow var(--el-fast) ease;
}

body.el-op-shop .shop-block:hover {
  border-color: var(--el-gold);
  box-shadow: var(--el-shadow-md);
  transform: none;
}

body.el-op-klan input[type="file"] {
  width: min(100%, 520px);
}

/* Success/failure callbacks should look deliberate instead of raw centered HTML. */
body:is(.el-op-donsuccess, .el-op-donfail) .el-main-inner {
  max-width: 720px;
  padding: 24px;
  border: 1px solid var(--el-border-soft);
  background: var(--el-paper-bright);
  box-shadow: var(--el-shadow-sm);
}

body:is(.el-op-donsuccess, .el-op-donfail) .el-main-inner center {
  display: block;
  text-align: left;
}

/* Final legacy-page cleanup */
.el-admin-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-left: 6px;
  padding: 3px 7px;
  border: 1px solid rgba(183, 66, 31, 0.3);
  color: var(--el-orange-dark);
  background: rgba(244, 221, 215, 0.72);
  font-family: var(--el-sans);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  vertical-align: middle;
}

body.el-op-money .el-main-inner > div[align="center"] > table > tbody > tr {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 12px;
}

body.el-op-money .el-main-inner > div[align="center"] > table > tbody > tr > td {
  padding: 14px;
}

body.el-op-money .el-main-inner > div[align="center"] form > .label {
  margin: -14px -14px 12px;
}

body.el-op-money .el-money-admin-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 9px;
}

body.el-op-money .el-money-admin-action {
  align-self: end;
}

body.el-op-money .el-money-admin-action .btn {
  width: 100%;
  min-height: 36px;
}

body.el-op-shop .el-step-group:nth-of-type(2) > .well {
  min-height: 0;
}

body.el-op-shop .el-step-group:nth-of-type(2) .well > center > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 0 8px !important;
  text-align: left;
}

body.el-op-shop .el-step-group:nth-of-type(2) .well > center > div > br {
  display: none;
}

body.el-op-shop .el-step-group:nth-of-type(2) form {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
}

body.el-op-shop .el-step-group:nth-of-type(2) form input[type="text"] {
  width: min(280px, 40vw);
}

body.el-op-shop .row-fluid:has(.shop-block) {
  grid-template-columns: repeat(auto-fill, minmax(220px, 270px));
  gap: 12px;
  justify-content: start;
  align-items: stretch;
}

body.el-op-shop .shop-block {
  width: 100% !important;
  min-height: 210px;
  padding: 14px !important;
  position: relative;
}

body.el-op-shop .shop-block img.item_icon,
body.el-op-shop .shop-block .item_icon,
body.el-op-shop .shop-block > img:first-child {
  width: 64px !important;
  height: 64px !important;
  display: block;
  margin: 3px auto 9px;
  border: 1px solid var(--el-border-soft);
  background: var(--el-paper);
  object-fit: contain;
}

body.el-op-shop .shop-block .notification:not(
  .notification_adm_edit,
  .notification_adm_delete,
  .notification_adm_clone,
  .notification_adm_buycount
) {
  position: static !important;
  inset: auto !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 25px;
  min-height: 25px;
  margin: 5px 2px 0;
  padding: 4px 6px;
  border: 1px solid var(--el-border-soft);
  border-radius: 0;
  background: rgba(245, 232, 206, 0.78);
  box-shadow: none;
  line-height: 1;
  vertical-align: middle;
}

body.el-op-shop .shop-block .notification a {
  display: inline-flex;
  text-decoration: none;
}

body.el-op-klan #klanarttable_wrapper,
body.el-op-stat .box-content:has(table.table) {
  overflow-x: auto;
}

body.el-op-klan #klanarttable_wrapper {
  min-width: 0;
  padding-bottom: 7px;
}

body.el-op-klan #klanarttable {
  min-width: 1520px;
}

body.el-op-klan #klanarttable th,
body.el-op-klan #klanarttable td {
  white-space: nowrap;
}

body.el-op-klan #klanarttable th:last-child,
body.el-op-klan #klanarttable td:last-child {
  min-width: 210px;
  white-space: normal;
}

body.el-op-stat .box-content > table.table {
  min-width: 1180px;
}

body.el-op-stat .box-content > table.table th,
body.el-op-stat .box-content > table.table td {
  white-space: nowrap;
}

body.el-op-stat .el-main-inner > .row-fluid > .box:has(table.table) {
  grid-column: 1 / -1;
}

body.el-op-stat .box-content:has(table.table) {
  scrollbar-color: rgba(190, 134, 65, 0.45) transparent;
  scrollbar-width: thin;
}

body.el-op-accounts #acctable_wrapper {
  min-width: 1480px;
}

body.el-op-accounts .el-main-inner > .row-fluid:has(#role_id_edit) {
  display: grid;
  grid-template-columns: repeat(2, minmax(300px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

body.el-op-accounts .el-main-inner > .row-fluid:has(#role_id_edit) .box {
  margin: 0;
}

body.el-op-accounts .el-main-inner > .row-fluid:has(#role_id_edit) .box-content {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 58px;
}

body.el-op-accounts .el-main-inner > .row-fluid:has(#role_id_edit) input {
  flex: 1 1 180px;
  margin: 0;
}

body.el-op-config .nav-tabs > li > a {
  min-height: 34px;
  padding: 8px 12px;
  font-size: 12px;
  letter-spacing: 0.02em;
}

body.el-op-config .table td:first-child {
  color: var(--el-ink);
  font-family: var(--el-sans);
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

body.el-op-config .table td:nth-child(2) input,
body.el-op-config .table td:nth-child(2) select,
body.el-op-config .table td:nth-child(2) textarea {
  width: 100%;
  max-width: 520px;
}

body.el-op-config .table td:last-child code,
body.el-op-config .table td:last-child .label {
  display: inline-block;
  max-width: 100%;
  padding: 5px 7px;
  border: 0;
  color: var(--el-muted);
  background: rgba(220, 236, 239, 0.58);
  font-family: var(--el-sans);
  font-size: 11px;
  line-height: 1.4;
  white-space: normal;
}

body.aurelis-lk .dataTables_processing {
  padding: 9px 12px !important;
  color: transparent !important;
  background: rgba(255, 250, 240, 0.94) !important;
  border: 1px solid var(--el-border-soft) !important;
  box-shadow: var(--el-shadow-sm);
  font-size: 0 !important;
}

body.aurelis-lk .dataTables_processing img {
  display: none;
}

body.aurelis-lk .dataTables_processing::after {
  content: "Загрузка данных…";
  color: var(--el-ink);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.04em;
}

@media (prefers-reduced-motion: reduce) {
  body.aurelis-lk *,
  body.aurelis-lk *::before,
  body.aurelis-lk *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 900px) {
  .el-hero {
    grid-template-columns: 1fr;
  }

  .el-hero-stats {
    justify-content: stretch;
  }

  body.el-op-top .el-main-inner > center > .row-fluid {
    grid-template-columns: 1fr;
  }

  body.el-op-top .el-main-inner > center > .row-fluid:first-child {
    grid-column: auto;
  }

  body.el-op-account .el-main-inner {
    grid-template-columns: 1fr;
  }

  body.el-op-account .el-main-inner > .row-fluid:nth-of-type(3) {
    grid-column: auto;
  }

  body.el-op-money .el-money-admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .el-donate-hero {
    grid-template-columns: 1fr;
  }

  .el-donate-rate {
    min-height: 170px;
  }

  body.el-op-donate .el-donate > .row-fluid > .box {
    grid-template-columns: 1fr;
  }

  body.el-op-donate .el-donate > .row-fluid > .box > .box-header {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(233, 201, 143, 0.28);
  }
}

@media (max-width: 680px) {
  .el-grid-2 {
    grid-template-columns: 1fr;
  }

  .el-hero {
    padding: 20px 16px;
  }

  .el-hero-stats {
    grid-template-columns: 1fr;
  }

  .el-inline-form {
    flex-direction: column;
  }

  .el-inline-form .el-input {
    flex: 0 0 auto;
    width: 100%;
  }

  .el-inline-form .el-btn {
    width: 100%;
  }

  .el-shop-grid,
  body.el-op-shop .row-fluid:has(.shop-block),
  body.el-op-pers .row-fluid:has(.pers-block) {
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  }

  body.el-op-account #chpassform fieldset {
    grid-template-columns: 1fr;
  }

  body.el-op-account #chpassform .form-actions {
    grid-column: auto;
  }

  body.el-op-money .el-main-inner > div[align="center"] > table > tbody > tr,
  body.el-op-top .el-main-inner > center > .row-fluid,
  .el-donate-section-head {
    grid-template-columns: 1fr;
  }

  body.el-op-money .el-money-admin-grid {
    grid-template-columns: 1fr;
  }

  body.el-op-money .el-money-admin-action .btn {
    width: 100%;
  }

  body.el-op-donate #f0 fieldset {
    grid-template-columns: 1fr;
  }

  body.el-op-donate #f0 .form-actions {
    grid-column: auto;
  }

  body.el-op-donate #BSubmit {
    width: 100%;
  }

  .el-donate-hero {
    padding: 28px 20px;
  }

  .el-donate-hero h2 {
    font-size: 36px;
  }

  .el-donate-trust {
    display: grid;
  }

  body.aurelis-lk .dataTables_wrapper .row-fluid {
    align-items: stretch;
    flex-direction: column;
  }

  body.el-op-config .table {
    min-width: 700px;
  }

  body.aurelis-lk .popup__overlay {
    padding: 0;
  }

  body.aurelis-lk .popup__overlay .popup {
    width: 100%;
    min-height: 100%;
    max-height: 100vh;
    border: 0;
  }
}

@media (max-width: 430px) {
  .el-shop-grid,
  body.el-op-shop .row-fluid:has(.shop-block),
  body.el-op-pers .row-fluid:has(.pers-block) {
    grid-template-columns: 1fr;
  }

  .el-tier-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .el-tier-grid--ladder {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .el-accum-tagline {
    max-width: none;
    text-align: left;
  }

  .el-accum-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   v6 — premium composition for account, shop, money, rankings and history
   ========================================================================== */
.el-route-strip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  margin: 0 0 14px;
  padding: 12px 16px;
  overflow: hidden;
  border: 1px solid rgba(190, 134, 65, .38);
  border-left: 3px solid var(--el-gold);
  color: #f9f2df;
  background:
    radial-gradient(circle at 92% 15%, rgba(53, 164, 163, .16), transparent 30%),
    linear-gradient(110deg, #073f4b, #075563);
  box-shadow: 0 8px 24px rgba(5, 54, 64, .1);
}

.el-route-strip::after {
  content: "";
  position: absolute;
  right: 22px;
  width: 96px;
  height: 96px;
  border: 1px solid rgba(233, 201, 143, .09);
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgba(233, 201, 143, .025);
}

.el-route-glyph {
  position: relative;
  z-index: 1;
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 1px solid rgba(233, 201, 143, .5);
  border-radius: 50%;
  color: var(--el-gold-light);
  font-size: 16px;
}

.el-route-strip > div {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.el-route-strip strong {
  display: block;
  color: #fff8e8;
  font-family: var(--el-serif);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: .025em;
}

.el-route-strip span:not(.el-route-glyph) {
  display: block;
  margin-top: 2px;
  color: rgba(230, 239, 235, .72);
  font-size: 11px;
}

/* Account settings */
body.el-op-account .el-route-strip {
  grid-column: 1 / -1;
}

body.el-op-account .el-main-inner {
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr);
  gap: 14px;
}

body.el-op-account .el-account-section {
  min-width: 0;
}

body.el-op-account .el-account-section-3 {
  grid-column: 1 / -1 !important;
}

body.el-op-account .el-account-section-1 {
  grid-column: 1 !important;
}

body.el-op-account .el-account-section-2 {
  grid-column: 2 !important;
}

body.el-op-account .box {
  overflow: hidden;
  border: 1px solid rgba(190, 134, 65, .32);
  background: rgba(255, 250, 239, .94);
  box-shadow: 0 9px 28px rgba(54, 47, 31, .08);
}

body.el-op-account .box-header {
  min-height: 43px;
  box-sizing: border-box;
  padding: 12px 15px;
  border: 0;
  border-bottom: 1px solid rgba(190, 134, 65, .24);
  background:
    linear-gradient(90deg, rgba(7, 85, 99, .1), transparent 65%),
    rgba(255, 250, 239, .88);
}

body.el-op-account .box-header h2 {
  color: var(--el-teal-deep);
  font-size: 12px;
  letter-spacing: .065em;
}

body.el-op-account .box-content {
  padding: 16px;
}

body.el-op-account .el-account-password .box-content {
  padding: 18px;
}

body.el-op-account #chpassform fieldset {
  grid-template-columns: 1fr;
  gap: 8px;
}

body.el-op-account #chpassform .control-label1 {
  padding-top: 6px;
  color: var(--el-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

body.el-op-account #chpassform .el-secret-answer-hint {
  margin: 4px 0 10px;
  max-width: 420px;
  color: var(--el-muted);
  font-size: 12px;
  line-height: 1.45;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 500;
}

body.el-op-account #chpassform .el-secret-answer-hint strong {
  color: var(--el-ink);
  font-weight: 700;
}

body.el-op-account #chpassform .input-prepend {
  min-height: 40px;
}

body.el-op-account #chpassform .add-on {
  display: grid;
  width: 38px;
  height: 40px;
  box-sizing: border-box;
  place-items: center;
  border-color: rgba(190, 134, 65, .34);
  background: rgba(245, 232, 206, .6);
}

body.el-op-account #chpassform .input-prepend input {
  height: 40px;
  border-color: rgba(190, 134, 65, .34);
  background: #fffdf7;
}

body.el-op-account #chpassform .form-actions {
  grid-column: auto;
  margin: 9px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--el-border-soft);
  background: transparent;
}

body.el-op-account #chpassform .form-actions .btn {
  width: 100%;
}

body.el-op-account .el-account-security .box-content {
  display: grid;
  gap: 9px;
}

body.el-op-account .el-account-security .alert {
  margin: 0;
  padding: 10px 12px;
  border-radius: 2px;
  font-size: 11px;
  line-height: 1.45;
}

body.el-op-account .el-account-security input[type="text"] {
  min-height: 40px;
}

body.el-op-account .el-account-logins .dataTables_wrapper {
  border: 0;
  background: transparent;
  box-shadow: none;
}

/* Shop */
body.el-op-shop .el-shop-character-step {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: stretch;
}

body.el-op-shop .el-shop-character-step > .label-info {
  display: grid;
  height: auto;
  place-items: center;
  background: linear-gradient(145deg, var(--el-teal), var(--el-teal-deep));
}

body.el-op-shop .el-shop-character-step > .well {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 14px 18px;
  border-top: 0;
}

body.el-op-shop .el-shop-character-step a.btn {
  min-width: 120px;
  min-height: 38px;
  border: 2px solid rgba(190, 134, 65, 0.42) !important;
  color: var(--el-teal-deep) !important;
  background: rgba(255, 252, 241, 0.96) !important;
  box-shadow: none !important;
  font-weight: 700;
}

body.el-op-shop .el-shop-character-step a.btn:hover {
  border-color: var(--el-gold) !important;
  color: var(--el-ink-deep) !important;
  background: #fff8e8 !important;
  transform: translateY(-1px);
}

body.el-op-shop .el-shop-character-step span.btn-success,
body.el-op-shop .el-shop-character-step .el-shop-character-active {
  min-width: 120px;
  min-height: 38px;
  border: 2px solid var(--el-teal-deep) !important;
  color: #fff !important;
  background: linear-gradient(145deg, var(--el-teal), var(--el-teal-deep)) !important;
  box-shadow:
    0 0 0 3px rgba(7, 85, 99, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: default;
  transform: none !important;
  filter: none !important;
}

body.el-op-shop .el-shop-character-step span.btn-success::before,
body.el-op-shop .el-shop-character-step .el-shop-character-active::before {
  content: "✓ ";
  font-weight: 900;
}

body.el-op-shop .el-shop-character-selected-note {
  flex: 1 1 100%;
  margin: 2px 0 0;
  padding: 8px 12px;
  border: 1px solid rgba(7, 85, 99, 0.14);
  border-radius: 10px;
  background: rgba(7, 85, 99, 0.06);
  color: var(--el-muted);
  font-size: 12px;
  line-height: 1.45;
}

body.el-op-shop .el-shop-character-selected-note strong {
  color: var(--el-teal-deep);
  font-weight: 800;
}

body.el-op-shop .el-shop-catalog-step {
  border-color: rgba(190, 134, 65, .46);
}

body.el-op-shop .el-shop-catalog-step > .well {
  padding: 16px;
}

body.el-op-shop .el-shop-category-row {
  display: grid !important;
  grid-template-columns: minmax(110px, auto) auto auto auto auto minmax(180px, 260px) auto;
  gap: 6px !important;
  align-items: center !important;
  justify-content: start;
  max-width: 880px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(190, 134, 65, .16);
}

body.el-op-shop .el-shop-category-row:last-of-type {
  border-bottom: 0;
}

body.el-op-shop .el-shop-category-row .btn,
body.el-op-shop .el-shop-category-row input {
  min-height: 34px;
  box-sizing: border-box;
  margin: 0 !important;
}

body.el-op-shop .el-shop-category-row input[type="text"] {
  width: 100% !important;
}

body.el-op-shop .el-shop-category-row .btn:first-child {
  color: #fffaf0;
  background: linear-gradient(135deg, #d47b35, #b94d27);
}

body.el-op-shop .row-fluid:has(.shop-block) {
  grid-template-columns: repeat(auto-fill, minmax(190px, 230px));
  gap: 14px;
}

body.el-op-shop .el-product-card {
  min-height: 242px;
  border-top: 0 !important;
  border-radius: 2px;
  background:
    radial-gradient(circle at 50% 0, rgba(233, 201, 143, .24), transparent 44%),
    #fffbf1 !important;
  box-shadow: 0 8px 24px rgba(55, 47, 31, .08) !important;
}

body.el-op-shop .el-product-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--el-gold), var(--el-orange));
}

body.el-op-shop .el-product-name {
  min-height: 42px;
  display: grid;
  place-items: center;
  color: var(--el-teal-deep) !important;
  font-size: 15px !important;
  line-height: 1.3;
}

body.el-op-shop .el-product-card .btn-success,
body.el-op-shop .el-product-card [value*="Купить"],
body.el-op-shop .el-product-card a:has(+ .notification) {
  border-color: var(--el-teal);
  color: #fff;
  background: linear-gradient(135deg, var(--el-teal), var(--el-teal-deep));
}

body.el-op-shop .el-main-inner > ul:last-child {
  margin: 14px 0 0;
  padding: 14px 18px 14px 34px;
  border: 1px solid rgba(190, 134, 65, .3);
  background: rgba(255, 250, 239, .8);
  color: var(--el-muted);
  font-size: 11px;
  line-height: 1.6;
}

/* Coin management */
body.el-op-money .el-main-inner > p {
  margin: 0 0 14px;
  padding: 12px 15px;
  border: 1px solid rgba(7, 85, 99, .22);
  border-left: 3px solid var(--el-teal);
  color: var(--el-ink-deep);
  background: linear-gradient(90deg, rgba(220, 236, 239, .72), rgba(255, 250, 239, .5));
}

body.el-op-money .el-money-workspace > table > tbody > tr {
  grid-template-columns: minmax(300px, .75fr) minmax(520px, 1.25fr);
  align-items: stretch;
}

body.el-op-money .el-money-workspace > table > tbody > tr > td {
  position: relative;
  padding: 0;
  overflow: hidden;
  border-color: rgba(190, 134, 65, .34);
  background: rgba(255, 250, 239, .94);
  box-shadow: 0 9px 28px rgba(54, 47, 31, .08);
}

body.el-op-money .el-money-workspace form {
  box-sizing: border-box;
  padding: 16px;
}

body.el-op-money .el-money-workspace form > .label {
  min-height: 43px;
  box-sizing: border-box;
  margin: -16px -16px 16px;
  padding: 12px 15px;
  border: 0;
  color: #fff9ea;
  background:
    radial-gradient(circle at 92% 0, rgba(233, 201, 143, .18), transparent 32%),
    var(--el-teal-deep);
  font-size: 11px;
  letter-spacing: .055em;
  text-transform: uppercase;
}

body.el-op-money .el-money-exchange-form table td {
  display: grid !important;
  gap: 8px;
}

body.el-op-money .el-money-exchange-form input[type="text"] {
  min-height: 42px;
}

body.el-op-money .el-money-exchange-form .btn {
  width: 100%;
  min-height: 40px;
}

body.el-op-money .el-money-admin-grid {
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 10px;
}

body.el-op-money .el-money-admin-action {
  grid-column: 1 / -1;
}

body.el-op-money .el-money-admin-action .btn {
  min-height: 42px;
  color: #fff;
  background: linear-gradient(135deg, var(--el-teal), var(--el-teal-deep));
}

/* Top 100 */
body.el-op-top .el-route-strip {
  margin-bottom: 14px;
}

body.el-op-top .el-main-inner > center {
  display: block !important;
  width: 100%;
  text-align: left;
}

body.el-op-top .el-main-inner > center > .row-fluid {
  display: grid !important;
  width: 100% !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
  margin: 0 0 14px !important;
}

body.el-op-top .el-main-inner > center > .row-fluid:first-child {
  grid-template-columns: minmax(0, 1fr) !important;
}

body.el-op-top .el-main-inner > center > .row-fluid > [class*="span"] {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  box-sizing: border-box;
  margin: 0 !important;
  float: none !important;
}

body.el-op-top .el-class-overview {
  border-color: rgba(190, 134, 65, .4);
  background: rgba(255, 250, 239, .93);
  box-shadow: 0 9px 28px rgba(54, 47, 31, .08);
}

body.el-op-top .el-class-overview .box-content {
  padding: 14px;
  overflow: visible;
}

body.el-op-top .el-class-matrix,
body.el-op-top .el-class-matrix tbody {
  display: block;
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
}

body.el-op-top .el-class-matrix tbody {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 8px;
}

body.el-op-top .el-class-matrix tr {
  display: contents;
}

body.el-op-top .el-class-matrix .el-class-cell {
  display: block;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

body.el-op-top .el-class-matrix .el-class-cell:has(.is-zero),
body.el-op-top .el-class-matrix .el-class-cell.is-empty {
  display: none;
}

.el-class-card {
  min-height: 75px;
  box-sizing: border-box;
  padding: 10px;
  border: 1px solid rgba(190, 134, 65, .24);
  background:
    radial-gradient(circle at 100% 0, rgba(220, 236, 239, .55), transparent 46%),
    #fffdf7;
  box-shadow: 0 3px 10px rgba(50, 43, 29, .045);
}

.el-class-card-head {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.el-class-card-head .class_icon {
  flex: 0 0 auto;
}

.el-class-card-head strong {
  min-width: 0;
  color: var(--el-teal-deep);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.el-class-stats {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 4px;
  margin-top: 8px;
}

.el-class-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  padding: 3px 5px;
  border-radius: 999px;
  font-size: 9px;
}

.el-class-stat small {
  color: currentColor;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.el-class-stat b {
  font-size: 10px;
}

.el-class-stat.is-total {
  color: #096071;
  background: #dcecef;
}

.el-class-stat.is-men {
  color: #7b6222;
  background: #f4ead0;
}

.el-class-stat.is-women {
  color: #9a4a50;
  background: #f4dcde;
}

body.el-op-top .el-rank-card {
  min-width: 0;
  border: 1px solid rgba(190, 134, 65, .3);
  background: rgba(255, 250, 239, .94);
  box-shadow: 0 8px 24px rgba(54, 47, 31, .07);
}

body.el-op-top .el-rank-card .box-header {
  min-height: 42px;
  padding: 11px 14px;
  border-left: 0;
  border-bottom: 1px solid rgba(190, 134, 65, .22);
  background: linear-gradient(90deg, rgba(7, 85, 99, .09), transparent);
}

body.el-op-top .el-rank-card .box-header h2 {
  color: var(--el-teal-deep);
  font-size: 12px;
  letter-spacing: .07em;
}

body.el-op-top .el-rank-card .box-content {
  padding: 12px;
}

body.el-op-top .el-rank-card .dataTables_wrapper {
  min-width: 0;
}

body.el-op-top .el-rank-card .dataTables_wrapper > .row-fluid {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100% !important;
  margin: 0 0 9px !important;
}

body.el-op-top .el-rank-card .dataTables_wrapper > .row-fluid:last-child {
  margin: 9px 0 0 !important;
}

body.el-op-top .el-rank-card .dataTables_wrapper .span6,
body.el-op-top .el-rank-card .dataTables_wrapper .span12 {
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  float: none !important;
}

body.el-op-top .el-rank-card .dataTables_wrapper .dataTables_length,
body.el-op-top .el-rank-card .dataTables_wrapper .dataTables_filter {
  float: none !important;
}

body.el-op-top .el-rank-card table.el-rank-table {
  width: 100% !important;
  table-layout: fixed;
}

body.el-op-top .el-rank-card table.el-rank-table th,
body.el-op-top .el-rank-card table.el-rank-table td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

body.el-op-top .el-rank-card table.el-rank-table th:nth-child(1),
body.el-op-top .el-rank-card table.el-rank-table td:nth-child(1) {
  width: 52px;
  text-align: center;
}

body.el-op-top .el-rank-card table.el-rank-table th:nth-child(2),
body.el-op-top .el-rank-card table.el-rank-table td:nth-child(2) {
  width: 38%;
}

body.el-op-top .el-rank-card table.el-rank-table th:nth-child(3),
body.el-op-top .el-rank-card table.el-rank-table td:nth-child(3) {
  width: 34%;
}

body.el-op-top .el-rank-card table.el-rank-table th:nth-child(4),
body.el-op-top .el-rank-card table.el-rank-table td:nth-child(4) {
  width: 92px;
  text-align: center;
}

body.el-op-top .el-rank-card table {
  width: 100% !important;
}

body.el-op-top .el-rank-card tbody tr:nth-child(-n + 3) td:first-child {
  color: var(--el-orange-dark);
  font-weight: 900;
}

body.el-op-top .el-rank-card tbody tr:first-child {
  background: linear-gradient(90deg, rgba(233, 201, 143, .26), rgba(255, 250, 239, .4));
}

/* Action history */
body.el-op-history .el-history-ledger {
  min-width: 0;
  padding: 14px;
  overflow-x: auto;
  border: 1px solid rgba(190, 134, 65, .34);
  background: rgba(255, 250, 239, .94);
  box-shadow: 0 9px 28px rgba(54, 47, 31, .08);
}

body.el-op-history .el-history-ledger > .row-fluid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 11px;
  padding: 9px 11px;
  border: 1px solid rgba(190, 134, 65, .18);
  background: rgba(245, 232, 206, .36);
}

body.el-op-history .el-history-ledger > .row-fluid:last-child {
  margin: 11px 0 0;
}

body.el-op-history .el-history-table {
  min-width: 760px;
  border: 1px solid rgba(190, 134, 65, .24);
}

body.el-op-history .el-history-table thead th {
  padding: 10px 9px;
  color: var(--el-teal-deep);
  font-size: 9px;
  letter-spacing: .07em;
  background: rgba(233, 201, 143, .2);
  text-transform: uppercase;
}

body.el-op-history .el-history-table tbody td {
  padding: 10px 9px;
  color: var(--el-ink-deep);
  font-size: 11px;
  line-height: 1.45;
}

body.el-op-history .el-history-table tbody tr:hover {
  background: rgba(220, 236, 239, .42);
}

body.el-op-history .el-history-table tfoot input {
  min-height: 34px;
  border-color: rgba(190, 134, 65, .3);
  background: #fffdf7;
}

@media (max-width: 1120px) {
  body.el-op-account .el-main-inner,
  body.el-op-money .el-money-workspace > table > tbody > tr {
    grid-template-columns: 1fr;
  }

  body.el-op-account .el-route-strip,
  body.el-op-account .el-account-section-1,
  body.el-op-account .el-account-section-2,
  body.el-op-account .el-account-section-3 {
    grid-column: auto !important;
  }

  body.el-op-shop .el-shop-category-row {
    grid-template-columns: repeat(5, auto) minmax(170px, 1fr) auto;
  }
}

@media (max-width: 760px) {
  .el-route-strip {
    padding: 10px 12px;
  }

  .el-route-strip span:not(.el-route-glyph) {
    display: none;
  }

  body.el-op-shop .el-shop-character-step {
    grid-template-columns: 1fr;
  }

  body.el-op-shop .el-shop-character-step > .label-info {
    min-height: 34px;
  }

  body.el-op-shop .el-shop-category-row {
    display: flex !important;
    flex-wrap: wrap;
  }

  body.el-op-shop .el-shop-category-row input[type="text"] {
    flex: 1 1 180px;
  }

  body.el-op-money .el-money-admin-grid,
  body.el-op-top .el-main-inner > center > .row-fluid {
    grid-template-columns: 1fr;
  }

  body.el-op-top .el-class-matrix tbody {
    grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  }

  body.el-op-history .el-history-ledger > .row-fluid {
    align-items: stretch;
    flex-direction: column;
  }
}

/* v6.3 — force stable account columns and rebuild the shop purchase row. */
body.el-op-account .el-main-inner {
  width: 100%;
  grid-auto-flow: row;
}

body.el-op-account .el-route-strip {
  width: 100%;
  box-sizing: border-box;
}

body.el-op-account .el-account-section-1 {
  grid-column: 1 !important;
  grid-row: 2 !important;
}

body.el-op-account .el-account-section-2 {
  grid-column: 2 !important;
  grid-row: 2 !important;
}

body.el-op-account .el-account-section-3 {
  grid-column: 1 / -1 !important;
  grid-row: 3 !important;
}

body.el-op-shop .el-product-card {
  align-items: stretch !important;
  padding: 16px 14px 14px !important;
}

body.el-op-shop .el-product-card > hr:first-of-type {
  margin: 10px 0 12px;
}

body.el-op-shop .el-product-buy-row {
  display: grid;
  grid-template-columns: auto minmax(42px, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 38px;
  box-sizing: border-box;
  padding: 6px;
  border: 1px solid rgba(190, 134, 65, .24);
  background: rgba(245, 232, 206, .32);
}

body.el-op-shop .el-product-quantity {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  float: none !important;
  margin: 0 !important;
  white-space: nowrap;
}

body.el-op-shop .el-product-quantity .btn {
  display: grid;
  width: 28px;
  height: 28px;
  min-height: 0;
  box-sizing: border-box;
  margin: 0 !important;
  padding: 0 !important;
  place-items: center;
  color: var(--el-teal-deep);
  background: #fffaf0;
}

body.el-op-shop .el-product-quantity .shop_count,
body.el-op-shop .el-product-quantity .label {
  min-width: 18px;
  margin: 0;
  padding: 0;
  color: var(--el-ink-deep);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

body.el-op-shop .el-product-price {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  color: var(--el-ink-deep);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

body.el-op-shop .el-product-price .gold,
body.el-op-shop .el-product-price .silver {
  display: inline-flex !important;
  align-items: center;
  min-height: 22px;
  margin: 0;
  padding: 2px 4px 2px 20px;
  color: var(--el-ink-deep) !important;
  line-height: 1;
  background-position: 2px center;
  background-repeat: no-repeat;
}

body.el-op-shop .el-product-buy-action {
  float: none !important;
  margin: 0 !important;
}

body.el-op-shop .el-product-buy-action .btn {
  min-height: 30px;
  margin: 0 !important;
  padding: 7px 10px;
  border-color: var(--el-teal-deep);
  color: #fff !important;
  background: linear-gradient(135deg, var(--el-teal), var(--el-teal-deep));
  white-space: nowrap;
}

body.el-op-shop .el-product-buy-divider {
  width: 100%;
  margin: 9px 0;
  border-color: rgba(190, 134, 65, .2);
}

body.el-op-shop .el-product-card > .notification:not(.notification_discount) {
  align-self: center;
}

@media (max-width: 1120px) {
  body.el-op-account .el-account-section-1,
  body.el-op-account .el-account-section-2,
  body.el-op-account .el-account-section-3 {
    grid-column: 1 !important;
    grid-row: auto !important;
  }
}

@media (max-width: 520px) {
  body.el-op-shop .el-product-buy-row {
    grid-template-columns: 1fr;
  }

  body.el-op-shop .el-product-quantity,
  body.el-op-shop .el-product-price,
  body.el-op-shop .el-product-buy-action,
  body.el-op-shop .el-product-buy-action .btn {
    width: 100%;
    justify-content: center;
  }
}

/* v6.4 — real-width correction: no empty account column, no cramped price row. */
body.el-op-account .el-main-inner {
  display: flex !important;
  width: 100% !important;
  max-width: none !important;
  flex-direction: column;
  gap: 14px;
}

body.el-op-account .el-route-strip,
body.el-op-account .el-account-section-1,
body.el-op-account .el-account-section-2,
body.el-op-account .el-account-section-3 {
  display: block;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
  grid-column: auto !important;
  grid-row: auto !important;
  margin: 0 !important;
}

body.el-op-account .el-account-section .box,
body.el-op-account .el-account-section .box-content,
body.el-op-account .el-account-section .dataTables_wrapper {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
}

body.el-op-account #loginlogtable {
  width: 100% !important;
  table-layout: fixed;
}

body.el-op-account #loginlogtable th:nth-child(1),
body.el-op-account #loginlogtable td:nth-child(1) {
  width: 18%;
}

body.el-op-account #loginlogtable th:nth-child(2),
body.el-op-account #loginlogtable td:nth-child(2) {
  width: 18%;
}

body.el-op-account #loginlogtable th:nth-child(3),
body.el-op-account #loginlogtable td:nth-child(3) {
  width: 64%;
}

body.el-op-account .el-account-password #chpassform {
  max-width: 760px;
}

body.el-op-shop .el-product-buy-row {
  display: flex !important;
  width: 100%;
  min-height: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 10px;
}

body.el-op-shop .el-product-quantity {
  width: 100%;
  justify-content: center;
}

body.el-op-shop .el-product-price {
  display: flex;
  width: 100%;
  min-height: 30px;
  justify-content: center;
  gap: 12px;
  padding: 5px 0;
  border-top: 1px solid rgba(190, 134, 65, .18);
  border-bottom: 1px solid rgba(190, 134, 65, .18);
  font-size: 13px;
}

body.el-op-shop .el-product-price .gold,
body.el-op-shop .el-product-price .silver {
  min-width: 28px;
  box-sizing: border-box;
  justify-content: flex-start;
}

body.el-op-shop .el-product-buy-action,
body.el-op-shop .el-product-buy-action .btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
}

body.el-op-shop .el-product-buy-action .btn {
  min-height: 36px;
  padding: 9px 12px;
  text-align: center;
}

/* v6.5 — product editor: replace the collapsed legacy table with a real form. */
body.el-op-shop .el-shop-editor-row,
body.el-op-shop .el-shop-editor-panel {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
  margin: 14px 0 0 !important;
  float: none !important;
}

body.el-op-shop .el-shop-editor-panel {
  overflow: hidden;
  border: 1px solid rgba(190, 134, 65, .38);
  background: rgba(255, 250, 239, .96);
  box-shadow: 0 12px 34px rgba(54, 47, 31, .09);
}

body.el-op-shop .el-shop-editor-panel > .box-header {
  min-height: 46px;
  box-sizing: border-box;
  padding: 13px 16px;
  border: 0;
  color: #fff8e9;
  background:
    radial-gradient(circle at 94% 0, rgba(233, 201, 143, .16), transparent 30%),
    linear-gradient(110deg, var(--el-teal-deep), var(--el-teal));
}

body.el-op-shop .el-shop-editor-panel > .box-header h2 {
  color: #fff8e9 !important;
  font-family: var(--el-serif);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: .025em;
}

body.el-op-shop .el-shop-editor-panel > .box-content {
  padding: 18px;
  overflow: visible;
}

.el-shop-editor-intro {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 15px;
  padding: 11px 14px;
  border: 1px solid rgba(7, 85, 99, .2);
  border-left: 3px solid var(--el-teal);
  background: linear-gradient(90deg, rgba(220, 236, 239, .65), rgba(255, 250, 239, .38));
}

.el-shop-editor-intro strong {
  flex: 0 0 auto;
  color: var(--el-teal-deep);
  font-family: var(--el-serif);
  font-size: 15px;
  font-weight: 400;
}

.el-shop-editor-intro span {
  color: var(--el-muted);
  font-size: 11px;
}

body.el-op-shop .el-shop-editor-grid,
body.el-op-shop .el-shop-editor-grid > tbody {
  display: grid !important;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body.el-op-shop .el-shop-editor-grid > tbody {
  grid-column: 1 / -1;
}

body.el-op-shop .el-shop-editor-field {
  display: grid !important;
  min-width: 0;
  box-sizing: border-box;
  grid-template-columns: minmax(145px, .42fr) minmax(180px, 1fr);
  align-content: start;
  border: 1px solid rgba(190, 134, 65, .25) !important;
  background:
    radial-gradient(circle at 100% 0, rgba(220, 236, 239, .3), transparent 42%),
    #fffdf7 !important;
  box-shadow: 0 4px 14px rgba(54, 47, 31, .045);
}

body.el-op-shop .el-shop-editor-field.is-wide,
body.el-op-shop .el-shop-editor-submit {
  grid-column: 1 / -1;
}

body.el-op-shop .el-shop-editor-field > td {
  display: block !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  box-sizing: border-box;
  padding: 12px !important;
  border: 0 !important;
  color: var(--el-ink-deep);
  background: transparent !important;
  vertical-align: top !important;
}

body.el-op-shop .el-shop-editor-label {
  grid-column: 1;
  grid-row: 1;
  border-right: 1px solid rgba(190, 134, 65, .18) !important;
  background: rgba(245, 232, 206, .32) !important;
}

body.el-op-shop .el-shop-editor-label h3 {
  margin: 0 !important;
  color: var(--el-teal-deep);
  font-family: var(--el-sans);
  font-size: 11px !important;
  font-weight: 850;
  line-height: 1.35 !important;
  letter-spacing: .045em;
  overflow-wrap: normal !important;
  word-break: normal !important;
  text-transform: uppercase;
  white-space: normal;
}

body.el-op-shop .el-shop-editor-control {
  grid-column: 2;
  grid-row: 1;
}

body.el-op-shop .el-shop-editor-help {
  grid-column: 1 / -1;
  grid-row: 2;
  padding: 8px 12px 10px !important;
  border-top: 1px solid rgba(190, 134, 65, .14) !important;
  background: rgba(245, 232, 206, .2) !important;
}

body.el-op-shop .el-shop-editor-help:empty {
  display: none !important;
}

body.el-op-shop .el-shop-editor-help code {
  display: inline;
  padding: 0;
  border: 0;
  color: var(--el-muted);
  background: transparent;
  font-family: var(--el-sans);
  font-size: 10px;
  line-height: 1.45;
  white-space: normal;
}

body.el-op-shop .el-shop-editor-control input[type="text"],
body.el-op-shop .el-shop-editor-control textarea,
body.el-op-shop .el-shop-editor-control select {
  display: block;
  width: 100% !important;
  max-width: none !important;
  min-height: 40px;
  box-sizing: border-box;
  margin: 0 !important;
  padding: 8px 10px;
  border: 1px solid rgba(190, 134, 65, .34);
  color: var(--el-ink-deep);
  background: #fffefa;
  box-shadow: inset 0 1px 2px rgba(49, 43, 30, .035);
}

body.el-op-shop .el-shop-editor-control input:focus,
body.el-op-shop .el-shop-editor-control textarea:focus {
  outline: 0;
  border-color: var(--el-teal);
  box-shadow: 0 0 0 3px rgba(7, 85, 99, .09);
}

body.el-op-shop .el-shop-editor-field[data-field^="cost"] .el-shop-editor-control {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

body.el-op-shop .el-shop-editor-field[data-field^="cost"] .gold,
body.el-op-shop .el-shop-editor-field[data-field^="cost"] .silver {
  display: block !important;
  min-width: 0;
  padding-left: 22px;
  background-position: 2px 12px;
  background-repeat: no-repeat;
}

body.el-op-shop .el-shop-editor-field[data-field="data"] {
  grid-column: 1 / -1;
}

body.el-op-shop .el-shop-editor-field[data-field="data"] .el-shop-editor-control input {
  font-family: Consolas, monospace;
  font-size: 11px;
}

body.el-op-shop .el-shop-editor-field[data-field="discount-data"] textarea {
  min-height: 100px;
  resize: vertical;
}

body.el-op-shop .el-shop-editor-field[data-field="desc"] {
  grid-template-columns: minmax(145px, .22fr) minmax(320px, 1fr);
}

body.el-op-shop .el-shop-editor-field[data-field="desc"] .el-shop-editor-control center {
  display: block;
  text-align: left;
}

body.el-op-shop .el-shop-editor-field[data-field="desc"] .cleditorMain,
body.el-op-shop .el-shop-editor-field[data-field="desc"] iframe,
body.el-op-shop .el-shop-editor-field[data-field="desc"] textarea {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
}

body.el-op-shop .el-shop-editor-field[data-field="desc"] .cleditorMain {
  border-color: rgba(190, 134, 65, .34);
  background: #fffefa;
}

body.el-op-shop .el-shop-editor-help .btn {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin: 8px 0 0;
  color: #fff;
  background: var(--el-teal-deep);
}

body.el-op-shop .el-shop-editor-submit {
  display: block !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body.el-op-shop .el-shop-editor-submit td {
  display: block !important;
  padding: 4px 0 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body.el-op-shop .el-shop-editor-submit br {
  display: none;
}

body.el-op-shop .el-shop-editor-submit input[type="submit"] {
  width: 100%;
  min-height: 46px;
  box-sizing: border-box;
  margin: 0;
  border-color: #b4552b;
  color: #fff;
  background: linear-gradient(135deg, #d47a35, #b54827);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}

/* v6.7 — compact editor: full-width form, labels above controls. */
body.el-op-shop .el-shop-editor-content,
body.el-op-shop .el-shop-editor {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
}

body.el-op-shop .el-shop-editor-content {
  padding: 14px !important;
}

body.el-op-shop .el-shop-editor-intro {
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 10px !important;
}

body.el-op-shop .el-shop-editor-grid,
body.el-op-shop .el-shop-editor-grid > tbody {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

body.el-op-shop .el-shop-editor-field {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  align-content: stretch;
  border-radius: 3px;
}

body.el-op-shop .el-shop-editor-field[data-field="desc"] {
  grid-template-columns: minmax(0, 1fr);
}

body.el-op-shop .el-shop-editor-field > td {
  padding: 8px 10px !important;
}

body.el-op-shop .el-shop-editor-label,
body.el-op-shop .el-shop-editor-control,
body.el-op-shop .el-shop-editor-help {
  grid-column: 1;
  grid-row: auto;
}

body.el-op-shop .el-shop-editor-label {
  padding-bottom: 6px !important;
  border-right: 0 !important;
  border-bottom: 1px solid rgba(190, 134, 65, .16) !important;
}

body.el-op-shop .el-shop-editor-label h3 {
  font-size: 11px !important;
  line-height: 1.25 !important;
}

body.el-op-shop .el-shop-editor-control {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

body.el-op-shop .el-shop-editor-help {
  padding: 6px 10px 8px !important;
  color: var(--el-muted);
  background: rgba(245, 232, 206, .12) !important;
}

body.el-op-shop .el-shop-editor-help code {
  font-size: 10px;
  line-height: 1.35;
}

body.el-op-shop .el-shop-editor-control input[type="text"],
body.el-op-shop .el-shop-editor-control textarea,
body.el-op-shop .el-shop-editor-control select {
  min-height: 34px;
  padding: 6px 9px;
}

body.el-op-shop .el-shop-editor-field[data-field^="cost"] .gold,
body.el-op-shop .el-shop-editor-field[data-field^="cost"] .silver {
  background-position: 2px 9px;
}

@media (max-width: 980px) {
  body.el-op-shop .el-shop-editor-grid,
  body.el-op-shop .el-shop-editor-grid > tbody {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  body.el-op-shop .el-shop-editor-grid,
  body.el-op-shop .el-shop-editor-grid > tbody {
    grid-template-columns: 1fr;
  }

  .el-shop-editor-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  body.el-op-shop .el-shop-editor-field,
  body.el-op-shop .el-shop-editor-field[data-field="desc"] {
    grid-template-columns: 1fr;
  }

  body.el-op-shop .el-shop-editor-label,
  body.el-op-shop .el-shop-editor-control,
  body.el-op-shop .el-shop-editor-help {
    grid-column: 1;
    grid-row: auto;
  }

  body.el-op-shop .el-shop-editor-label {
    border-right: 0 !important;
    border-bottom: 1px solid rgba(190, 134, 65, .18) !important;
  }
}

/* v7 — full LK audit: predictable grids, one scroll owner, readable tables. */
body:is(
  .el-op-klan,
  .el-op-history,
  .el-op-loginlogs,
  .el-op-lklogs,
  .el-op-accounts,
  .el-op-online,
  .el-op-stat,
  .el-op-stattop,
  .el-op-config
) .el-main-inner {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: visible !important;
}

body:is(
  .el-op-klan,
  .el-op-history,
  .el-op-loginlogs,
  .el-op-lklogs,
  .el-op-accounts
) .dataTables_wrapper {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-color: rgba(190, 134, 65, .72) rgba(220, 236, 239, .38);
  scrollbar-width: thin;
}

body:is(
  .el-op-klan,
  .el-op-history,
  .el-op-loginlogs,
  .el-op-lklogs,
  .el-op-accounts
) .dataTables_wrapper::-webkit-scrollbar {
  height: 10px;
}

body:is(
  .el-op-klan,
  .el-op-history,
  .el-op-loginlogs,
  .el-op-lklogs,
  .el-op-accounts
) .dataTables_wrapper::-webkit-scrollbar-track {
  background: rgba(220, 236, 239, .38);
}

body:is(
  .el-op-klan,
  .el-op-history,
  .el-op-loginlogs,
  .el-op-lklogs,
  .el-op-accounts
) .dataTables_wrapper::-webkit-scrollbar-thumb {
  border: 2px solid rgba(220, 236, 239, .38);
  border-radius: 999px;
  background: rgba(7, 85, 99, .68);
}

body.el-op-klan #klanarttable {
  width: 100% !important;
  min-width: 1380px;
}

body.el-op-accounts #acctable {
  width: 100% !important;
  min-width: 1420px;
}

body.el-op-history .dataTables_wrapper > table,
body.el-op-lklogs .dataTables_wrapper > table {
  width: 100% !important;
  min-width: 1040px;
}

body.el-op-loginlogs .dataTables_wrapper > table {
  width: 100% !important;
  min-width: 920px;
}

body:is(.el-op-history, .el-op-loginlogs, .el-op-lklogs, .el-op-accounts, .el-op-klan) .dataTables_wrapper th {
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}

body:is(.el-op-history, .el-op-loginlogs, .el-op-lklogs) .dataTables_wrapper td:last-child {
  min-width: 210px;
  white-space: normal;
}

body:is(.el-op-history, .el-op-loginlogs, .el-op-lklogs, .el-op-accounts, .el-op-klan) .dataTables_wrapper th:first-child,
body:is(.el-op-history, .el-op-loginlogs, .el-op-lklogs, .el-op-accounts, .el-op-klan) .dataTables_wrapper td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  box-shadow: 1px 0 rgba(190, 134, 65, .2);
}

body:is(.el-op-history, .el-op-loginlogs, .el-op-lklogs, .el-op-accounts, .el-op-klan) .dataTables_wrapper tbody td:first-child {
  background: #fffdf7;
}

body:is(.el-op-history, .el-op-loginlogs, .el-op-lklogs, .el-op-accounts, .el-op-klan) .dataTables_wrapper thead th:first-child,
body:is(.el-op-history, .el-op-loginlogs, .el-op-lklogs, .el-op-accounts, .el-op-klan) .dataTables_wrapper tfoot th:first-child,
body:is(.el-op-history, .el-op-loginlogs, .el-op-lklogs, .el-op-accounts, .el-op-klan) .dataTables_wrapper tfoot td:first-child {
  z-index: 3;
  background: #f1e5ca;
}

body:is(.el-op-history, .el-op-loginlogs, .el-op-lklogs, .el-op-accounts, .el-op-klan) tfoot input.search_init,
body:is(.el-op-history, .el-op-loginlogs, .el-op-lklogs, .el-op-accounts, .el-op-klan) tfoot input.search_focus {
  min-width: 110px;
  box-sizing: border-box;
}

/* Statistics: remove Bootstrap offsets and build an explicit report grid. */
body:is(.el-op-online, .el-op-stat, .el-op-stattop) .el-main-inner > .row-fluid {
  display: grid !important;
  width: 100% !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
  margin: 0 0 12px !important;
}

body:is(.el-op-online, .el-op-stat, .el-op-stattop) .el-main-inner > .row-fluid::before,
body:is(.el-op-online, .el-op-stat, .el-op-stattop) .el-main-inner > .row-fluid::after {
  display: none !important;
}

body:is(.el-op-online, .el-op-stat, .el-op-stattop) .el-main-inner > .row-fluid > [class*="span"] {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  box-sizing: border-box;
  margin: 0 !important;
  float: none !important;
}

body:is(.el-op-online, .el-op-stat, .el-op-stattop) .el-main-inner > .row-fluid > :only-child,
body.el-op-stat .el-main-inner > .row-fluid > .box:has(table.table) {
  grid-column: 1 / -1;
}

body:is(.el-op-online, .el-op-stat, .el-op-stattop) table th,
body:is(.el-op-online, .el-op-stat, .el-op-stattop) table td {
  word-break: normal !important;
  overflow-wrap: normal !important;
}

body.el-op-stat .box-content:has(> table.table) {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

body.el-op-stat .box-content > table.table {
  width: 100% !important;
  min-width: 1120px;
}

/* Character cards use the whole workspace instead of a narrow fixed strip. */
body.el-op-pers .el-shop-grid,
body.el-op-pers .row-fluid:has(.pers-block) {
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
}

/* Configuration: full-width cards and stable setting columns. */
body.el-op-config .tab-content,
body.el-op-config .tab-pane {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

body.el-op-config .el-main-inner > .row-fluid,
body.el-op-config .tab-pane > .row-fluid {
  display: grid !important;
  width: 100% !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
  margin: 0 0 12px !important;
}

body.el-op-config .el-main-inner > .row-fluid:has(> :only-child),
body.el-op-config .tab-pane > .row-fluid:has(> :only-child) {
  grid-template-columns: minmax(0, 1fr);
}

body.el-op-config .el-main-inner > .row-fluid::before,
body.el-op-config .el-main-inner > .row-fluid::after,
body.el-op-config .tab-pane > .row-fluid::before,
body.el-op-config .tab-pane > .row-fluid::after {
  display: none !important;
}

body.el-op-config .el-main-inner > .row-fluid > [class*="span"],
body.el-op-config .tab-pane > .row-fluid > [class*="span"] {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  box-sizing: border-box;
  margin: 0 !important;
  float: none !important;
}

body.el-op-config .table {
  width: 100% !important;
  min-width: 700px;
  table-layout: fixed;
}

body.el-op-config .table td:first-child {
  width: 25%;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}

body.el-op-config .table td:nth-child(2) {
  width: 40%;
}

body.el-op-config .table td:last-child {
  width: 35%;
  word-break: normal;
  overflow-wrap: break-word;
}

body.el-op-config .table code {
  word-break: normal;
  overflow-wrap: anywhere;
}

body.el-op-config #promo_gen,
body.el-op-config form#promo_gen {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  box-sizing: border-box;
  margin: 0 !important;
  float: none !important;
}

body.el-op-config #promo_gen table {
  width: 100% !important;
  max-width: none !important;
  table-layout: fixed;
}

body.el-op-config #promo_gen td:first-child {
  width: 190px;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}

body.el-op-config #promo_gen input,
body.el-op-config #promo_gen select,
body.el-op-config #promo_gen textarea {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
}

@media (max-width: 980px) {
  body:is(.el-op-online, .el-op-stat, .el-op-stattop) .el-main-inner > .row-fluid,
  body.el-op-config .el-main-inner > .row-fluid,
  body.el-op-config .tab-pane > .row-fluid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.el-op-config .nav-tabs {
    position: static;
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: thin;
  }

  body.el-op-config .nav-tabs > li {
    flex: 0 0 auto;
  }
}

/* v7.1 — targeted fixes discovered during the post-deploy verification. */
.el-table-scroll {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 7px;
  scrollbar-color: rgba(7, 85, 99, .7) rgba(220, 236, 239, .38);
  scrollbar-width: thin;
}

body.el-op-stat .el-stat-table-scroll > table {
  width: 100% !important;
  min-width: 920px;
  margin: 0 !important;
}

body.el-op-stat .box-content > table.table {
  width: 100% !important;
  min-width: 0 !important;
}

body.el-op-accounts .el-main-inner > .row-fluid:first-child {
  display: grid !important;
  width: 100% !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 10px !important;
}

body.el-op-accounts .el-main-inner > .row-fluid:first-child::before,
body.el-op-accounts .el-main-inner > .row-fluid:first-child::after {
  display: none !important;
}

body.el-op-accounts .el-main-inner > .row-fluid:first-child > .box {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  box-sizing: border-box;
  margin: 0 !important;
  float: none !important;
}

body.el-op-config #promo_table_wrapper {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
  scrollbar-color: rgba(7, 85, 99, .7) rgba(220, 236, 239, .38);
  scrollbar-width: thin;
}

body.el-op-config #promo_table {
  width: 100% !important;
  min-width: 1180px;
  table-layout: auto !important;
}

body.el-op-config #promo_table th,
body.el-op-config #promo_table td {
  width: auto !important;
  min-width: 82px;
  word-break: normal !important;
  overflow-wrap: normal !important;
  white-space: nowrap;
}

body.el-op-config #promo_table th:nth-child(2),
body.el-op-config #promo_table td:nth-child(2) {
  min-width: 240px;
}

body.el-op-config #promo_table th:last-child,
body.el-op-config #promo_table td:last-child {
  min-width: 150px;
}

body.el-op-config .table:not(#promo_table) td:first-child {
  width: 30%;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

body.el-op-config .table:not(#promo_table) td:nth-child(2) {
  width: 38%;
}

body.el-op-config .table:not(#promo_table) td:last-child {
  width: 32%;
}

body.el-op-stattop .chart-container.el-chart-empty {
  min-height: 0 !important;
  margin: 0 0 12px !important;
}

body.el-op-stattop .el-chart-empty-state {
  display: flex !important;
  height: 96px !important;
  min-height: 96px !important;
  max-height: 96px !important;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 18px;
  border: 1px dashed rgba(7, 85, 99, .28);
  color: var(--el-muted);
  background: linear-gradient(135deg, rgba(220, 236, 239, .42), rgba(255, 250, 239, .88));
  text-align: center;
}

body.el-op-stattop .el-chart-empty-state strong {
  color: var(--el-teal-deep);
  font-family: var(--el-serif);
  font-size: 16px;
  font-weight: 400;
}

body.el-op-stattop .el-chart-empty-state span {
  font-size: 11px;
}

@media (max-width: 760px) {
  body.el-op-accounts .el-main-inner > .row-fluid:first-child {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* v7.3 — system tab must never inherit Bootstrap span offsets. */
body.el-op-config #system {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

body.el-op-config #system > p {
  margin: 0 0 8px;
}

body.el-op-config #system > .row-fluid {
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  box-sizing: border-box;
  margin: 0 0 10px !important;
}

body.el-op-config #system > .row-fluid:has(> .box:only-child) {
  grid-template-columns: minmax(0, 1fr);
}

body.el-op-config #system > .row-fluid::before,
body.el-op-config #system > .row-fluid::after {
  display: none !important;
}

body.el-op-config #system > .row-fluid > .box {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  box-sizing: border-box;
  margin: 0 !important;
  float: none !important;
  align-self: stretch;
}

body.el-op-config #system > .row-fluid > .box .box-content {
  min-height: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
}

@media (max-width: 760px) {
  body.el-op-config #system > .row-fluid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* v7.4 — second full visual QA pass. */
body.el-op-config #myTabContent > .tab-pane {
  display: none;
}

body.el-op-config #myTabContent > .tab-pane.active {
  display: block;
}

body.el-op-config .box-header {
  position: static !important;
  top: auto !important;
}

body.el-op-shop .el-shop-category-row {
  width: 100%;
  max-width: none;
  grid-template-columns:
    minmax(120px, 180px)
    repeat(4, auto)
    minmax(220px, 1fr)
    auto;
}

body.el-op-shop .row-fluid:has(.shop-block) {
  width: 100%;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

body.el-op-shop .el-product-card {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
}

@media (max-width: 760px) {
  body.el-op-accounts .el-main-inner > .row-fluid:has(#role_id_edit) {
    display: grid !important;
    width: 100% !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 9px;
  }

  body.el-op-accounts .el-main-inner > .row-fluid:has(#role_id_edit) > .box {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    box-sizing: border-box;
    margin: 0 !important;
    float: none !important;
  }

  body:is(.el-op-online, .el-op-stat) .dataTables_wrapper > .row-fluid:first-child {
    display: flex !important;
    align-items: stretch !important;
    flex-direction: column !important;
    gap: 8px;
    min-height: 0;
    margin: 0 0 12px !important;
  }

  body:is(.el-op-online, .el-op-stat) .dataTables_wrapper .dataTables_length,
  body:is(.el-op-online, .el-op-stat) .dataTables_wrapper .dataTables_filter {
    display: block;
    width: 100% !important;
    min-width: 0;
    min-height: 44px;
    height: auto !important;
    box-sizing: border-box;
    margin: 0 !important;
    float: none !important;
    line-height: 1.45;
  }

  body:is(.el-op-online, .el-op-stat) .dataTables_wrapper .dataTables_length label,
  body:is(.el-op-online, .el-op-stat) .dataTables_wrapper .dataTables_filter label {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 40px;
    margin: 0;
  }

  body.el-op-top .el-class-matrix tbody {
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  }

  body.el-op-shop .row-fluid:has(.shop-block) {
    grid-template-columns: minmax(0, 1fr);
  }

  body.el-op-shop .el-shop-category-row {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  body.el-op-top .el-class-stat {
    padding: 5px 7px;
    font-size: 11px;
  }

  body.el-op-top .el-class-stat small {
    font-size: 10px;
  }

  body.el-op-top .el-class-stat b {
    font-size: 11px;
  }
}

/* v7.5 — remove legacy spacer nodes and mobile DataTables height collapse. */
body.el-op-shop .el-shop-category-row > br {
  display: none !important;
}

@media (max-width: 760px) {
  body:is(.el-op-online, .el-op-stat) .el-main-inner > div.span3:has(.dataTables_length),
  body:is(.el-op-online, .el-op-stat) .el-main-inner > div.span3:has(.dataTables_filter) {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 60px !important;
    box-sizing: border-box;
    margin: 0 0 9px !important;
    float: none !important;
    overflow: visible !important;
  }

  body:is(.el-op-online, .el-op-stat) .el-main-inner > div.span3 .dataTables_length,
  body:is(.el-op-online, .el-op-stat) .el-main-inner > div.span3 .dataTables_filter,
  body:is(.el-op-online, .el-op-stat) .el-main-inner > div.span3 .dataTables_length form,
  body:is(.el-op-online, .el-op-stat) .el-main-inner > div.span3 .dataTables_filter form {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 60px !important;
    box-sizing: border-box;
    margin: 0 !important;
  }
}

/* Shop — uniform product card grid (v8.0.6) */
body.el-op-shop .row-fluid:has(.shop-block),
body.el-op-shop .el-shop-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(240px, 240px)) !important;
  justify-content: start !important;
  gap: 16px !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: none !important;
  margin: 14px 0 !important;
}

body.el-op-shop .row-fluid:has(.shop-block)::before,
body.el-op-shop .row-fluid:has(.shop-block)::after,
body.el-op-shop .el-shop-grid::before,
body.el-op-shop .el-shop-grid::after {
  display: none !important;
  content: none !important;
}

body.el-op-shop .shop-block.el-product-card {
  width: 100% !important;
  max-width: none !important;
  height: 100%;
  min-height: 320px;
  box-sizing: border-box;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  padding: 14px 12px 12px !important;
}

body.el-op-shop .el-product-layout {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

body.el-op-shop .el-product-head {
  flex: 0 0 auto;
  text-align: center;
}

body.el-op-shop .el-product-head > img,
body.el-op-shop .el-product-card .el-product-head img {
  width: 56px !important;
  height: 56px !important;
  margin: 0 auto 8px !important;
  display: block;
}

body.el-op-shop .el-product-name {
  min-height: 42px;
  max-height: 42px;
  margin: 0 !important;
  overflow: hidden;
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  text-align: center;
  place-items: center;
}

body.el-op-shop .el-product-actions {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  min-height: 136px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(190, 134, 65, 0.2);
}

body.el-op-shop .el-product-actions > hr {
  display: none !important;
  margin: 0 !important;
}

body.el-op-shop .el-product-buy-row {
  width: 100%;
}

body.el-op-shop .el-product-foot {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  margin-top: auto;
  padding-top: 8px;
}

body.el-op-shop .el-product-foot:empty {
  display: none;
}

body.el-op-shop .el-product-foot .notification {
  width: auto;
  max-width: 100%;
  margin: 0 !important;
}

body.el-op-shop .el-product-admin {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px;
  max-width: calc(100% - 16px);
}

body.el-op-shop .el-product-admin .notification {
  position: static !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  min-width: 26px;
  min-height: 26px;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(190, 134, 65, 0.42) !important;
  border-radius: 8px !important;
  background: rgba(255, 250, 239, 0.96) !important;
  box-shadow: 0 2px 8px rgba(54, 47, 31, 0.08);
}

body.el-op-shop .el-product-admin .notification a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

body.el-op-shop .el-product-admin .notification_adm_edit {
  background: linear-gradient(180deg, #fff8ea, #f3e4c6) !important;
}

body.el-op-shop .el-product-admin .notification_adm_delete {
  background: rgba(255, 236, 232, 0.96) !important;
  border-color: rgba(166, 63, 50, 0.35) !important;
}

body.el-op-shop .el-product-admin .notification_adm_clone {
  background: rgba(232, 246, 236, 0.96) !important;
  border-color: rgba(47, 118, 93, 0.35) !important;
}

body.el-op-shop .el-product-admin .notification_adm_buycount {
  width: auto;
  min-width: 24px;
  height: 22px;
  min-height: 22px;
  padding: 0 7px !important;
  border-color: var(--el-teal-deep) !important;
  border-radius: 999px !important;
  background: linear-gradient(145deg, var(--el-teal), var(--el-teal-deep)) !important;
  color: #fff !important;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
}

body.el-op-shop .el-product-head {
  padding-top: 4px;
}

@media (max-width: 520px) {
  body.el-op-shop .row-fluid:has(.shop-block),
  body.el-op-shop .el-shop-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.el-op-shop .shop-block.el-product-card {
    min-height: 0;
  }

  body.el-op-shop .el-product-actions {
    min-height: 0;
  }
}

/* Admin log tables — readable rows after Aurelis layout pass */
body:is(.el-op-loginlogs, .el-op-lklogs) .el-admin-log-ledger,
body:is(.el-op-loginlogs, .el-op-lklogs) .dataTables_wrapper {
  min-height: 240px;
}

body:is(.el-op-loginlogs, .el-op-lklogs) .dataTables_wrapper tbody td {
  color: var(--el-ink-deep) !important;
  background: #fffdf7;
  vertical-align: middle;
}

body:is(.el-op-loginlogs, .el-op-lklogs) .dataTables_wrapper tbody tr.plus td {
  background: rgba(224, 255, 224, 0.58) !important;
}

body:is(.el-op-loginlogs, .el-op-lklogs) .dataTables_wrapper tbody tr.minus td {
  background: rgba(255, 224, 224, 0.58) !important;
}

body:is(.el-op-loginlogs, .el-op-lklogs) .dataTables_wrapper .dataTables_info,
body:is(.el-op-loginlogs, .el-op-lklogs) .dataTables_wrapper .dataTables_length,
body:is(.el-op-loginlogs, .el-op-lklogs) .dataTables_wrapper .pagination {
  display: block !important;
}
