@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@100..900&display=swap");
@import url("/fonts/galldis.css");
@import url("/fonts/galldis.css");

:root {
  --font-family: "Inter", Arial, sans-serif;
  --font-montserrat: "Montserrat", Arial, sans-serif;
  --font-galldis: "Galldis", Arial, sans-serif;
  --primary: #fff;
  --primary-hover: #363679;
  --secondary: #6c757d;
  --secondary-hover: #5a6268;
  --success: #28a745;
  --error: #dc3545;
  --bg: #000;
  --surface: #251f1f;
  --text: #fff;
  --radius: 0.75rem;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
a {
  text-decoration: none;
  color: #fff;
}
html {
  /* 1600px baseline: scale root size between 12px and 16px */
  font-size: clamp(0.75rem, 1vw, 1rem);
}

body {
  overscroll-behavior: none; /* Chrome, Edge, Firefox */
  -webkit-overflow-scrolling: auto;
  font-family: var(--font-montserrat);
  position: relative;
  color: var(--text);
  margin: 0;
  padding: 2rem 0 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    /* градиент */ linear-gradient(180deg, #2a2a2a 0%, #000 100%),
    /* цвет подложки */ #fff;
  overflow-x: hidden;
}
body::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-image: url(./img/bg.svg);
  background-position: top;
  background-size: contain;
  z-index: -1000;
  opacity: 0.1;
  pointer-events: none;
}
.top-disable {
  overflow: hidden;
  height: 0px;
}

.section--disable {
  overflow: hidden;
  height: 0px;
}
div.subbox {
  min-width: 90%;
  max-width: 1200px;
  width: auto;
}
div.namecheap__container-active {
  margin: 0 auto;
  width: 647px;
  padding: 2rem 46px;
}
.zone__box-sub input[type="file"] {
  display: none;
}
.zone__box-sub span {
  display: inline-block;
  color: #fff;
  padding: 18px 0 23px 18px;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  font-size: 19px;
  line-height: 23px;
  width: 495px;
  font-family: var(--font-montserrat);
  background: rgba(255, 255, 255, 0.06800000369548798);
  border-radius: 20px;
  backdrop-filter: blur(15.15999984741211px);
  box-shadow: inset 1px 1px 5px 0 rgba(255, 255, 255, 0.13),
    inset 1px -1px 9px 4px rgba(255, 255, 255, 0.13),
    -2px -2px 12px -8px rgba(0, 0, 0, 0.15),
    -11px -10px 48px -12px rgba(0, 0, 0, 0.15);
  background: rgb(19 19 19 / 87%);
}
div.subbox {
  margin-bottom: 20px;
}
.subbox,
.container {
  position: relative;
  width: 100%;
  max-width: 70rem; /* 1280px */
  margin: 0 auto;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(55px);
  -webkit-backdrop-filter: blur(55px);
  background: rgba(77, 77, 77, 0.1);
  z-index: 10;
}
.domainer-page {
  max-width: max-content;
}
div.container__login {
  width: 592px;
  margin-top: 0;
  padding: 36px 50px 40px;
  border-radius: 15px;
}
.subbox::before,
.container::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 3px; /* толщина */
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.5),
    rgba(255, 255, 255, 0.1)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -10;
  pointer-events: none;
}
.container__top {
  max-width: 70rem; /* 1280px */
  width: 100%;
  margin: 0 auto;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  column-gap: 30px;
  z-index: 100;
}
.header {
  padding-left: 8rem;
  padding-right: 8rem;
}
h1,
h2 {
  color: var(--primary);
}

h1 {
  font-size: 3.0625rem; /* 49px */
  font-family: var(--font-galldis);
  font-style: italic;
  font-weight: 400;
  line-height: 4.125rem; /* 66px */
}

h2 {
  font-size: 1.5rem;
}
.header__links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  column-gap: 5.9375rem; /* 95px */
}
.link {
  font-style: italic;
  font-weight: 400;
  font-size: 1.875rem; /* 30px */
  line-height: 2.3125rem; /* 37px */
}

