:root {
  --bg: #eceff3;
  --primary: #3398ff;
  --orange: #ffb100;
  --orange-dark: #db8e00;
  --card: #ffffff;
  --text: #1d2433;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.10);
  --shadow-soft: 0 6px 18px rgba(0, 0, 0, 0.08);
  --ease: cubic-bezier(0.2, 0.85, 0.2, 1);
}

* {
  box-sizing: border-box;
  font-family: "Manrope", Inter, Arial, sans-serif;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-weight: 700;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page {
  flex: 1 0 auto;
}

.footer {
  margin-top: auto;
}

.loading-screen {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(1200px 600px at 40% 20%, rgba(51,152,255,0.18), transparent 55%),
    radial-gradient(900px 450px at 80% 30%, rgba(255,177,0,0.18), transparent 60%),
    var(--bg);
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms var(--ease);
}

.loading-screen.is-open {
  opacity: 1;
  pointer-events: auto;
}

.loading-card {
  width: min(980px, calc(100vw - 24px));
  border-radius: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  transform: translateY(10px);
  animation: floatIn 520ms var(--ease) both;
}

.loading-top {
  display: flex;
  gap: 12px;
  align-items: center;
}

.loading-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #dbeaff;
}

.loading-lines {
  display: grid;
  gap: 8px;
}

.loading-line {
  height: 12px;
  border-radius: 10px;
  background: #dbeaff;
}

.loading-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.loading-skel {
  height: 140px;
  border-radius: 16px;
  background: #dbeaff;
}

.loading-hint {
  margin-top: 14px;
  font-weight: 800;
  color: #40536e;
}

.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.55) 50%, rgba(255,255,255,0) 100%);
  transform: translateX(-100%);
  animation: shimmer 1100ms linear infinite;
}

.error-view,
.notfound-view {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 450;
  background: radial-gradient(1100px 550px at 40% 20%, rgba(51,152,255,0.15), transparent 55%),
    radial-gradient(900px 450px at 80% 30%, rgba(255,177,0,0.15), transparent 60%),
    var(--bg);
}

.error-card {
  width: min(720px, calc(100vw - 24px));
  border-radius: 18px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  animation: floatIn 520ms var(--ease) both;
}

.error-code {
  font-weight: 1000;
  letter-spacing: 2px;
  font-size: 44px;
  color: #2b73ca;
}

.error-title {
  margin-top: 8px;
  font-size: 26px;
  font-weight: 1000;
}

.error-subtitle {
  margin-top: 8px;
  color: #5a6d88;
  font-weight: 700;
  line-height: 1.35;
}

.error-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

.page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px;
}

.banlist-view {
  margin-top: 14px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(24, 48, 78, 0.10);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  animation: floatIn 260ms var(--ease) both;
}

.banlist-head {
  margin-bottom: 12px;
}

.banlist-title {
  margin: 0;
  font-size: 34px;
  font-weight: 1000;
  letter-spacing: -0.2px;
}

.banlist-subtitle {
  margin-top: 8px;
  color: rgba(20, 32, 54, 0.78);
  font-weight: 700;
  line-height: 1.35;
}

.banlist-search {
  margin-top: 12px;
}

.banlist-search input {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(24, 48, 78, 0.12);
  background: rgba(255,255,255,0.95);
  padding: 14px 16px;
  font-weight: 800;
}

.banlist-pager {
  margin-top: 12px;
  margin-bottom: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.banlist-pagebtn {
  border: 1px solid rgba(24, 48, 78, 0.14);
  background: rgba(255,255,255,0.9);
  color: rgba(20, 32, 54, 0.9);
  border-radius: 12px;
  min-width: 38px;
  height: 36px;
  padding: 0 12px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms var(--ease), filter 180ms var(--ease), box-shadow 180ms var(--ease), background-color 180ms var(--ease);
}

.banlist-pagebtn:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow: 0 8px 18px rgba(0,0,0,0.06);
}

