* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #090b0d;
  color: #f5f5f5;
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

header {
  height: 78px;
  padding: 0 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #1d2227;
  background: rgba(9,11,13,.95);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -1px;
}

.logo span {
  color: #a4ff32;
}

nav {
  display: flex;
  gap: 32px;
}

nav a {
  color: #8d969f;
  font-size: 14px;
  font-weight: bold;
}

nav a:hover {
  color: #fff;
}

.steam-btn {
  border: 0;
  background: #20262c;
  color: white;
  padding: 11px 18px;
  cursor: pointer;
  font-weight: bold;
}

.steam-btn span {
  color: #a4ff32;
  margin-left: 5px;
}

main {
  max-width: 1400px;
  margin: auto;
}

.hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  align-items: center;
  padding: 70px 6%;
  gap: 80px;
}

.badge,
.small-title {
  font-size: 12px;
  color: #a4ff32;
  font-weight: 900;
  letter-spacing: 2px;
}

.hero h1 {
  font-size: clamp(60px, 8vw, 115px);
  line-height: .83;
  letter-spacing: -6px;
  margin: 25px 0;
}

.hero h1 span {
  color: #a4ff32;
}

.hero p {
  max-width: 570px;
  color: #929aa3;
  font-size: 17px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  margin-top: 35px;
}

.primary,
.secondary {
  padding: 16px 23px;
  font-size: 13px;
  font-weight: 900;
}

.primary {
  background: #a4ff32;
  color: #090b0d;
}

.secondary {
  border: 1px solid #30373e;
}

.stats {
  display: flex;
  margin-top: 55px;
  gap: 55px;
}

.stats div {
  display: flex;
  flex-direction: column;
}

.stats strong {
  font-size: 27px;
}

.stats span {
  color: #6f7881;
  font-size: 10px;
  margin-top: 6px;
}