.header__link-active,
.header__link:hover {
  text-decoration: underline;
  scale: 1.02;
}
.title {
  font-weight: 900;
  font-size: 1.875rem; /* 30px */
  line-height: 2.3125rem; /* 37px */
  text-align: left;
  color: #ffffff;
  padding-bottom: 0.75rem; /* 12px */
  margin-bottom: 0;
}
.subtitle {
  font-style: normal;
  font-weight: 600;
  font-size: 1.875rem; /* 30px */
  line-height: 2.3125rem; /* 37px */
  text-align: left;
  color: #ffffff;
  padding-bottom: 1rem; /* 16px */
  margin-bottom: 0;
  margin-top: 0;
}
.header__boxLogin {
  display: flex;
  justify-content: space-between;
  align-items: center;
  column-gap: 20px;
}

.header__login:hover {
  scale: 1.1;
}
.cloud__wrapper {
  display: flex;
  column-gap: 5.8125rem; /* 93px */
  padding-bottom: 1.875rem; /* 30px */
}
.cloud__title {
  font-weight: 700;
  font-size: 2.5rem; /* 40px */
  line-height: 3.0625rem; /* 49px */
  text-align: center;
  text-transform: uppercase;
}

.cluod__subtitle {
  padding-bottom: 0.75rem; /* 12px */
  z-index: 1000;
}
.cloud__note {
  padding-top: 20px;
  font-size: 1rem; /* 16px */
  line-height: 1.1875rem; /* 19px */
  text-align: left;
  color: #ffffff;
  opacity: 0.77;
  font-family: var(--font-family);
}
label {
  font-weight: 600;
}
.cloud__box-btn {
  display: flex;
  align-items: center;
  column-gap: 40px;
}
.cloud__box {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}

input,
textarea,
select {
  color: #fff;
  padding: 1.125rem 0 1.4375rem 1.125rem; /* 18/23/18px */
  border: 1px solid #ccc;
  border-radius: var(--radius);
  font-size: 1.1875rem; /* 19px */
  line-height: 1.4375rem; /* 23px */
  width: 30.9375rem; /* 495px */
  font-family: var(--font-montserrat);

  background: rgba(255, 255, 255, 0.06800000369548798);

  border-radius: 1.25rem; /* 20px */

  backdrop-filter: blur(15.15999984741211px);
  box-shadow: inset 1px 1px 5px 0 rgba(255, 255, 255, 0.13),
    inset 1px -1px 9px 4px rgba(255, 255, 255, 0.13),
    -2px -2px 12px -8px rgba(0, 0, 0, 0.15),
    -11px -10px 48px -12px rgba(0, 0, 0, 0.15);
  background: rgb(19 19 19 / 87%);
}
.zone__form {
  display: flex;
  flex-direction: column;
}
.zone__btn {
  margin-left: auto;
}
.zone__wrapper-form {
  display: flex;
  flex-direction: column;
  row-gap: 20px;
  justify-content: space-between;
  margin-bottom: 20px;
}
.zone,
.dns,
.del {
  position: relative;
  padding-bottom: 2.1875rem; /* 35px */
}
.dns::after,
.del::after,
.zone::after {
  content: "";
  position: absolute;
  width: 80%;
  height: 1px;
  background: #fff;
  bottom: 0%;
  left: 50%;
  transform: translateX(-50%);
}
.zone__box-form,
.dns__form {
  display: flex;
  flex-direction: column;
  row-gap: 15px;
}
.zone__box-sub {
  padding-bottom: 16px;
}
.main__radion {
  margin-right: 20px;
}
.zone__top {
  display: flex;
  align-items: center;
}
.zone__form--item {
  display: inline-block;
  min-width: 70px;
}

.deploy {
  margin-top: 59px;
}
.deploy__buttons .btn {
  margin-right: 20px;
}
/* DNS SECTION */
.dns__wrapper {
  display: flex;
  justify-content: space-between;
}
.dns__box {
  display: flex;
  flex-direction: column;
  width: min-content;
}
.dns__btn {
  margin-top: 20px;
  margin-left: auto;
}

.dns__form-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 0.875rem; /* 14px */
}
.dns__form-box2 {
  display: flex;
  column-gap: 0.875rem; /* 14px */
}
.dns__form-input {
  max-width: 240px;
  
  width: 100%;
}
.input__counter {
  -moz-appearance: textfield;
}
.top__btn div {
  display: flex;
  column-gap: 20px;
}

