/* Универсальные стили для сброса */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #202535;
  color: #fff;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
}

.site-header {
  background: #23293b;
  padding: 0 34px;
  height: 74px;
  min-height: 74px;
  display: flex;
  align-items: center;
  border-bottom: 3px solid #298CFF;
  z-index: 10;
}

/* Логотип DevLoot */
.logo-block {
  display: flex;
  align-items: center;
  font-size: 2.1em;
  font-weight: 900;
  padding-right: 10px;
}
.logo-text {
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  color: #fff;
  background: linear-gradient(90deg, #ffe588 0%, #ffd94c 36%, #fcaf17 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.22em;
  letter-spacing: .04em;
  font-weight: 900;
  filter: drop-shadow(0 2px 13px #49351522);
  text-shadow: 0 2px 14px #f6dc4a33, 0 1px 1px #0003;
  user-select: none;
}

/* Меню */
.main-menu {
  flex:1;
  display:flex;
  justify-content: center;
  gap:34px;
}
.menu-link {
  text-decoration: none;
  color: #b8ceea;
  font-size:1.1em;
  font-weight:600;
  padding: 5px 0 9px 0;
  border-bottom:3px solid transparent;
  transition: .15s;
}
.menu-link.active, .menu-link:hover {
  color: #fff;
  border-bottom:3px solid #2196f3;
}

/* Кнопки справа */
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 4px;
}
.btn-icon img {
  width: 28px;
  height: 28px;
}

/* Профиль */
.profile-block {
  display: flex;
  align-items: center;
  background: #242d40;
  border-radius: 16px;
  padding: 6px 18px;
  border: 2px solid #298CFF;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  transition: box-shadow .13s;
}
.profile-block:hover, .profile-block:focus-within {
  box-shadow: 0 4px 28px #2890ff44;
}
.profile-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  margin-right: 10px;
  object-fit: cover;
}
.profile-block span.profile-drop {
  margin-left: 10px;
  font-size: 1.2em;
}

.profile-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;      /* <-- теперь меню вплотную к низу кнопки */
    min-width: 170px;
    background: #232b3b;
    border-radius: 12px;
    box-shadow: 0 8px 32px #0005;
    z-index: 10;
    border: 1.8px solid #298CFF;
    overflow: hidden;
}
.profile-block:hover .profile-dropdown,
.profile-block .profile-dropdown:hover {
  display: block;
}
.dropdown-link {
  display: block;
  padding: 15px 22px;
  color: #b8ceea;
  text-decoration: none;
  font-weight: 600;
  transition: .13s;
  font-size: 1.08em;
}
.dropdown-link:hover {
  background: #233772;
  color: #fff;
}