.hero-card {
  min-height: 410px;
  border: 1px solid #252b31;
  background:
    radial-gradient(circle at center, #22320f 0%, #11150d 45%, #0c0e10 75%);
  padding: 35px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.weapon {
  color: #777f87;
  font-size: 14px;
}

.skin {
  font-size: 38px;
  font-weight: 900;
}

.weapon-image {
  position: absolute;
  top: 80px;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 95px;
  font-weight: 900;
  color: #a4ff32;
  opacity: .65;
}

.hero-card span {
  color: #777f87;
  font-size: 11px;
  margin-top: 10px;
}

.hero-card a {
  margin-top: 20px;
  font-size: 12px;
  color: #a4ff32;
  font-weight: 900;
}

.section {
  padding: 80px 6%;
  border-top: 1px solid #171b1f;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 35px;
}

h2 {
  font-size: 45px;
  margin: 8px 0 0;
  letter-spacing: -2px;
}

.live {
  color: #7b848d;
  font-size: 11px;
}

.live i {
  width: 7px;
  height: 7px;
  display: inline-block;
  background: #a4ff32;
  border-radius: 50%;
  margin-right: 7px;
}

.server-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.server-card {
  background: #101316;
  border: 1px solid #21272c;
  padding: 25px;
}

.server-top {
  display: flex;
  justify-content: space-between;
}

.server-mode {
  color: #a4ff32;
  font-size: 11px;
  font-weight: 900;
}

.server-card h3 {
  font-size: 23px;
}

.server-info {
  display: flex;
  gap: 35px;
  color: #8b949d;
  font-size: 13px;
}

.offline {
  color: #ff6262;
}

.play {
  display: block;
  text-align: center;
  padding: 13px;
  margin-top: 22px;
  border: 1px solid #30363b;
  color: #707981;
  font-size: 12px;
  font-weight: bold;
}

.ranking {
  border: 1px solid #20262b;
}

.rank-row {
  min-height: 70px;
  padding: 0 25px;
  display: grid;
  align-items: center;
  grid-template-columns: .4fr 3fr 1fr 1fr 1fr;
  border-bottom: 1px solid #1c2125;
  color: #9099a1;
}

.rank-header {
  min-height: 45px;
  color: #555e66;
  font-size: 10px;
}

.player {
  color: #fff;
  font-weight: bold;
}

.skin-area {
  display: grid;
  grid-template-columns: 200px 1fr;
  border: 1px solid #20262b;
}

.skin-sidebar {
  background: #0d1012;
  border-right: 1px solid #20262b;
  padding: 18px;
}

.skin-sidebar button {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  color: #707981;
  padding: 14px;
  cursor: pointer;
  font-weight: bold;
}

.skin-sidebar .active {
  background: #19210f;
  color: #a4ff32;
}

.skin-content {
  padding: 35px;
}

.skin-content h3 {
  font-size: 25px;
}

.skin-content p {
  color: #7e8790;
}

.skin-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 12px;
  margin-top: 30px;
}

.skin-card {
  height: 185px;
  border: 1px solid #242a2f;
  background: #111417;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.gun {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a4ff32;
  font-size: 28px;
  font-weight: 900;
}

.skin-card span {
  color: #656e77;
  font-size: 11px;
  margin-top: 5px;
}

.login-required {
  margin-top: 25px;
  padding: 14px 24px;
  border: 0;
  background: #a4ff32;
  font-weight: 900;
  cursor: pointer;
}

.profile-card {
  background: #101316;
  border: 1px solid #22282d;
  padding: 25px;
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.avatar {
  width: 65px;
  height: 65px;
  background: #1e2429;
  display: grid;
  place-items: center;
  color: #a4ff32;
  font-size: 28px;
  font-weight: bold;
}

.profile-card h3 {
  margin: 0 0 7px;
}

.profile-card p {
  margin: 0;
  color: #737c84;
}

.profile-card .steam-btn {
  margin-left: auto;
}

footer {
  border-top: 1px solid #1b2024;
  padding: 40px 6%;
  display: flex;
  justify-content: space-between;
  color: #606970;
  font-size: 12px;
}

footer strong {
  color: #a4ff32;
}

@media (max-width: 850px) {

  nav {
    display: none;
  }

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

  .hero h1 {
    letter-spacing: -3px;
  }

  .hero-card {
    display: none;
  }

  .stats {
    gap: 20px;
    justify-content: space-between;
  }

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

  .skin-area {
    grid-template-columns: 1fr;
  }

  .skin-sidebar {
    display: flex;
    overflow-x: auto;
  }

  .skin-sidebar button {
    width: auto;
  }

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

}

/* ===== CONTA STEAM NO TOPO ===== */

.account-area {
  position: relative;
}

.user-menu-button {
  border: 1px solid #2b3238;
  background: #15191d;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  cursor: pointer;
  min-width: 170px;
}

.user-menu-button:hover {
  border-color: #a4ff32;
}

.header-avatar {
  width: 38px;
  height: 38px;
  object-fit: cover;
}

.header-user-info {
  display: flex;
  flex-direction: column;
  text-align: left;
  min-width: 0;
}

.header-user-name {
  max-width: 135px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 900;
}

.header-user-status {
  color: #a4ff32;
  font-size: 9px;
  margin-top: 3px;
  letter-spacing: 1px;
}

.user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  width: 210px;
  background: #111417;
  border: 1px solid #272e34;
  z-index: 500;
  box-shadow: 0 15px 40px rgba(0,0,0,.45);
}

.user-dropdown.open {
  display: block;
}

.user-dropdown a,
.user-dropdown button {
  display: block;
  width: 100%;
  padding: 14px 16px;
  background: none;
  border: 0;
  border-bottom: 1px solid #1e2429;
  color: #aeb6bd;
  text-align: left;
  cursor: pointer;
  font-size: 12px;
  font-weight: bold;
}

.user-dropdown a:hover,
.user-dropdown button:hover {
  color: #a4ff32;
  background: #171d14;
}

.user-dropdown .logout-link {
  color: #ff6b6b;
  border-bottom: 0;
}

@media (max-width: 600px) {
  .header-user-status {
    display: none;
  }

  .header-user-name {
    max-width: 80px;
  }

  .user-menu-button {
    min-width: auto;
  }
}


/* =========================================================
   SKINCHANGER V2
========================================================= */

.skin-save-status {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #737c84;
}

.skin-save-status.ready {
  color: #a4ff32;
}

.skin-save-status.error {
  color: #ff6262;
}

.skinchanger-app {
  border: 1px solid #232a2f;
  display: grid;
  grid-template-columns: 360px 1fr;
  background: #0d1012;
}

.skin-editor {
  padding: 30px;
  border-right: 1px solid #232a2f;
}

.skin-field {
  margin-bottom: 25px;
}

.skin-field label {
  display: block;
  margin-bottom: 10px;
  color: #69727a;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.5px;
}

.skin-field select {
  width: 100%;
  height: 48px;
  border: 1px solid #2a3137;
  background: #15191d;
  color: #fff;
  padding: 0 14px;
  outline: none;
  font-weight: bold;
}

.skin-field select:focus {
  border-color: #a4ff32;
}

.float-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.float-title span {
  color: #a4ff32;
  font-size: 12px;
  font-weight: 900;
}

#skin-wear {
  width: 100%;
  accent-color: #a4ff32;
}

.wear-info {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 9px;
  color: #555e66;
}

.wear-info strong {
  color: #a4ff32;
}

.stattrak-option {
  padding: 16px;
  border: 1px solid #293037;
  display: flex;
  align-items: center;
  gap: 13px;
  cursor: pointer;
  margin-bottom: 25px;
}

.stattrak-option input {
  display: none;
}

.check-design {
  width: 19px;
  height: 19px;
  border: 1px solid #444d55;
  display: block;
}

.stattrak-option input:checked + .check-design {
  background: #a4ff32;
  box-shadow: inset 0 0 0 4px #15191d;
}