.respons__modal {
  border: 2px solid #ffffff;
  background: linear-gradient(90deg, #61590f 0%, #2c2b2b 100%);
  color: #fff;
}
/* DEL SECTION */
.del__wrapper {
  display: flex;
  justify-content: space-between;
}

.del__form {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
}
.del__subtitle {
  padding-bottom: 48px;
}
.del__subtitles-spec {
  padding-bottom: 31px;
}
.del__form-wrapper {
  display: flex;
  align-items: flex-end;
  column-gap: 18px;
}

.del__form-box {
  display: flex;
  flex-direction: column;
  row-gap: 20px;
}

.del__textarea {
  width: 19rem;
}
.del__input {
  width: 13rem;
  height: fit-content;
}

/* SETTINGS SECTION */
.settings__form {
  display: flex;
  column-gap: 26px;
}
.settings__btn {
  margin: auto 0 0;
}

/* namecheap SECTION */
.result__disable {
  display: none;
  background: transparent;
  border: none;
  padding: 0;
}
.box__buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.domen__list {
  padding-left: 0;
  display: flex;
  align-items: center;
  row-gap: 8px;
  column-gap: 8px;
  flex-wrap: wrap;
}
.domen__item {
  list-style: none;
  padding: 9px 25px;
  border-radius: 12px;
  background-color: #999;
  cursor: pointer;
}
.namecheap__form {
  display: flex;
  flex-direction: column;
  row-gap: 18px;
  padding-bottom: 18px;
}
.namecheap__text {
  width: 551px;
  height: 224px;
}

.namecheap__btn,
.namecheap__button {
  margin-left: auto;
  font-weight: 700;
  font-size: 22px;
  text-align: center;
  color: #fff;
}
.namecheap__counter-box {
  width: 100%;
  display: flex;justify-content: space-between;
  position: relative;
}
.namecheap__counter-box--select {
  position: relative;
  display: flex;
  align-items: center;
  column-gap: 10px;
}
button.namecheap__counter--down,
button.namecheap__counter--up {
    right: 4%;
}
.namecheap__input {
  width: 336px;
}
.namecheap__button {
  width: 170px;
}
button.namecheap__counter--up {

}

.namecheap__label {
  font-weight: 500;
  font-size: 23px;
  color: #fff;
}
.updform {
  display: flex;
  flex-direction: column;
  row-gap: 18px;
}
.updform__wrapper {
  display: flex;
  justify-content: space-around;
  align-items: center;
  column-gap: 20px;
}
.updform__box {
  display: inline-block;
  max-width: 345px;
  width: 100%;
}
.updform__input {
  width: 100%;
  height: 224px;
}
.updform__btn {
  margin-left: auto;
  width: 170px;
  font-weight: 700;
  font-size: 22px;
  text-align: center;
  color: #fff;
}
.updform__box-row {
  font-weight: 900;
  font-size: 41px;
  color: #fff;
}

.result {
  padding: 20px;
  background: #000;
}
.balance {
  font-weight: 600;
  font-size: 24px;
  color: #fff;
}
.balance__text {
  font-weight: 500;
}

/* LOGIN PAGE */

.login__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 110px 172px 90px 153px;
}
.login__title {
  font-style: italic;
  font-weight: 400;
  font-size: 49px;
  color: #fff;
  margin: 0;
}
.login__link:hover {
  scale: 1.1;
}
.login__log {
  padding-bottom: 40px;
  font-weight: 800;
  font-size: 40px;
  text-transform: uppercase;
  color: #fff;
  margin: 0 auto;
  text-align: center;
}
.login__subtitle {
  font-weight: 600;
  font-size: 30px;
  color: #fff;
  padding-bottom: 17px;
  margin: 0;
}
.login__form {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: space-between;
}

.login__input {
  width: 100%;
  margin-bottom: 17px;
}

.login__btn {
  margin-left: auto;
  font-weight: 700;
  font-size: 22px;
  text-align: center;
  color: #fff;
  width: 186px;
  border-radius: 14px;
}

