/* accountinfo.css */
.account-container {
  background: #1b1b1b;
  padding: 40px;
  color: white;
  max-width: 1000px;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
  overflow: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: opacity, transform;
}

.dashboard-header {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  gap: 20px;
  flex-wrap: wrap;
}

.dashboard-header .tab {
  background: transparent;
  color: white;
  border: 2px solid #ff0000;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.dashboard-header .tab.active,
.dashboard-header .tab:hover {
  background: #ff0000;
  color: black;
}

.dashboard-section {
  background: #111;
  border: 1px solid #222;
  border-radius: 10px;
  margin-top: 20px;
  padding: 20px;
  overflow: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.section-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
  border-left: 5px solid #ff0000;
  padding-left: 10px;
  text-transform: uppercase;
  color: #ffffff;
}

.dashboard-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.info-left,
.info-right {
  flex: 1 1 45%;
  min-width: 250px;
}

.info-left p,
.info-right p {
  margin-bottom: 10px;
}

.btn-small {
  background: #1c1c1c;
  border: 1px solid #ff0000;
  padding: 5px 10px;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  margin-left: 10px;
}

.btn-small:hover {
  background: #ff0000;
  color: black;
}

.cash {
  color: red;
  font-weight: bold;
}

.status.active {
  background: #0f0;
  color: black;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 13px;
}

.no-characters {
  background: #1c1c1c;
  padding: 15px;
  border: 1px solid #333;
  border-radius: 6px;
  color: #9daec6;
  font-size: 14px;
}

.icon-info::before {
  content: "\26A0";
  margin-right: 8px;
}

@media screen and (max-width: 768px) {
  .dashboard-content {
    flex-direction: column;
  }

  .info-left,
  .info-right {
    flex: 1 1 100%;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: center;
  }

  .account-container {
    padding: 20px;
  }

  .dashboard-section {
    padding: 15px;
  }
}

.hidden {
  display: none;
}

.status.blocked {
  background: red;
  color: white;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 13px;
}


.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: -50px;
  width: 100vw; height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
  background: #111;
  color: #fff;
  width: 400px;
  margin: 10% auto;
  padding: 20px 20px;
  border: 2px solid red;
  border-radius: 10px;
  position: relative;
}

.modal-content input {
  width: 100%;
  padding: 8px;
  margin: 5px -10px 10px;
  background: #222;
  color: #fff;
  border: 1px solid #444;
  border-radius: 5px;
}

.modal-content label {
  display: block;
  margin-top: 10px;
  font-weight: bold;
}

.close-btn {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 22px;
  color: red;
  cursor: pointer;
}

.btn-group {
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
}

.btn-group button {
  width: 48%;
  padding: 8px;
  background: #222;
  color: #fff;
  border: 1px solid red;
  border-radius: 5px;
  cursor: pointer;
}

.btn-group button:hover {
  background: red;
}


.status.pending {
  background-color: orange;
  color: black;
  padding: 2px 6px;
  border-radius: 4px;
}

.status.active {
  background-color: limegreen;
  color: black;
  padding: 2px 6px;
  border-radius: 4px;
}

.status.banned {
  background-color: #ff0000;
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: bold;
}

.error-msg {
  color: #ff3333;
  margin-top: 10px;
  font-weight: bold;
}


.password-hint {
  font-size: 12px;
  color: #999;
  margin-bottom: 6px;
}

.password-strength {
  width: 100%;
  height: 6px;
  background-color: #e0e0e0;
  border-radius: 3px;
  margin-bottom: 12px;
  overflow: hidden;
}

.strength-bar {
  height: 100%;
  width: 0%;
  background-color: #f00;
  transition: width 0.3s ease;
  border-radius: 3px;
}

.form-message {
  margin-bottom: 10px;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
}
.form-message.error {
  color: red;
}
.form-message.success {
  color: green;
}

.verification-row {
  display: flex;
  align-items: center;      /* aliniere verticală pe mijloc */
  gap: 30px;
  margin-left: -20px;
}

.verification-row button {
  height: 40px;             /* aceeași înălțime cu inputul */
  font-size: 14px;
  line-height: 1;
  border-radius: 4px;
  margin-bottom: 6px;
  box-sizing: border-box;   /* asigură că paddingul nu schimbă dimensiunea */
}

.verification-row input[type="text"] {
  flex: 1;
  height: 40px;
  padding: 0 10px;
  font-size: 14px;
  box-sizing: border-box;
}

.modal-title-with-icon {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 200px;
}

.modal-title-with-icon h2 {
  margin: 0;
  font-size: 22px;
  color: white;
}

.modal-icon {
  font-size: 35px;
  cursor: default;
  color: #999;
}


