@font-face {
  font-family: 'SmallestPixel7';
  src: url('smallest_pixel-7.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
}

body {
  background-color: #0c0c0c;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'SmallestPixel7', monospace;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: unset;
  image-rendering: pixelated;
}

/* Внешняя рамка LinoriaLib */
.panel {
  width: 270px;
  background-color: #000000;
  padding: 1px;
  border-radius: 4px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.85);
  transition: width 0.2s ease;
}

.panel.dash-mode {
  width: 320px;
}

/* Внутренняя панель */
.panel-inner {
  background-color: #181818;
  border: 1px solid #262626;
  border-radius: 3px;
  padding: 16px 14px 14px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
}

/* Название classical.pw */
.title {
  font-size: 19px;
  color: #ffffff;
  letter-spacing: 1px;
  text-shadow: 1px 1px 0px #000;
}

.title span {
  color: #c8a5af;
}

/* Вкладки Dashboard */
.dash-tabs {
  width: 100%;
  display: flex;
  gap: 4px;
}

.dash-tab-btn {
  flex: 1;
  height: 24px;
  background-color: #121212;
  border: 1px solid #262626;
  border-radius: 3px;
  color: #777777;
  font-family: 'SmallestPixel7', monospace;
  font-size: 13px;
  cursor: pointer;
  outline: none;
  transition: all 0.12s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dash-tab-btn:hover {
  color: #cccccc;
  border-color: #383838;
}

.dash-tab-btn.active {
  color: #c8a5af;
  border-color: #c8a5af;
  background-color: #1c181e;
}

.dash-tab-btn.hidden {
  display: none;
}

/* Переключение страниц дэшборда */
.dash-view {
  width: 100%;
  display: none;
}

.dash-view.active {
  display: block;
}

/* PROFILE TAB */
.profile-box {
  background-color: #121212;
  border: 1px solid #222222;
  border-radius: 3px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.profile-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.p-label {
  color: #777777;
}

.p-value {
  color: #ffffff;
}

.font-muted {
  color: #555555;
}

.active-val {
  color: #6fd08c;
}

/* Разделитель */
.dash-divider {
  width: 100%;
  height: 1px;
  background-color: #242424;
}

/* Сетка тарифов 30 / 90 / 180 / 360 */
.sub-plans-label {
  width: 100%;
  font-size: 13px;
  color: #888888;
  margin-bottom: 6px;
  text-align: left;
}

.plans-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 8px;
}

.plan-card {
  background-color: #121212;
  border: 1px solid #242424;
  border-radius: 3px;
  padding: 7px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  transition: all 0.12s ease;
}

.plan-card:hover {
  border-color: #444444;
  background-color: #161616;
}

.plan-card.active {
  border-color: #c8a5af;
  background-color: #1c181e;
}

.plan-days {
  font-size: 17px;
  color: #ffffff;
}

.plan-card.active .plan-days {
  color: #c8a5af;
}

.plan-price {
  font-size: 12px;
  color: #888888;
}

/* Методы оплаты */
.pay-methods {
  width: 100%;
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.pay-method {
  flex: 1;
  height: 22px;
  background-color: #121212;
  border: 1px solid #242424;
  border-radius: 3px;
  color: #777777;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.12s ease;
}

.pay-method:hover {
  border-color: #444444;
  color: #aaaaaa;
}

.pay-method.active {
  border-color: #c8a5af;
  color: #ffffff;
  background-color: #1c181e;
}

/* LOADER TAB (ГЕНЕРАЦИЯ СКРИПТА) */
.loader-box {
  background-color: #121212;
  border: 1px solid #222222;
  border-radius: 3px;
  padding: 8px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.token-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.token-lbl {
  color: #666666;
}

.token-val {
  color: #c8a5af;
}

.script-textarea {
  width: 100%;
  height: 64px;
  background-color: #0c0c0c;
  border: 1px solid #1f1f1f;
  border-radius: 2px;
  color: #a0a0a0;
  font-family: 'SmallestPixel7', monospace;
  font-size: 12px;
  padding: 6px;
  resize: none;
  outline: none;
  word-break: break-all;
  user-select: text;
  -webkit-font-smoothing: none;
}

.script-textarea:focus {
  border-color: #c8a5af;
  color: #ffffff;
}

/* Кнопки */
.buttons {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.btn {
  width: 100%;
  height: 28px;
  background-color: #141414;
  border: 1px solid #262626;
  border-radius: 3px;
  color: #d0d0d0;
  font-family: 'SmallestPixel7', monospace;
  font-size: 15px;
  cursor: pointer;
  outline: none;
  transition: all 0.12s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 1px 1px 0px #000;
  -webkit-font-smoothing: none;
  text-decoration: none;
}

.btn:hover {
  border-color: #c8a5af;
  color: #ffffff;
  background-color: #1e1b1d;
}

.btn:active {
  background-color: #2b2327;
  transform: translateY(1px);
}

.btn-secondary {
  color: #888888;
  height: 24px;
  font-size: 13px;
}

.btn-secondary:hover {
  color: #bbbbbb;
  border-color: #444444;
  background-color: #161616;
}

.btn-purchase {
  background-color: #17151a;
  border-color: #3b2c35;
  color: #c8a5af;
}

.btn-purchase:hover {
  background-color: #231c26;
  border-color: #c8a5af;
  color: #ffffff;
}

.btn-generate {
  background-color: #1b1720;
  border-color: #4a3442;
  color: #ffffff;
}

.btn-generate:hover {
  background-color: #261f2e;
  border-color: #c8a5af;
}

.btn-disabled {
  opacity: 0.4;
  cursor: not-allowed !important;
  border-color: #222 !important;
  color: #555 !important;
  background-color: #111 !important;
}

/* Формы */
.form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input {
  width: 100%;
  height: 26px;
  background-color: #121212;
  border: 1px solid #262626;
  border-radius: 3px;
  color: #ffffff;
  font-family: 'SmallestPixel7', monospace;
  font-size: 14px;
  padding: 0 8px;
  outline: none;
  -webkit-font-smoothing: none;
  transition: border-color 0.12s ease;
}

.input::placeholder {
  color: #555555;
}

.input:focus {
  border-color: #c8a5af;
}

/* Статус */
.status-msg {
  font-size: 13px;
  min-height: 14px;
  text-align: center;
  width: 100%;
  display: none;
}

.status-msg.error {
  display: block;
  color: #ff4a4a;
}

.status-msg.success {
  display: block;
  color: #6fd08c;
}