.login__footer {
  padding-top: 30rem;
  padding-bottom: 95px;
  font-style: italic;
  font-weight: 400;
  font-size: 49px;
  text-align: center;
  color: #fff;
  opacity: 0.15;
  font-family: var(--font-galldis);
  font-style: italic;
}

/* ADMIN PAGE */
#confirmDelete,
#cancelDelete {
  width: 50%;
  max-height: 47px;
  margin: 0;
}
#modalText {
  color: #000;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
}
#cancelDelete {
  background: #403b3b;
  color: #fff;
}
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.modal.hidden {
  display: none;
}
.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  min-width: 320px;
}
.modal-actions {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.container__admin--top {
  width: auto;
}
body.admin {
  padding-left: 20px;
  padding-right: 20px;
}
.container__admin {
  max-width: 100%;
  margin-bottom: 50px;
}
.panel {
  position: relative;
}
.panel__box {
  position: absolute;
  top: 50%;
  right: 0;
  display: flex;
  align-items: center;
  transform: translateY(-50%);
  column-gap: 20px;
}
div.panel__btn {
  margin-top: 0;
}
th.column-dep::before {
  content: "Деплойнуто";
}
.panel__title {
  text-align: center;
  font-weight: 800;
  font-size: 40px;
  text-transform: uppercase;
  color: #fff;
}
.admin__form {
  display: flex;
  flex-direction: column;
  width: 500px;
}
.admin__form-input {
  margin-bottom: 17px;
}
.admin__form-btn {
  margin-left: auto;
}
thead,
tbody {
  border-bottom: 2px solid rgb(255 255 255 / 10%);
}
.added__form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 15px;
}
.added__form-input {
  width: 100%;
}

.counter__panel .counter__btn {
  right: 2%;
}

.update__form {
  display: flex;
  flex-direction: column;
  width: 500px;
  row-gap: 17px;
}
.update__form > input,
.update__form > select {
  width: 100%;
}

.update__btn {
  margin-left: auto;
}
.users__title {
  padding-bottom: 23px;
}

.users__labels {
  margin: 0;
  display: grid;
  grid-template-columns: 0.5fr 1fr 1fr 1fr;
  list-style: none;
  padding: 0 0 15px 0;
  border-bottom: 2px solid;
  border-color: rgba(255, 255, 255, 0.4);
}
.user__data {
  display: grid;
  grid-template-columns: 0.5fr 1fr 1fr 1fr;
  list-style: none;
  padding: 15px 0 15px;
  margin: 0;
  align-items: center;
  border-bottom: 1px solid #6c757d;
}
.user__name {
  min-width: 240px;
}
.user__role {
  min-width: 100px;
  text-align: center;
  font-size: 18px;
}
.user__radio {
  box-shadow: none;
  border: none;
  width: auto;
}
.user__label:not(:first-child),
.user__item:not(:first-child) {
  text-align: center;
}
.users__label,
.user__item {
  font-weight: 600;
  font-size: 19px;
  line-height: 23px;
  color: #fff;
}

/* POPUP for Server Data S */
.serverRow {
  position: relative;
}
.data-server {
  position: absolute;
  top: 0;
  left: 10px;
  z-index: 10;
}
.data-server__list {
  position: relative;
  list-style: none;
  padding: 30px;
  margin: 0;
  border-radius: 20px;
  border: 1px solid #fff;
  display: flex;
  justify-content: center;
  flex-direction: column;
  row-gap: 10px;
  max-width: fit-content;
  font-size: 20px;
  background: #161718;
}
.data-server__close {
  position: absolute;
  width: 30px;
  height: 30px;
  right: 8px;
  top: 12px;
  cursor: pointer;
  text-align: center;
}
.data-server__close::before{
  content: '✕';
}
.data-server__item span {
  font-weight: 600;
  width: 100px;
  display: inline-block;
}
.hidden__list {
  display: none;
}
/* POPUP for Server Data E */

/* Скрываем стандартный radio */
.custom-radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Контейнер */
.custom-radio {
  position: relative;
  padding-left: 30px;
  cursor: pointer;
  font-size: 16px;
  user-select: none;
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
}