.modal-title-with-icon {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip-text {
  visibility: hidden;
  opacity: 0;
  width: 260px;
  background-color: #222;
  color: #fff;
  text-align: left;
  padding: 10px;
  border-radius: 6px;
  position: absolute;
  top: 120%;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: opacity 0.3s;
  font-size: 18px;
  line-height: 1.4;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.tooltip:hover .modal-icon {
  color: white;
}

.character-card {
  background-color: #1a1a1a;
  border: 1px solid #333;
  border-radius: 5px;
  padding: 12px 15px;
  margin-bottom: 10px;
  color: white;
}

.character-card .top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.character-name {
  font-weight: bold;
  font-size: 16px;
  color: #00bfff;
}

.character-level {
  background-color: #003366;
  padding: 3px 8px;
  border-radius: 4px;
  color: white;
  font-size: 13px;
}

.character-class {
  margin-top: 5px;
  font-weight: bold;
  color: #999;
}

.character-cp {
  color: red;
  font-weight: bold;
}

.character-rank {
  color: orange;
}

.character-status.online {
  color: #00ff00;
  font-weight: bold;
}

.character-status.offline {
  color: #ff0000;
  font-weight: bold;
}


.stat-card {
  background: linear-gradient(to top, #330000, #4d0000);
  padding: 10px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 0 8px rgba(255, 0, 0, 0.2);
  border: 1px solid #ff4444;
  width: 100px;
}
.stat-card h4 {
  margin: 0;
  font-size: 13px;
  color: #aaa;
}
.stat-card p {
  margin: 6px 0 0;
  font-size: 20px;
  font-weight: bold;
  color: #fff;
}
.section-title {
  margin: 20px 0 10px;
  font-size: 16px;
  color: #ff4444;
  font-weight: bold;
}

    .character-card {
      background: linear-gradient(to bottom, #1a1a1a, #111);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 12px;
      width: 360px;
      box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
      overflow: hidden;
      transition: transform 0.3s ease;
    }

    .character-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 0 20px rgba(255, 0, 0, 0.6);
    }

    .character-header {
  background: linear-gradient(to top, rgba(30, 30, 30, 1), rgba(30, 30, 30, 0));
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 35px;
  border-bottom: 1px solid #333;
}

    .character-name {
      font-size: 20px;
      font-weight: 700;
      color: #f44336;
    }

    .character-level {
      background: #f44336;
      padding: 4px 12px;
      border-radius: 8px;
      font-size: 14px;
      font-weight: bold;
      color: #fff;
    }

    .character-body {
      display: flex;
      padding: 20px;
      gap: 20px;
    }

    .character-image {
      width: 80px;
      height: 80px;
      background: linear-gradient(to bottom, #111, #222);
      border: 1px solid #444;
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #777;
      font-size: 12px;
    }

    .character-info {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .info-row {
      display: flex;
      justify-content: space-between;
      font-size: 14px;
      color: #ccc;
    }

    .info-row span:last-child {
      font-weight: 700;
      color: #fff;
    }

    .details-btn {
      background: #f44336;
      color: white;
      width: calc(100% - 40px);
      margin: 10px 20px 20px 20px;
      padding: 10px;
      border: none;
      border-radius: 6px;
      font-size: 14px;
      font-weight: bold;
      cursor: pointer;
      transition: background 0.3s ease;
    }

    .details-btn:hover {
      background: #ff5c5c;
    }

    .character-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
  padding: 20px;
  justify-content: center;
}

////


    .modal {
      width: 700px;
      max-width: 100%;
      margin: 5px auto;
      background: linear-gradient(145deg, #1a1a1a, #111);
      border: 2px solid #bb0000;
      border-radius: 12px;
      padding: 25px;
      box-shadow: 0 0 25px rgba(255, 0, 0, 0.4);
      color: white;
      position: relative;
    }

    .modal .close-btn {
      position: absolute;
      top: 12px;
      right: 16px;
      font-size: 22px;
      cursor: pointer;
      color: #ff5555;
    }

    .modal h2 {
      margin: 0 0 10px;
      font-size: 22px;
      color: #ff2e2e;
      border-bottom: 1px solid #333;
      padding-bottom: 8px;
    }

    .top-section {
      display: flex;
      align-items: flex-start;
      gap: 20px;
      margin-top: 20px;
    }

    .char-img {
      width: 80px;
      height: 80px;
      background: linear-gradient(to bottom, #111, #222);
      border: 1px solid #f44336;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #999;
      font-size: 14px;
      box-shadow: 0 0 12px rgba(255, 0, 0, 0.3);
    }

    .top-section .char-info {
      flex: 1;
      height: 220px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      font-size: 16px;
      gap: 12px;
      padding: 10px 0;
    }

    .char-info span {
      color: #ccc;
    }

    .char-info span strong {
      color: #ff4444;
    }

    .top-section .char-img.right-img {
      width: 80px;
      height: 80px;
      border: none;
      background: none;
      box-shadow: none;
      border-radius: 6px;
      font-size: 12px;
    }

    .section-title {
      margin: 25px 0 10px;
      font-size: 16px;
      color: #ff5555;
      border-bottom: 1px solid #333;
      padding-bottom: 4px;
    }

   .stats-grid {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.stat-card {
  flex: 1;
  background: #1d1d1d;
  border: 1px solid #333;
  padding: 12px;
  text-align: center;
  border-radius: 8px;
  transition: all 0.3s ease;
}

    .stat-card:hover {
      background: #2a2a2a;
      box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
    }

    .stat-card h4 {
      margin: 0;
      font-size: 13px;
      color: #aaa;
    }

    .stat-card p {
      margin: 6px 0 0;
      font-size: 20px;
      font-weight: bold;
      color: #f94144;
    }