.stattrak-option strong {
  display: block;
  font-size: 13px;
}

.stattrak-option small {
  color: #656e76;
  font-size: 10px;
}

.save-skin-button {
  width: 100%;
  border: 0;
  background: #a4ff32;
  color: #080a0b;
  height: 49px;
  font-weight: 900;
  cursor: pointer;
}

.save-skin-button:hover {
  filter: brightness(1.08);
}

.save-skin-button:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.skin-preview {
  min-height: 440px;
  position: relative;
  padding: 38px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 50% 45%,
      rgba(164,255,50,.14),
      rgba(9,11,13,0) 45%
    ),
    #0b0e10;
}

.preview-label {
  color: #535c64;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 2px;
}

.preview-weapon {
  margin-top: 45px;
  color: #737c84;
  font-size: 14px;
  font-weight: bold;
}

.preview-skin {
  margin-top: 5px;
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -1px;
}

.preview-gun {
  position: absolute;
  left: 0;
  right: 0;
  top: 155px;
  text-align: center;
  font-size: clamp(65px, 9vw, 130px);
  font-weight: 900;
  color: #a4ff32;
  opacity: .65;
}

.preview-details {
  position: absolute;
  bottom: 35px;
  left: 38px;
  right: 38px;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  border-top: 1px solid #272e33;
  padding-top: 20px;
}

.preview-details div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.preview-details span {
  font-size: 9px;
  color: #596169;
  letter-spacing: 1px;
}

.preview-details strong {
  font-size: 12px;
}

.saved-loadout {
  margin-top: 25px;
}

.saved-loadout-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 18px;
}

.saved-loadout-title h3 {
  font-size: 24px;
  margin: 7px 0 0;
}

.saved-loadout-title > span {
  color: #626b73;
  font-size: 10px;
}

.saved-loadout-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 12px;
}

.loadout-item {
  min-height: 170px;
  border: 1px solid #242b30;
  padding: 18px;
  background: #101316;
  position: relative;
}

.loadout-item-weapon {
  color: #626b73;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
}

.loadout-item-skin {
  font-size: 17px;
  font-weight: 900;
  margin-top: 7px;
}

.loadout-item-gun {
  min-height: 65px;
  display: grid;
  place-items: center;
  color: #a4ff32;
  font-weight: 900;
  font-size: 29px;
}

.loadout-item-info {
  color: #687179;
  font-size: 9px;
}

.loadout-empty {
  grid-column: 1 / -1;
  padding: 35px;
  border: 1px dashed #292f34;
  text-align: center;
  color: #656e76;
  font-size: 12px;
}

@media (max-width: 900px) {

  .skinchanger-app {
    grid-template-columns: 1fr;
  }

  .skin-editor {
    border-right: 0;
    border-bottom: 1px solid #232a2f;
  }

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

}

@media (max-width: 550px) {

  .saved-loadout-grid {
    grid-template-columns: 1fr;
  }

  .preview-details {
    grid-template-columns: 1fr 1fr 1fr;
  }

}

/* ===== IMAGENS REAIS DAS SKINS ===== */

.preview-image-area {
  position: absolute;
  top: 115px;
  left: 40px;
  right: 40px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-skin-image {
  width: 90%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,.6));
  transition: transform .2s ease;
}

.preview-skin-image:hover {
  transform: scale(1.04);
}

.loadout-item-image-area {
  height: 90px;
  margin: 8px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loadout-item-image {
  width: 100%;
  height: 90px;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(0,0,0,.45));
}

.skin-image-loading {
  opacity: .35;
}


/* SKIN PHOTOS V2 */

.preview-image-area {
    position: absolute;
    top: 110px;
    left: 45px;
    right: 45px;
    height: 230px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-skin-image {
    width: 90%;
    height: 100%;
    object-fit: contain;

    filter:
        drop-shadow(
            0 25px 25px
            rgba(0,0,0,.65)
        );

    transition:
        transform .2s ease;
}

.preview-skin-image:hover {
    transform: scale(1.05);
}

.loadout-item-image-area {
    width: 100%;
    height: 95px;
    margin: 8px 0;

    display: flex;
    align-items: center;
    justify-content: center;
}

.loadout-item-image {
    width: 100%;
    height: 95px;

    object-fit: contain;

    filter:
        drop-shadow(
            0 12px 15px
            rgba(0,0,0,.55)
        );
}


/* DELETE LOADOUT */

.delete-loadout-item {
    width: 100%;
    margin-top: 15px;
    height: 36px;

    border: 1px solid rgba(255, 98, 98, .35);
    background: rgba(255, 98, 98, .06);

    color: #ff6262;

    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;

    cursor: pointer;
}

.delete-loadout-item:hover {
    background: rgba(255, 98, 98, .14);
    border-color: #ff6262;
}

.delete-loadout-item:disabled {
    opacity: .45;
    cursor: not-allowed;
}