/* Внешний квадрат */
.custom-radio .checkmark {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 20px;
  width: 20px;
  background-color: transparent;
  border-radius: 6px;
  border: 1px solid #fff;
  transition: all 0.3s;
}

/* Галочка */
.custom-radio .checkmark::after {
  content: "";
  position: absolute;
  display: none;
}

/* Отображаем галочку только если выбрано */
.custom-radio input:checked ~ .checkmark::after {
  display: block;
}

/* Стили галочки */
.custom-radio .checkmark::after {
  left: 4px;
  top: -2px;
  width: 8px;
  height: 16px;
  border: solid #00ff9d;
  border-width: 2px 2px 0px 0px;
  transform: rotate(500deg);
}
.users__list--box {
  min-width: 300px;
}
.users__btn {
  display: flex;
  column-gap: 20px;
  justify-content: flex-end;
}

/* UPDATE-PAGE */
.update-page {
  align-items: center;
  width: 592px;
}

.update-page__btn {
  margin-top: 9px;
  margin-left: auto;
  width: 186px;
}

/* Counter styles with custom up/down arrows using /img/Polygon 2.svg */
.counter {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem; /* 8px */
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

.counter__btn {
  width: 1rem; /* 16px */
  height: 1rem; /* 16px */
  background-color: transparent;
  cursor: pointer;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0.75rem 0.75rem; /* 12px */
  z-index: 2;
}
.namecheap__counter--up,
.counter__btn--up {
  position: absolute;
  right: 8%;
  bottom: 0.5rem; /* 8px */
  background-image: url("/img/Polygon%202.svg");
  transform: rotate(0deg);
}
.namecheap__counter--down,
.counter__btn--down {
  position: absolute;
  right: 8%;
  top: 0.5rem; /* 8px */
  background-image: url("/img/Polygon%202.svg");
  transform: rotate(180deg);
}

.counter__btn:hover {
  filter: brightness(1.2);
}

.counter__btn--up:active {
  transform: rotate(0deg) scale(0.98);
}
.counter__btn--down:active {
  transform: rotate(180deg) scale(0.98);
}

/* Custom arrow for select using /img/Polygon 2.svg */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.75rem; /* 44px space for the arrow */
  background-image: url("/img/Polygon%202.svg");
  background-repeat: no-repeat;
  background-position: right 1rem center; /* 16px */
  background-size: 0.75rem 0.75rem; /* 12px */
}

/* Hide default arrow in older IE/Edge */
select::-ms-expand {
  display: none;
}
/* 
input[autocomplete="off"],
input[autocomplete="new-password"] {
  background-color: #f9f9f9;
} */

textarea {
  resize: vertical;
}

button,
.btn {
  display: inline-block;
  padding: 12px 9px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.15s ease;
}

button:disabled,
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary,
button[type="submit"] {
  position: relative;
  z-index: 0;
  overflow: hidden;
  border: 2px solid #ffffff;
  color: #fff;
  cursor: pointer;
  background: none; /* градиенты рисуем псевдо-элементами */
}

/* базовый градиент (обычное состояние) */
.btn-primary::before,
button[type="submit"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #00786a 0%, #000 100%);
  opacity: 1;
  transition: opacity 0.4s ease;
  z-index: -1; /* ниже текста */
}

/* градиент на hover */
.btn-primary::after,
button[type="submit"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #00786a 0%, #000 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1; /* тоже ниже текста */
}

.btn-primary:hover::before,
button[type="submit"]:hover::before {
  opacity: 0;
}

.btn-primary:hover::after,
button[type="submit"]:hover::after {
  opacity: 1;
}


.btn-secondary {
  text-align: center;
  position: relative;
  color: #fff;
  width: 196px;
  margin: 0 auto;
  margin-top: 89px;
}

.btn-secondary::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 17px;
  height: 17px;
  transform: translateY(-50%);
  background: url(./img/Vector.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
.btn-danger,
button[type="submit"].btn-danger {
  background: var(--error);
  color: #fff;
  border: 2px solid #ffffff;
}

.btn-danger:hover {
  background-color: #c82333;
}

.admin-link,
.logout-link {
  align-self: flex-end;
}

.admin-link a,
.logout-link a {
  text-decoration: none;
}

.admin-link,
.logout-link,
#balance {
  margin-top: 0.5rem;
}