/* Основная часть */
.site-main {
  flex: 1 0 auto;
  display: flex;
  min-height: 72vh;
  background: linear-gradient(120deg,#23293b 0%,#242d3d 100%);
}

/* Сайдбар */
.filter-sidebar {
  width: 210px;
  background: #1c2232;
  padding: 28px 0 0 0;
  border-right: 1.5px solid #233047;
  min-height: 100%;
}
.filter-btn {
  margin-left: 22px;
  color: #b8ceea;
  background: #23293b;
  font-size: 1.06em;
  border: none;
  border-radius: 12px;
  padding: 8px 22px;
  cursor: pointer;
}
.filter-list {
  margin: 33px 0 0 19px;
}
.filter-cat {
  display: flex;
  align-items: center;
  color: #b7c8e3;
  text-decoration: none;
  font-size: 1.11em;
  margin-bottom: 20px;
  gap: 12px;
  transition: color .12s;
}
.filter-cat img {
  width: 27px;
}
.filter-cat:hover {
  color:#26aaff;
}

/* Каталог */
.assets-main {
  flex: 1;
  padding: 34px 40px;
  width: 100%;
}
.assets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 30px;
}
.asset-card {
  background: #232d41;
  border-radius: 15px;
  padding: 14px 13px 18px 13px;
  box-shadow: 0 3px 20px #0005;
  transition: .17s;
  border: 1.8px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.asset-card:hover {
  border-color: #2196f3;
  box-shadow: 0 8px 36px #2196f360;
}
.asset-cover {
  border-radius: 12px;
  width: 100%;
  height: 146px;
  object-fit: cover;
  box-shadow: 0 2px 11px #0005;
  background: #263153;
}
.asset-title {
  margin-top: 13px;
  font-size: 1.16em;
  font-weight: 700;
  color: #fff;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 90%;
}
.asset-meta {
  color: #b3bad2;
  font-size: .95em;
  margin: 0 0 5px 0;
}
.asset-price {
  margin-top: 1px;
  font-weight: 800;
  font-size: 1.2em;
  color: #26aaff;
}

/* Футер */
.site-footer {
  background: #20242e;
  color: #93a0bb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 40px;
  border-top: 2px solid #202c43;
  font-size: 1.03em;
  min-height: 60px;
  flex-shrink: 0;
}
.site-footer a {
  color: inherit;
  text-decoration: none;
  margin-right: 17px;
  transition: color .12s;
}
.site-footer a:hover {
  color: #26aaff;
}
.socmed a {
  margin-right: 18px;
}
.socmed img {
  width: 28px;
  height: 28px;
  vertical-align: middle;
}

/* Адаптив */
@media (max-width:1000px) {
  .site-main{flex-direction:column;}
  .filter-sidebar {
    width: 100%;
    display: flex;
    gap: 22px;
    padding: 11px 0 0 21px;
    min-height: unset;
    border: none;
  }
  .filter-list {margin: 0;}
}
@media (max-width:700px){
  .site-header{flex-wrap:wrap;height:auto; padding:0 7vw;}
  .main-menu{gap:19px;}
  .assets-main{padding:16px 6vw;}
  .assets-grid{gap:16px;}
  .asset-cover{height:85px;}
  .filter-sidebar{padding-left:2vw;}
}

::-webkit-scrollbar {
    width: 9px;
    background: #23293b;
}
::-webkit-scrollbar-thumb {
    background: #233047;
    border-radius: 6px;
}
.center-form {
  min-height: calc(100vh - 74px - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  flex: 1 0 auto;
}
.auth-form, .profile-card {
  background: #262d3f;
  padding: 40px 34px 30px 34px;
  border-radius: 18px;
  box-shadow: 0 5px 26px #1f263a66;
  min-width: 330px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border: 1.5px solid #298cffbb;
  align-items: stretch;
}
.auth-form h2, .profile-card h2 {
  margin: 0 0 16px 0;
  font-size: 1.45em;
  color: #fff2b0;
  text-align: center;
  letter-spacing: .02em;
}
.auth-form label {
  color: #b8ceea;
  font-weight: 600;
  font-size: 1.06em;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.auth-form input[type="text"], .auth-form input[type="password"], .auth-form input[type="email"] {
  background: #212738;
  color: #fff;
  border: 1.2px solid #298cff55;
  border-radius: 8px;
  padding: 10px 13px;
  font-size: 1em;
  outline: none;
  transition: border .13s;
}
.auth-form input:focus {
  border-color: #28aaff;
}
.main-btn {
  background: linear-gradient(92deg,#2296f3 30%,#27b6ff 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1.09em;
  border: none;
  border-radius: 8px;
  padding: 12px 15px;
  box-shadow:0 3px 18px #1790fc2a;
  margin-top: 3px;
  cursor: pointer;
  transition: background .12s, box-shadow .12s;
  letter-spacing: .01em;
}
.main-btn:hover, .main-btn:focus {
  background: linear-gradient(92deg,#1498ff 30%,#1294e3 100%);
  box-shadow:0 8px 35px #1790fc33;
}
.main-btn.small {
  padding: 9px 10px; font-size: .96em;
}
.main-btn.outline {
  background: none;
  border: 1.5px solid #27b6ff;
  color: #24acff;
  margin-top: 11px;
}
.main-btn.outline:hover { background: #143c5d; color: #fff;}
.form-links {
  margin-top: 13px;
  text-align: center;
  color: #b8ceea;
  font-size: .99em;
}
.form-links a {
  color: #26aaff; text-decoration: none;
  margin-left: 7px;
}
.form-links a:hover { color: #8cd7ff; text-decoration: underline;}
.profile-card {
  align-items: center;
  gap: 14px;
  padding-bottom: 36px;
}
.profile-avatar-big {
  width: 92px; height: 92px;
  border-radius: 50%;
  box-shadow:0 2px 18px #2196f499;
  object-fit: cover; margin-bottom: 10px;
  border: 2.5px solid #298CFF;
}
.profile-meta {
  color: #b8ceea; font-size:1.06em;
  margin-bottom: 17px;
  text-align: center;
}
.alert-error {
  background: #2b1d27;
  color: #fff0f0;
  border: 1.5px solid #ff5656;
  border-radius: 8px;
  padding: 12px 18px;
  margin-bottom: 17px;
  box-shadow: 0 1px 8px #600c2040;
  font-size: 1.07em;
  text-align: center;
  font-weight: 600;
  animation: fade-in .35s;
}
@keyframes fade-in {
  from {opacity: 0; transform: translateY(-7px);}
  to {opacity: 1; transform: none;}
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Кнопка с прозрачностью и эффектом */
.btn-icon.transparent-btn {
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: box-shadow 0.2s, background 0.2s, transform 0.2s;
  padding: 7px 10px 3px 10px;
  border-radius: 8px;
  outline: none;
}

.btn-icon.transparent-btn:hover,
.btn-icon.transparent-btn:focus {
  background: rgba(0, 0, 0, 0.07);
  box-shadow: 0 2px 12px #0001;
  transform: translateY(-2px) scale(1.06);
}

.icon-img {
  width: 28px;
  height: 28px;
  margin-bottom: 3px;
  filter: drop-shadow(0 1px 1.5px #0002);
  transition: filter 0.2s;
}

.btn-icon.transparent-btn:hover .icon-img {
  filter: drop-shadow(0 3px 6px #6ba3ed44);
}

.icon-label {
  font-size: 13px;
  color: #fff;
  opacity: 1;
  font-weight: bold;
  margin-top: 0;
  transition: color 0.2s;
  pointer-events: none;
  user-select: none;
}
.header-btn {
  display: inline-block;
  font-family: inherit;
  background: rgba(255,255,255, 0.08);
  color: #fff;
  border: 1.5px solid rgba(255,255,255, 0.45);
  border-radius: 7px;
  padding: 8px 22px 7px 22px;
  margin-left: 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  outline: none;
  transition: 
    background 0.2s,
    border-color 0.2s,
    transform 0.14s,
    box-shadow 0.19s;
  cursor: pointer;
  box-shadow: 0 1px 6px 0 rgba(30, 35, 80, 0.07);
  text-decoration: none;
  text-align: center;
}

.header-btn:hover, .header-btn:focus {
  background: rgba(255,255,255, 0.19);
  border-color: #6ba1ea;
  color: #fff;
  box-shadow: 0 2px 18px 0 #78b5f8ad;
  transform: translateY(-2px) scale(1.04);
}

.header-btn.accent {
  background: linear-gradient(90deg, #80b3ff 40%, #1e90ff 100%);
  color: #fff;
  border: none;
  font-weight: 800;
  box-shadow: 0 2px 14px 0 #3094f966;
  letter-spacing: 1.2px;
}
.header-btn.accent:hover, .header-btn.accent:focus {
  background: linear-gradient(90deg, #5c95f1 10%, #46c7ff 95%);
  box-shadow: 0 4px 22px 0 #48a8ff66;
}
/* ...Всё, что было до этого... */

/* =================== NAV DROP ================== */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

/* ВЫРАВНИВАНИЕ КАТЕГОРИИ по центру меню! */
.main-menu > .nav-dropdown {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-dropdown-btn {
  text-decoration: none;
  color: #b8ceea;
  font-size: 1.1em;
  font-weight: 600;
  padding: 5px 0 9px 0;
  border-bottom: 3px solid transparent;
  transition: .15s;
  background: none;
  outline: none;
  border: none;
  display: inline-block;
  cursor: pointer;
}
.nav-dropdown-btn:hover,
.nav-dropdown:hover .nav-dropdown-btn,
.nav-dropdown:focus-within .nav-dropdown-btn {
  color: #fff;
  border-bottom: 3px solid #2196f3;
  background: none;
}

.dropdown-list {
  display: none;
  position: absolute;
  min-width: 155px;
  top: 99%;
  left: 0;
  background: #191c26;
  box-shadow: 0 6px 24px #0015;
  border-radius: 0 0 13px 13px;
  padding: 8px 0 11px 0;
  z-index: 41;
  animation: fadeIn 0.23s;
}
.dropdown-list a {
  display: block;
  padding: 8px 26px 8px 22px;
  color: #fff;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.14s, color 0.2s;
  font-weight: 500;
}
.dropdown-list a:hover {
  background: #253154;
  color: #8eceff;
  border-radius: 6px;
}
.nav-dropdown:hover .dropdown-list,
.nav-dropdown:focus-within .dropdown-list {
  display: block;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px);}
  to   { opacity: 1; transform: translateY(0);}
}

/* СкрЫваем соцсети */
.socmed {
  display: none !important;
}

/* ...Далее твой остальной CSS (если нужно вставляй выше) ... */