.banlist-pagebtn.active {
  background: linear-gradient(180deg, #4baeff, #2887ff);
  border-color: rgba(40, 135, 255, 0.35);
  color: #fff;
}

.banlist-table {
  margin-top: 12px;
  display: grid;
  gap: 18px;
}

.banlist-row {
  display: grid;
  grid-template-columns: 1fr 0.7fr 1.2fr 1.2fr 2fr 1.2fr 0.9fr;
  gap: 12px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(255,255,255,0.90);
  border: 1px solid rgba(24, 48, 78, 0.08);
  box-shadow: 0 10px 24px rgba(0,0,0,0.045);
  transition: transform 240ms var(--ease), filter 240ms var(--ease), box-shadow 240ms var(--ease), opacity 240ms var(--ease);
}

.banlist-row:hover {
  transform: translateY(-1px);
  filter: brightness(1.01);
}

.banlist-row:not(.banlist-row-head) {
  opacity: 0;
  transform: translateY(10px);
}

.banlist-row.show,
.banlist-row.banlist-row-head {
  opacity: 1;
  transform: translateY(0);
}

.banlist-row > div {
  font-weight: 800;
}

.banlist-world {
  font-weight: 1000;
  font-size: 18px;
  letter-spacing: 0.2px;
  color: #1d2433;
  text-transform: uppercase;
}

.mc {
  font-weight: 900;
}
.mc-bold {
  font-weight: 1000;
}
.mc-italic {
  font-style: italic;
}
.mc-underline {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.mc-strike {
  text-decoration: line-through;
}

.banlist-row-head {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(24, 48, 78, 0.08);
  padding: 10px 12px;
  border-radius: 14px;
  color: rgba(20, 32, 54, 0.55);
  font-weight: 1000;
  font-size: 12px;
}

.exp-removed {
  font-weight: 1000;
  color: rgba(20, 32, 54, 0.72);
}

.banlist-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 1000;
  font-size: 12px;
  border: 1px solid rgba(24, 48, 78, 0.12);
}

.banlist-badge.ban {
  background: rgba(255, 92, 92, 0.12);
  color: #b00020;
}

.banlist-badge.mut {
  background: rgba(255, 176, 33, 0.14);
  color: #8a4b00;
}

.scr-link {
  font-weight: 1000;
  color: #2b8cff;
  text-decoration: none;
  border-bottom: 1px dotted rgba(43, 140, 255, 0.6);
}

.scr-link:hover {
  filter: brightness(1.03);
}

.scr-preview {
  position: fixed;
  z-index: 9999;
  width: 420px;
  height: 260px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(24, 48, 78, 0.18);
  box-shadow: 0 18px 48px rgba(0,0,0,0.24);
  background: #0b1220;
}

.scr-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@media (max-width: 980px) {
  .banlist-row {
    grid-template-columns: 1fr 0.7fr 1.2fr 1.2fr;
    grid-auto-rows: auto;
  }
  .banlist-row > :nth-child(5),
  .banlist-row > :nth-child(6),
  .banlist-row > :nth-child(7) {
    display: none;
  }
  .banlist-row-head {
    display: none;
  }
}

@media (max-width: 768px) {
  .banlist-view {
    padding: 14px;
  }
  .banlist-title {
    font-size: 28px;
  }
  .banlist-subtitle {
    font-size: 14px;
  }
  .scr-preview {
    width: 320px;
    height: 200px;
  }
}

@media (max-width: 560px) {
  .banlist-pagebtn {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
  }
  .scr-preview {
    display: none;
  }
}

.topbar {
  display: grid;
  grid-template-columns: 180px 1fr 230px;
  gap: 16px;
  align-items: center;
}

.logo {
  font-weight: 800;
  font-size: 32px;
}

.menu {
  display: flex;
  gap: 24px;
  justify-content: center;
}

.menu a {
  text-decoration: none;
  color: #232a38;
  font-weight: 600;
  position: relative;
  padding-bottom: 2px;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  transition: opacity 160ms var(--ease), transform 160ms var(--ease), background-size 220ms var(--ease);
}

.menu a:hover {
  opacity: 0.85;
  transform: translateY(-1px);
  background-size: 100% 2px;
}

.modal-left input.input-invalid,
.rate-text.input-invalid {
  border-color: #ff6b6b;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.18);
  animation: shake 240ms var(--ease) both;
}

.status {
  background: #f4f7fb;
  border-radius: 14px;
  padding: 10px 14px;
  text-align: center;
}

.server-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 6px;
  border: 2px solid #d7e6ff;
}

.status-label {
  color: #6f7c92;
  font-size: 12px;
}

.status-ip {
  font-weight: 700;
  font-size: 14px;
}