/* Table styling */

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e1e1e8;
}

td {
  font-size: 16px;
  font-weight: 400;
}

th {
  font-weight: 600;
  font-size: 16px;
}

tr:nth-child(even) {
  background-color: #ffffff05;
}

/* Loader overlay */

.loader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(36, 36, 36, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
}

.loader-spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loader-overlay p {
  margin-top: 1rem;
  font-size: 1.1rem;
}

/* Media queries */
@media (max-width: 600px) {
  .container {
    padding: 1rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.25rem;
  }
}

/* #badge */
.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 0.5rem;
  background: #eee;
  font-size: 12px;
}

.badge-success {
  background: #03911b;
  color: #fff;
}

.badge-warning {
  background: #ffcc80;
  color: #2f4858;
}

/* #end */

/* FOOTER */
.footer {
  position: relative;
  padding: 100px 0 95px;
  font-style: italic;
  font-weight: 400;
  font-size: 49px;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.footer p {
  opacity: 0.15;
  font-family: var(--font-galldis);
  font-style: italic;
}

/* ITEMS */
.item_1 {
  position: absolute;
  width: 501px;
  height: 490px;
  left: -4vw;
  top: 6%;
  background: url("./img/dispersion glass (2).png") no-repeat center/contain;
  will-change: transform; /* для плавности */
  transition: transform 0.1s linear;
}
.item_2 {
  position: absolute;
  width: 501px;
  height: 490px;
  right: -4vw;
  top: 30%;
  background: url("./img/dispersion glass (4).png") no-repeat center/contain;
  will-change: transform; /* для плавности */
  transition: transform 0.1s linear;
}
.item_3 {
  position: absolute;
  width: 501px;
  height: 490px;
  right: -3%;
  bottom: -40px;
  background: url("./img/dispersion glass (17).png") no-repeat center/contain;
  will-change: transform; /* для плавности */
  transition: transform 0.1s linear;
}

.login__item_1,
.login__item_2,
.login__item_3,
.admin__item_3,
.admin__item_1,
.admin__item_2,
.update__item_3 {
  position: absolute;
  width: 501px;
  height: 490px;
  will-change: transform; /* для плавности */
  transition: transform 0.1s linear;
}
.login__item_1 {
  left: -10%;
  top: 19%;
  background: url("./img/dispersion glass (17).png") no-repeat center/contain;
}
.login__item_2 {
  top: 25%;
  right: -10%;
  background: url("./img/dispersion glass (19).png") no-repeat center/contain;
}
.login__item_3 {
  left: 10%;
  top: 46%;
  background: url("./img/dispersion\ glass\ \(11\)\ 2.png") no-repeat
    center/contain;
}

.admin__item_1 {
  left: -10%;
  top: 11%;
  background: url("./img/dispersion glass (19).png") no-repeat center/contain;
}
.admin__item_2 {
  right: -18%;
  top: 48%;
  background: url("./img/dispersion glass (2).png") no-repeat center/contain;
}

.admin__item_3 {
  left: 5%;
  bottom: 0px;
  background: url("./img/item4.png") no-repeat center/contain;
}
.update__item_3 {
  left: 5%;
  bottom: -40%;
  background: url("./img/item4.png") no-repeat center/contain;
}

/* ADD BLOCK */
----------CSS----------

/* Утилиты под форму */
.row {
  display: flex;
  align-items: center;
}
.row-center {
  align-items: center;
}
.gap-8 {
  gap: 0.5rem;
}
.gap-12 {
  gap: 0.75rem;
}
.gap-16 {
  gap: 1rem;
}
.mt-8 {
  margin-top: 0.5rem;
}
.mt-12 {
  margin-top: 0.75rem;
}
.mt-16 {
  margin-top: 1rem;
}
.w-auto {
  width: auto;
}
.hidden {
  display: none !important;
}
.muted {
  opacity: 0.6;
  pointer-events: none;
}

/* Группы полей */

.section {
  margin-top: 36px;
}

/* Мелкие элементы */
.label {
  padding-right: 10px;
}
.help {
  display: block;
  margin-top: 0.25rem;
  color: #666;
  font-size: 0.875rem;
}
.radio,
.check {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

/* pagination */
.pagination__wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 10px;
  margin-bottom: 30px;
  margin-top: 10px;
}

.pagination__wrapper button {
  background: transparent;
  color: #fff;
}

button.active {
  background: transparent;
  color: #47bdd8;
}
.modal__results {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100vh;
  padding: 40px 20px;
  z-index: 1000;
  background: rgba(36, 36, 36, 0.9);
}
.open__modal {
  display: flex;
}
.modal_btn-close {
  position: absolute;
  top: 15px;
  right: 15px;
  cursor: pointer;
}
div.subbox {
  overflow-y: auto;
  max-height: 90vh;
}
.body {
  overflow: hidden;
}
.hidden__checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.vps__modul {
  height: 72px;
}
.column-name {
  text-wrap: nowrap;
}
.link__w3 {
  height: 62px;
  transform: translateY(-2px);
}
/* DOMAINER PAGE */
.top_pagination {
  display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 20px;
}
.top_pagination .btn-secondary {
  margin: 0;
}
#invTable {
   width: 100%;
    max-width: 100vw; 
    table-layout: fixed;
}
.th__column {
  width: 10%;
  max-width: 200px;
}
#invTable thead th {
    white-space: normal;
    word-wrap: break-word;
}
div.domainer-page {
  background: rgb(45 45 45);
}
/* MEDIA */
@media (max-width: 1330px) {
  #invTable td,
  #invTable th {
    font-size: 14px;
  }
}
@media (max-width: 1130px) {
  #serversTable th,
  #serversTable td {
    font-size: 1.6vw;
  }
  th.column-dep::before {
    content: "Деп...";
  }
}
@media (max-width: 830px) {
  #serversTable th,
  #serversTable td {
    font-size: 12px;
  }
  .column-geo,
  .column-user {
    display: none;
  }
  @media (max-width: 730px) {
    .column-host,
    .column-pass,
    .column-port,
    .column-limit,
    .column-dep {
      display: none;
    }
  }
  .column-delete {
    display: flex;
    justify-content: flex-end;
  }
}