.status-ip-btn {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: inherit;
  font: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 160ms var(--ease), opacity 160ms var(--ease);
}

.status-ip-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.status-online {
  margin-top: 6px;
  font-weight: 700;
}

.hero {
  margin-top: 18px;
  border-radius: 22px;
  background:
    radial-gradient(1100px 420px at 75% 10%, rgba(255, 255, 255, 0.28), transparent 60%),
    linear-gradient(120deg, #ffcb26 0%, #f6ad08 58%, #ee9800 100%);
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 20px;
  padding: 26px;
  box-shadow: 0 18px 40px rgba(173, 108, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-left {
  background: linear-gradient(150deg, rgba(255, 158, 24, 0.42), rgba(255, 122, 26, 0.12));
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
}

.hero-badge {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.hero-badge-image {
  width: 100%;
  max-width: 460px;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.25));
}

.hero-badge-main {
  display: inline-block;
  color: #fffbeb;
  background: linear-gradient(180deg, #7a1f00, #451000);
  border: 4px solid #ffbf4e;
  border-radius: 10px;
  padding: 6px 18px 8px;
  font-size: clamp(34px, 7vw, 66px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 2px;
  text-transform: uppercase;
  box-shadow: 0 8px 0 rgba(133, 64, 0, 0.38), 0 12px 24px rgba(0, 0, 0, 0.28);
}

.hero-badge-sub {
  display: inline-block;
  color: #dff8ff;
  background: linear-gradient(180deg, #1da4f2, #007acf);
  border: 3px solid #003f72;
  border-radius: 6px;
  padding: 4px 12px;
  font-size: clamp(14px, 2.2vw, 26px);
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(0, 38, 72, 0.35);
}

h1 {
  margin: 0;
  font-size: 42px;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.3px;
}

#heroSubtitle {
  margin: 8px 0 16px;
  font-weight: 700;
  color: rgba(20, 32, 54, 0.86);
}

.btn {
  border: none;
  border-radius: 9px;
  cursor: pointer;
  padding: 12px 18px;
  font-weight: 700;
  transition: transform 160ms var(--ease), filter 160ms var(--ease), box-shadow 160ms var(--ease), opacity 160ms var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow: var(--shadow-soft);
}

.btn:active {
  transform: translateY(0px) scale(0.99);
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: #39475e;
}

#heroPrimary,
#heroSecondary {
  min-height: 52px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 900;
}

#heroPrimary {
  background: linear-gradient(120deg, #4baeff, #2d8eff);
  box-shadow: 0 10px 20px rgba(51, 152, 255, 0.35);
}

#heroSecondary {
  background: #fff;
}

.highlight-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, 1fr);
}

.highlight {
  background: linear-gradient(180deg, #d08b00 0%, #c88400 100%);
  border-radius: 18px;
  padding: 10px 10px 12px;
  color: #fff;
  border: 2px solid rgba(122, 73, 0, 0.35);
  box-shadow: 0 8px 0 rgba(160, 94, 0, 0.28), 0 10px 18px rgba(0, 0, 0, 0.16);
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), filter 180ms var(--ease);
  overflow: hidden;
}

.highlight:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 0 rgba(160, 94, 0, 0.26), 0 16px 24px rgba(0, 0, 0, 0.2);
  filter: brightness(1.04);
}

.highlight .icon {
  font-size: 56px;
  margin-bottom: 10px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 183, 51, 0.95), rgba(224, 139, 0, 0.9));
  border: 2px solid rgba(121, 74, 0, 0.45);
  min-height: 110px;
  display: grid;
  place-items: center;
  text-shadow: 0 2px 0 rgba(130, 76, 0, 0.35);
}

.highlight > div:nth-child(2) {
  font-weight: 900;
  font-size: 18px;
  line-height: 1.1;
  color: #fff7e6;
  text-shadow: 0 1px 0 rgba(120, 68, 0, 0.4);
}

.highlight small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 248, 230, 0.95);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  text-shadow: 0 1px 0 rgba(120, 68, 0, 0.3);
}

.content {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 20px;
}

.sidebar-title {
  margin: 12px 0;
  color: #6b778f;
  font-size: 16px;
}

.mode-item,
.category-item {
  width: 100%;
  border: none;
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 10px;
  cursor: pointer;
  text-align: left;
  font-weight: 700;
  background: #dce8f8;
  color: #1f2d3f;
  transition: transform 170ms var(--ease), filter 170ms var(--ease), background 170ms var(--ease), color 170ms var(--ease);
}

.mode-item:hover,
.category-item:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.mode-item.active,
.category-item.active {
  background: linear-gradient(90deg, #4baeff, #2887ff);
  color: #fff;
}

.catalog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cards {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}

.cards.cards-anim .card {
  animation: cardIn 260ms var(--ease) both;
}

.cards.cards-anim .card:nth-child(1) { animation-delay: 0ms; }
.cards.cards-anim .card:nth-child(2) { animation-delay: 25ms; }
.cards.cards-anim .card:nth-child(3) { animation-delay: 50ms; }
.cards.cards-anim .card:nth-child(4) { animation-delay: 75ms; }
.cards.cards-anim .card:nth-child(5) { animation-delay: 100ms; }
.cards.cards-anim .card:nth-child(6) { animation-delay: 125ms; }
.cards.cards-anim .card:nth-child(7) { animation-delay: 150ms; }
.cards.cards-anim .card:nth-child(8) { animation-delay: 175ms; }

.card {
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  padding: 10px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card img {
  width: 100%;
  height: 160px;
  border-radius: 12px;
  object-fit: cover;
  object-position: center 22%;
  background: transparent;
  padding: 0;
  transform: scale(0.92);
  transform-origin: center center;
}

.card h4 {
  margin: 10px 0 8px;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 900;
  text-align: center;
}

.card h4.long-title {
  font-size: 24px;
  line-height: 1.2;
}

.price {
  font-size: 30px;
  font-weight: 900;
}

.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.history-btn {
  border: none;
  background: #dbeaff;
  color: #2b73ca;
  font-weight: 700;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  transition: transform 160ms var(--ease), filter 160ms var(--ease);
}

.history-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.35);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 190ms var(--ease);
}

.hidden {
  display: none;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: min(920px, calc(100vw - 24px));
  border-radius: 14px;
  background: #fff;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 16px;
  padding: 20px;
  position: relative;
  transform: translateY(8px) scale(0.99);
  opacity: 0;
  transition: transform 210ms var(--ease), opacity 210ms var(--ease);
}

.modal.is-open .modal-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.close-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  border: none;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
  transition: transform 160ms var(--ease), opacity 160ms var(--ease);
}

.close-btn:hover {
  opacity: 0.85;
  transform: rotate(6deg);
}

#durationList button {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  border: 2px solid #d2e4ff;
  background: #f3f9ff;
  border-radius: 8px;
  padding: 10px;
  text-align: left;
  font-weight: 700;
}

#durationList button.active {
  border-color: #4e9cff;
}

.modal-card.premium-mode #durationList button {
  border-width: 2px;
  border-color: rgba(255, 163, 20, 0.55);
  background: linear-gradient(180deg, #fff6dd 0%, #ffe6a9 100%);
  color: #5c3400;
  box-shadow: 0 6px 14px rgba(212, 134, 0, 0.18);
}

.modal-card.premium-mode #durationList button.active {
  border-color: #ff9e1a;
  background: linear-gradient(120deg, #ffd36b 0%, #ffb100 100%);
  color: #472700;
  box-shadow: 0 8px 18px rgba(212, 134, 0, 0.3);
}

.modal-left input {
  display: block;
  width: 100%;
  border-radius: 8px;
  border: 1px solid #87bbff;
  padding: 11px 10px;
  margin-bottom: 9px;
}

.modal-left h3 {
  font-weight: 900;
  margin-bottom: 4px;
}

.modal-left p {
  font-weight: 700;
}

.quantity-block p {
  margin: 8px 0 4px;
}

.quantity-control {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 8px;
  align-items: center;
}

.quantity-control #quantityInput {
  margin-bottom: 0;
  text-align: center;
  font-size: 24px;
  font-weight: 900;
  border-width: 2px;
}