/* ───────────────────────── ADMIN: блок аккаунтов ───────────────────────── */

.admin__section-accounts {
  margin-top: 3rem;
}

.admin__section-accounts > h2 {
  margin: 0 0 1.5rem;
  font-size: 1.875rem;
  line-height: 2.3125rem;
  font-weight: 600;
}

/* сетка 2×2 на десктопе, 1 колонка на мобилке */
.admin__accounts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
  align-items: flex-start;
}

@media (max-width: 1024px) {
  .admin__accounts-grid {
    grid-template-columns: 1fr;
  }
}

/* карточка провайдера */
.admin__card {
  position: relative;
  padding: 1.5rem 1.75rem;
  border-radius: 1.25rem;
  background: rgb(19 19 19 / 0.9);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin__card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* список уже добавленных аккаунтов */
.admin__list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.95rem;
}

.admin__list li {
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.25rem;
}

.admin__muted {
  opacity: 0.75;
  font-size: 0.85rem;
}

/* формы внутри карточек */
.admin__section-accounts .admin__form {
  width: 100%;
  margin-top: 0.5rem;
}

.admin__field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.admin__field label {
  font-size: 0.9rem;
  font-weight: 600;
}

.admin__section-accounts .input,
.admin__section-accounts select {
  width: 100%;
}

/* details-блок с доп. полями для Namecheap */
.admin__details {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.admin__details summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

/* убираем стандартный маркер summary */
.admin__details summary::-webkit-details-marker {
  display: none;
}

/* небольшой индикатор перед summary */
.admin__details summary::before {
  content: "▾";
  display: inline-block;
  margin-right: 0.35rem;
  transform: translateY(1px);
  transition: transform 0.2s ease;
}

.admin__details[open] summary::before {
  transform: rotate(180deg) translateY(-1px);
}

/* кнопки «Добавить …» выравниваем по правому краю */
.admin__card .btn-primary,
.admin__card button[type="submit"] {
  margin-top: 0.5rem;
  margin-left: auto;
  padding: 0.75rem 1.5rem;
  border-radius: 0.875rem;
}