.qty-btn {
  border: 2px solid #88beff;
  border-radius: 10px;
  background: linear-gradient(180deg, #f3f9ff, #ddebff);
  color: #2d5d97;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  height: 44px;
  cursor: pointer;
  transition: transform 140ms var(--ease), filter 140ms var(--ease), opacity 140ms var(--ease);
}

.qty-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.qty-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pay-methods {
  display: grid;
  gap: 8px;
}

.pay-method {
  border: 2px solid #8ec2ff;
  border-radius: 10px;
  background: #dcecff;
  padding: 10px 14px;
  font-weight: 800;
  width: 100%;
  margin-bottom: 0;
  cursor: pointer;
  transition: transform 150ms var(--ease), filter 150ms var(--ease), border-color 150ms var(--ease), background 150ms var(--ease);
}

.pay-method:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.pay-method.active {
  border-color: #2b8cff;
  background: linear-gradient(180deg, #e8f3ff 0%, #d8ebff 100%);
  box-shadow: 0 5px 14px rgba(43, 140, 255, 0.2);
}

.pay-btn {
  margin-top: 14px;
  width: 100%;
}

.pay-btn.loading {
  position: relative;
  overflow: hidden;
}

.pay-btn.loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0) 100%);
  transform: translateX(-100%);
  animation: shimmer 900ms linear infinite;
}

.terms {
  display: block;
  margin-top: 9px;
  color: #6a7890;
}

.modal-right {
  background: #ecf5ff;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.modal-item {
  display: flex;
  gap: 10px;
  align-items: center;
}

.modal-item img {
  width: 68px;
  height: 68px;
  border-radius: 12px;
  object-fit: cover;
}

.modal-desc {
  margin-top: 10px;
  flex: 1;
  max-height: none;
  overflow: auto;
}

.modal-desc-card {
  background: rgba(255, 255, 255, 0.74);
  border: 3px solid #4baeff;
  border-radius: 16px;
  padding: 16px 16px 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.modal-desc-section + .modal-desc-section {
  margin-top: 14px;
}

.modal-desc-title {
  font-size: 26px;
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0.15px;
  color: #2a86e8;
  margin-bottom: 10px;
}

.modal-desc-list {
  margin: 0;
  padding-left: 24px;
  display: grid;
  gap: 10px;
  color: #314f73;
  font-weight: 800;
  line-height: 1.4;
  font-size: 16px;
}

.modal-desc-list li::marker {
  color: #60b4ff;
  font-size: 16px;
}

.modal-desc-link {
  color: #244f86;
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
  font-weight: 900;
  transition: opacity 150ms var(--ease);
}

.modal-desc-link:hover {
  opacity: 0.82;
}

.promo-toggle {
  border: none;
  background: transparent;
  color: #385d87;
  font-size: 14px;
  line-height: 1;
  font-weight: 600;
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
  cursor: pointer;
  margin: 0 auto 8px;
  display: block;
  transition: opacity 160ms var(--ease), transform 160ms var(--ease);
}

.promo-toggle:hover {
  opacity: 0.82;
  transform: translateY(-1px);
}

.modal-desc-empty {
  color: #526c8c;
  font-weight: 700;
}

.promo-block {
  margin: 6px 0 10px;
}

.promo-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: stretch;
}

#promoInput {
  margin-bottom: 0;
  height: 46px;
}

.promo-apply {
  padding: 0 16px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  background: linear-gradient(90deg, #4baeff, #2887ff);
  color: #fff;
  font-weight: 900;
  border: 1px solid rgba(40, 135, 255, 0.35);
  box-shadow: 0 8px 18px rgba(40, 135, 255, 0.28);
}

.promo-apply:hover {
  filter: brightness(1.06);
  box-shadow: 0 12px 24px rgba(40, 135, 255, 0.34);
}

.promo-hint {
  margin-top: 6px;
  font-size: 12px;
  color: #6a7890;
  min-height: 16px;
}

.form-error {
  margin: 6px 0 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #ffecec;
  border: 1px solid rgba(162, 14, 14, 0.25);
  color: #a20e0e;
  font-weight: 900;
  transform: translateY(-6px);
  opacity: 0;
  transition: transform 220ms var(--ease), opacity 220ms var(--ease);
}

.form-error.show {
  transform: translateY(0px);
  opacity: 1;
}

.price-breakdown {
  margin-top: 6px;
  font-size: 12px;
  color: #40536e;
}

.break-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 3px;
}

.break-row.total {
  font-size: 13px;
  color: #1d2433;
}

.receipt-card {
  grid-template-columns: 1.1fr 0.9fr;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.receipt-title {
  margin: 0 0 6px;
}

.receipt-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 800;
  background: #eef5ff;
  color: #2b73ca;
}

.receipt-status.ok {
  background: #e9fff0;
  color: #187a36;
}

.receipt-status.wait {
  background: #fff7e5;
  color: #8a5a00;
}

.receipt-status.bad {
  background: #ffecec;
  color: #a20e0e;
}

.receipt-box {
  border: 2px solid #d2e4ff;
  background: #f3f9ff;
  border-radius: 12px;
  padding: 12px;
}

.receipt-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(120, 150, 190, 0.35);
}

.receipt-row:last-child {
  border-bottom: none;
}

.receipt-label {
  color: #6f7c92;
  font-size: 12px;
  font-weight: 700;
}

.receipt-value {
  font-weight: 800;
  color: #1f2d3f;
  word-break: break-word;
}

.receipt-actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

#receiptRefreshBtn,
#receiptCopyLinkBtn {
  background: linear-gradient(90deg, #4baeff, #2887ff);
  color: #ffffff;
  font-weight: 900;
  border: 1px solid rgba(40, 135, 255, 0.35);
  box-shadow: 0 10px 22px rgba(40, 135, 255, 0.28);
}

#receiptRefreshBtn:hover,
#receiptCopyLinkBtn:hover {
  box-shadow: 0 14px 28px rgba(40, 135, 255, 0.36);
  filter: brightness(1.05);
}

.receipt-details {
  margin-top: 10px;
  background: #0e1624;
  color: #d7e6ff;
  border-radius: 12px;
  padding: 12px;
  max-height: 220px;
  overflow: auto;
  white-space: pre;
  font-size: 12px;
}

.receipt-preview {
  background: #ecf5ff;
  border-radius: 12px;
  padding: 14px;
  border: 1px solid #cfe4ff;
}

.receipt-preview-title {
  font-weight: 900;
  font-size: 18px;
  margin-bottom: 6px;
}

.receipt-preview-desc {
  color: #4b5f7b;
  font-weight: 600;
}

.rate-card {
  margin-top: 12px;
  background: #ffffff;
  border-radius: 12px;
  padding: 14px;
  border: 1px solid #e2ebf7;
}

.rate-title {
  font-weight: 900;
  font-size: 18px;
}

.rate-subtitle {
  color: #6f7c92;
  font-weight: 700;
  margin-top: 4px;
}

.stars {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.star {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 26px;
  color: #c4d3e8;
  transition: transform 140ms var(--ease), color 140ms var(--ease);
}

.star:hover {
  transform: translateY(-1px);
}

.star.active {
  color: #ffb100;
}

.rate-text {
  margin-top: 10px;
  width: 100%;
  border-radius: 10px;
  border: 1px solid #cfe4ff;
  padding: 10px;
  resize: vertical;
  font-weight: 600;
}

.rate-hint {
  margin-top: 8px;
  font-size: 12px;
  color: #6a7890;
  min-height: 16px;
}

.history-card {
  grid-template-columns: 1fr;
  max-width: 760px;
}

.info-card {
  grid-template-columns: 1fr;
  max-width: 780px;
}

.info-title {
  margin: 0 0 8px;
  padding-right: 28px;
}

.info-text {
  border: 2px solid #d2e4ff;
  border-radius: 12px;
  background: #f3f9ff;
  padding: 12px;
}

.info-text p {
  margin: 0 0 10px;
  color: #2f4b6d;
  font-weight: 700;
  line-height: 1.4;
}

.info-text p:last-child {
  margin-bottom: 0;
}

.history-title {
  margin: 0 0 10px;
}

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

.history-item {
  border: 1px solid #cfe4ff;
  background: #f3f9ff;
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  text-align: left;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease), filter 160ms var(--ease);
}

.history-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
  filter: brightness(1.01);
}

.history-name {
  font-weight: 900;
}

.history-sub {
  color: #6f7c92;
  font-weight: 700;
  font-size: 12px;
  margin-top: 3px;
}

.history-meta {
  text-align: right;
  display: grid;
  gap: 4px;
  align-content: center;
}

.history-status {
  font-weight: 900;
  color: #2b73ca;
}

.history-amount {
  font-weight: 900;
}

.history-empty {
  margin-top: 8px;
  color: #6f7c92;
  font-weight: 700;
}

.toast-stack {
  position: fixed;
  right: 14px;
  bottom: 14px;
  display: grid;
  gap: 10px;
  z-index: 200;
}

.toast {
  background: rgba(16, 24, 39, 0.92);
  color: #fff;
  padding: 10px 12px;
  border-radius: 12px;
  min-width: 240px;
  box-shadow: var(--shadow);
  transform: translateY(8px);
  opacity: 0;
  transition: transform 190ms var(--ease), opacity 190ms var(--ease);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-success {
  background: rgba(20, 122, 54, 0.92);
}

.toast-error {
  background: rgba(162, 14, 14, 0.92);
}

/* Footer */
.footer {
  margin-top: 18px;
  background: linear-gradient(180deg, #17314c 0%, #10263a 100%);
  color: rgba(255, 255, 255, 0.86);
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px 16px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 22px;
}

.footer-brand-top {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-avatar {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.16);
}

.footer-name {
  font-weight: 1000;
  font-size: 22px;
  color: #ffffff;
}

.footer-sub {
  margin-top: 2px;
  font-weight: 800;
  color: rgba(255,255,255,0.65);
}

.footer-note {
  margin-top: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.72);
  line-height: 1.35;
}

.footer-legal {
  margin-top: 12px;
  display: grid;
  gap: 6px;
  font-weight: 800;
  color: rgba(255,255,255,0.72);
}

.footer-legal-row span {
  color: rgba(255,255,255,0.92);
}

.footer-title {
  font-weight: 1000;
  color: #ffffff;
  margin-bottom: 10px;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-weight: 800;
  transition: transform 160ms var(--ease), opacity 160ms var(--ease);
}

.footer-links a:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.footer-payments {
  display: grid;
  gap: 10px;
  color: rgba(255,255,255,0.75);
  font-weight: 800;
}

.contacts-card {
  max-width: 520px;
}

.contacts-subtitle {
  font-size: 30px;
  font-weight: 800;
  color: #274a77;
  margin-bottom: 10px;
}

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

.contact-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  background: #dce9fb;
  text-decoration: none;
  color: #274a77;
  font-size: 24px;
  font-weight: 700;
}

.contact-row b {
  font-size: 28px;
  font-weight: 900;
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(39, 74, 119, 0.35);
  font-size: 20px;
  font-weight: 900;
  flex: 0 0 36px;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0px) scale(1);
  }
}

@keyframes shake {
  0% { transform: translateX(0); }
  30% { transform: translateX(-3px); }
  60% { transform: translateX(3px); }
  100% { transform: translateX(0); }
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0px);
  }
}

@media (max-width: 980px) {
  .topbar,
  .hero,
  .content,
  .modal-card {
    grid-template-columns: 1fr;
  }

  .menu {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .highlight-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .receipt-row {
    grid-template-columns: 1fr;
  }

  .loading-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page {
    padding: 12px;
  }

  .logo {
    font-size: 28px;
  }

  h1 {
    font-size: 32px;
  }

  .hero {
    padding: 16px;
  }

  .hero-left {
    padding: 14px;
    min-height: 220px;
  }

  .cards {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  }

  .modal-card {
    width: min(920px, calc(100vw - 12px));
    padding: 14px;
  }
}

@media (max-width: 560px) {
  .page {
    padding: 10px;
  }

  .menu {
    gap: 12px;
  }

  .status {
    padding: 8px 10px;
  }

  .server-avatar {
    width: 48px;
    height: 48px;
  }

  .hero-badge {
    font-size: 30px;
  }

  #heroPrimary,
  #heroSecondary {
    font-size: 16px;
    min-height: 48px;
  }

  h1 {
    font-size: 26px;
  }

  .highlight-grid {
    grid-template-columns: 1fr;
  }

  .content {
    gap: 12px;
  }

  .catalog-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .card img {
    height: 180px;
  }

  .promo-top {
    grid-template-columns: 1fr;
  }

  .promo-apply {
    width: 100%;
  }

  .modal-desc-title {
    font-size: 20px;
  }

  .modal-desc-list {
    font-size: 15px;
  }

  .receipt-actions {
    flex-direction: column;
  }

  .receipt-actions .btn {
    width: 100%;
  }

  .footer-inner {
    padding: 18px 12px;
  }
}
