/* ============================================================
   BASE GLOBAL STYLES
   ============================================================ */

body {
  font-family: "Orbitron", sans-serif;
  background-color: #0a0a0f;
  color: #e6e6e6;
  margin: 0;
  padding: 20px;
}

h1, h2 {
  color: #66fcf1;
}

.app-title {
  text-align: center;
  font-size: 2.5rem;
  color: #00ffc6;
  text-shadow: 0 0 12px rgba(0, 255, 198, 0.8);
  letter-spacing: 2px;
  margin-top: 20px;
  margin-bottom: 25px;
  font-family: "Orbitron", sans-serif;
}

/* ============================================================
   ADD COSPLAY FORM (APP PAGE)
   ============================================================ */

#add-cosplay-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto 25px auto;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 255, 198, 0.2);
}

#add-cosplay-form input,
#add-cosplay-form textarea {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease-in-out;
  width: 100%;
  box-sizing: border-box;
}

#add-cosplay-form input:focus,
#add-cosplay-form textarea:focus {
  box-shadow: 0 0 8px #00ffc6;
  background: rgba(0, 255, 198, 0.1);
}

#add-cosplay-form textarea {
  resize: none;
  height: 38px;
}

#add-cosplay-form button {
  background: linear-gradient(90deg, #00ffc6, #ff00a6);
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  color: #000;
  font-weight: bold;
  transition: transform 0.2s, box-shadow 0.2s;
}

#add-cosplay-form button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(255, 0, 166, 0.6);
}

/* ============================================================
   COSPLAY CARDS (APP)
   ============================================================ */

.cosplay-card {
  background: #1f2833;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.cosplay-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

.btn {
  padding: 8px 16px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

.btn-details {
  background: linear-gradient(135deg, #6a00f4, #9b4dff);
}

.btn-details:hover {
  box-shadow: 0 0 12px #9b4dff, 0 0 24px #6a00f4;
  transform: scale(1.05);
}

.btn-delete {
  background: linear-gradient(135deg, #ff3c3c, #ff1e8a);
}

.btn-delete:hover {
  box-shadow: 0 0 12px #ff1e8a, 0 0 24px #ff3c3c;
  transform: scale(1.05);
}

/* Back button */
.btn-back {
  display: inline-block;
  background: linear-gradient(135deg, #00ffae, #3cff77);
  color: #0d0d0d;
  font-weight: 700;
  border-radius: 12px;
  padding: 10px 18px;
  text-decoration: none;
  box-shadow: 0 0 8px #00ffae;
  transition: 0.2s;
}

.btn-back:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px #00ffae;
}

/* ============================================================
   COSPLAY DETAILS PAGE
   ============================================================ */

.cosplay-container {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(20, 20, 30, 0.85);
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 0 25px rgba(155, 77, 255, 0.3);
  animation: fadeIn 0.5s ease-in;
}

.cosplay-section {
  margin-top: 30px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cosplay-section h2 {
  color: #9b4dff;
  text-shadow: 0 0 8px #9b4dff;
}

.image-section img {
  border-radius: 12px;
  width: 100%;
  max-width: 300px;
  box-shadow: 0 0 12px rgba(155, 77, 255, 0.4);
  margin-bottom: 10px;
}

/* ============================================================
   TOAST
   ============================================================ */

#toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}

.toast {
  background: rgba(30, 30, 30, 0.9);
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  opacity: 0;
  transform: translateY(20px);
  transition: 0.3s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   MODAL
   ============================================================ */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.8);
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
}

.modal.show { display: flex; }

.modal-content {
  background: #1e1e1e;
  padding: 20px 30px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(102, 252, 241, 0.3);
  text-align: center;
}

/* ============================================================
   PROFILE PAGE
   ============================================================ */

.profile-container {
  max-width: 420px;
  margin: 40px auto;
  padding: 25px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  box-shadow: 0 0 15px rgba(0, 255, 198, 0.2);
  text-align: center;
}

.profile-section {
  margin-top: 25px;
  padding: 15px 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}

/* ============================================================
   AUTH PAGES (LOGIN / REGISTER) — FINAL CLEAN VERSION
   ============================================================ */

.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-card {
    width: 100%;
    max-width: 360px;
    background: rgba(255, 255, 255, 0.05);
    padding: 28px 24px;
    border-radius: 14px;
    box-shadow: 0 0 20px rgba(0, 255, 198, 0.2);
    backdrop-filter: blur(4px);
    text-align: center;
    animation: fadeIn 0.4s ease-out;
}

.auth-title {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #00ffc6;
    text-shadow: 0 0 12px rgba(0, 255, 198, 0.6);
}

.auth-subtitle {
    font-size: 15px;
    color: #b7b7b7;
    margin-bottom: 24px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.auth-field span {
    font-size: 14px;
    color: #ccc;
}

.auth-field input {
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(0, 255, 198, 0.3);
    color: #fff;
    outline: none;
    transition: 0.2s;
    font-size: 15px;
}

.auth-field input:focus {
    box-shadow: 0 0 10px #00ffc6;
    background: rgba(0, 255, 198, 0.15);
}

.auth-btn {
    width: 100%;
    background: linear-gradient(135deg, #00ffc6, #ff00c8);
    padding: 12px;
    border-radius: 10px;
    border: none;
    margin-top: 10px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    color: #0a0a0f;
    transition: 0.2s;
}

.auth-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 0 12px rgba(255, 0, 200, 0.7);
}

.auth-hint {
    margin-top: 18px;
    font-size: 14px;
    color: #ccc;
}

.auth-hint a {
    color: #00ffc6;
    text-decoration: none;
}

/* ============================================================
   MOBILE ADAPTATION
   ============================================================ */

@media (max-width: 600px) {
  body { padding: 12px; }

  .auth-card {
    max-width: 100%;
    padding: 22px 20px;
  }

  .auth-title {
    font-size: 32px;
  }

  .auth-field input {
    font-size: 14px;
    padding: 10px;
  }

  .auth-btn {
    font-size: 15px;
  }
}
/* ============================================================
   CRAFT & BUY ITEMS — BEAUTIFUL UNIFIED STYLES
   ============================================================ */

/* Общий контейнер для каждого элемента */
#craft-list li,
#buy-list li {
    list-style: none;
    margin-bottom: 12px;
}

.craft-item,
.buy-item {
    background: rgba(25, 25, 25, 0.8);
    border: 1px solid rgba(0, 255, 198, 0.25);
    border-radius: 12px;
    padding: 12px 15px;
    box-shadow: 0 0 10px rgba(0,255,198,0.15);
    transition: all 0.2s ease;
}

.craft-item:hover,
.buy-item:hover {
    box-shadow: 0 0 15px rgba(0,255,198,0.35);
    transform: scale(1.01);
}

/* ================= BUY ITEM ================= */

#buy-list li {
    padding: 0;
}

.buy-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.buy-item-name {
    flex: 1;
    font-weight: 600;
    color: #00ffc6;
}

.buy-status {
    margin-right: 12px;
    font-size: 20px;
}

.toggle-btn,
.delete-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    margin-left: 6px;
    transition: transform 0.2s, color 0.2s;
}

.toggle-btn:hover {
    transform: scale(1.2);
    color: #3cff77;
}

.delete-btn:hover {
    transform: scale(1.2);
    color: #ff4b4b;
}

/* ================= INPUTS STYLING ================= */

.craft-section input,
.buy-section input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(0,255,198,0.3);
    background: rgba(255,255,255,0.08);
    color: #fff;
    outline: none;
    transition: 0.2s;
    font-size: 15px;
}

.craft-section input:focus,
.buy-section input:focus {
    box-shadow: 0 0 10px #00ffc6;
    background: rgba(0,255,198,0.15);
}

/* Buttons inside add fields */
.craft-section .btn-details,
.buy-section .btn-details {
    padding: 10px 16px;
    font-size: 14px;
}

/* ================= PROGRESS BAR ================= */

.progress-bar {
    height: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    margin-top: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff0077, #ffae00, #00ffc6);
    width: 0%;
    border-radius: 6px;
    transition: width 0.25s ease-out;
}

.progress-controls {
    margin-top: 5px;
    text-align: right;
    font-size: 13px;
    color: #ccc;
}

/* ================= MODAL ================= */

.modal-buttons button {
    background: rgba(255,255,255,0.08);
    border: 1px solid #00ffc6;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #00ffc6;
    transition: 0.2s;
}

.modal-buttons button:hover {
    background: #00ffc6;
    color: #0a0a0f;
    transform: scale(1.05);
}
.form-inline {
    display: flex;
    gap: 12px;     /* ← расстояние между input и кнопкой */
    margin-top: 12px;
    margin-bottom: 20px;
}

/* ===============================
   BUY ITEMS — NEON STATUS ICONS
   =============================== */

.buy-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(25, 25, 25, 0.8);
  border: 1px solid rgba(0, 255, 198, 0.2);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 12px;
  box-shadow: 0 0 8px rgba(0, 255, 198, 0.05);
}

.buy-item-name {
  font-weight: bold;
  color: #00ffc6;
  flex: 1;
}

.buy-status {
  font-size: 22px;
  font-weight: 700;
  width: 32px;
  text-align: center;
  margin-right: 10px;
}

/* зелёная галочка */
.buy-status.yes {
  color: #00ffae;
  text-shadow: 0 0 6px #00ffae, 0 0 12px #00ffae;
}

/* красный крест */
.buy-status.no {
  color: #ff1e8a;
  text-shadow: 0 0 6px #ff1e8a, 0 0 12px #ff1e8a;
}

/* кнопка-переключатель */
.toggle-buy-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(0, 255, 198, 0.25);
  color: #00ffc6;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  margin-right: 10px;
  transition: 0.2s;
}

.toggle-buy-btn:hover {
  box-shadow: 0 0 10px #00ffc6;
  transform: scale(1.1);
}
/* ================================================
   PROFILE PAGE — FIXED & MODERNIZED (FINAL VERSION)
   ================================================ */

.btn-top {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #00ffae, #3cff77);
    color: #0d0d0d;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 0 10px #00ffae;
    transition: 0.2s;
}

.btn-top:hover {
    transform: scale(1.06);
    box-shadow: 0 0 18px #00ffae;
}

/* MAIN PROFILE CONTAINER */
.profile-container {
    max-width: 450px;
    margin: 80px auto 40px auto;
    padding: 25px;
    background: rgba(20,20,30,0.85);
    border-radius: 16px;
    box-shadow: 0 0 25px rgba(155,77,255,0.25);
    backdrop-filter: blur(6px);
    animation: fadeIn 0.35s ease-out;
    text-align: center;
}

/* HEADERS */
.profile-container h2 {
    font-size: 26px;
    color: #00ffc6;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(0,255,198,0.6);
}

/* SECTION BOXES */
.profile-section {
    background: rgba(255,255,255,0.05);
    margin-top: 25px;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 0 10px rgba(0,255,198,0.15);
    text-align: center;
}

/* SECTION TITLES */
.profile-section h3 {
    color: #9b4dff;
    margin-bottom: 15px;
    font-size: 20px;
    text-shadow: 0 0 8px rgba(155,77,255,0.7);
}

/* INPUTS */
.profile-section input {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 12px;
    border-radius: 10px;
    border: 1px solid rgba(0,255,198,0.25);
    background: rgba(255,255,255,0.07);
    color: white;
    font-size: 15px;
    outline: none;
    transition: 0.2s;
    box-sizing: border-box;
}

.profile-section input:focus {
    background: rgba(0,255,198,0.15);
    box-shadow: 0 0 12px rgba(0,255,198,0.4);
}

/* PROFILE BUTTONS */
.profile-section button {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 15px;
    transition: 0.2s;
    text-transform: uppercase;
}

.update-btn {
    background: linear-gradient(135deg, #6a00f4, #9b4dff);
    color: white;
}

.update-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 0 14px #9b4dff;
}

/* DELETE ACCOUNT */
.delete-account-btn {
    background: linear-gradient(135deg, #ff3c3c, #ff1e8a);
    color: white;
}

.delete-account-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px #ff1e8a;
}

/* LOGOUT BUTTON BELOW SECTIONS */
#logout-btn {
    display: block;
    margin: 25px auto 0 auto;
    width: 90%;
    background: linear-gradient(135deg, #ff005d, #ff4b4b);
    color: #fff;
    padding: 12px;
    border-radius: 12px;
    font-size: 16px;
    transition: 0.25s;
}

#logout-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 18px rgba(255,50,50,0.6);
}

/* MOBILE */
@media (max-width: 600px) {
    .profile-container {
        width: 100%;
        padding: 18px;
        margin-top: 60px;
    }

    .btn-top {
        top: 12px;
        right: 12px;
        padding: 8px 10px;
        font-size: 13px;
    }

    .profile-section {
        padding: 16px;
    }

    .profile-section input {
        font-size: 14px;
        padding: 10px;
    }

    .update-btn,
    .delete-account-btn,
    #logout-btn {
        font-size: 14px;
    }
}
#otp-modal input {
    margin-top: 12px;
}

#otp-modal .modal-content {
    width: 300px;
}
/* OTP modal fixes */
#otp-modal .profile-input {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(0,255,198,0.25);
    color: white;
    font-size: 18px;
}

#otp-modal .profile-input:focus {
    background: rgba(0,255,198,0.12);
    box-shadow: 0 0 12px #00ffc6;
    outline: none;
}

#otp-modal button {
    border-radius: 10px; /* <-- делает кнопки круглыми */
}

#otp-modal .modal-content {
    width: 340px;
    padding: 25px 30px;
    border-radius: 14px;
}
.otp-input {
    text-align: center;
    font-size: 22px;
    letter-spacing: 4px;
    font-weight: bold;
}
/* ===================== OTP MODAL ===================== */

.otp-box {
    width: 320px;
    background: #1e1e2e;
    border-radius: 14px;
    padding: 20px 25px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0,255,198,0.25);
}

.otp-box h3 {
    margin-top: 0;
    color: #00ffc6;
    text-shadow: 0 0 8px rgba(0,255,198,0.6);
}

#otp-code-input {
    width: 100%;
    padding: 10px;
    margin: 12px 0;
    border-radius: 10px;
    border: 1px solid rgba(0,255,198,0.25);
    background: rgba(255,255,255,0.08);
    color: #fff;
    text-align: center;
    font-size: 18px;
    letter-spacing: 4px;
}

#otp-code-input:focus {
    background: rgba(0,255,198,0.15);
    box-shadow: 0 0 10px rgba(0,255,198,0.4);
    outline: none;
}

.otp-error {
    color: #ff4b8a;
    margin-bottom: 10px;
    font-size: 14px;
}

.otp-timer {
    font-size: 14px;
    margin-bottom: 15px;
    color: #ccc;
}

.otp-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-otp {
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    border: none;
    font-weight: bold;
}

.btn-otp.primary {
    background: linear-gradient(135deg, #6a00f4, #9b4dff);
    color: white;
}

.btn-otp.secondary {
    background: rgba(255,255,255,0.1);
    color: #00ffc6;
    border: 1px solid rgba(0,255,198,0.3);
}

.btn-otp.secondary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-otp.cancel {
    background: rgba(255,50,50,0.25);
    color: #ff4b4b;
    border: 1px solid #ff4b4b;
}
/* ===========================
   RESET PASSWORD PAGE
   =========================== */

.reset-container {
    max-width: 360px;
    margin: 80px auto;
    padding: 28px 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    box-shadow: 0 0 20px rgba(0, 255, 198, 0.25);
    backdrop-filter: blur(4px);
    text-align: center;
    animation: fadeIn 0.35s ease-out;
}

.reset-container h1 {
    font-size: 32px;
    color: #00ffc6;
    margin-bottom: 12px;
    text-shadow: 0 0 12px rgba(0,255,198,0.6);
}

.reset-container p {
    font-size: 14px;
    color: #bcbcbc;
    margin-bottom: 20px;
}

/* INPUTS */

.reset-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
    text-align: left;
}

.reset-field span {
    color: #ccc;
    font-size: 14px;
}

.reset-field input {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(0,255,198,0.25);
    background: rgba(255,255,255,0.07);
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: 0.2s;
}

.reset-field input:focus {
    background: rgba(0,255,198,0.15);
    box-shadow: 0 0 10px rgba(0,255,198,0.4);
}

/* BUTTON */

#reset-btn {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #6a00f4, #9b4dff);
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    transition: 0.2s;
}

#reset-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 0 12px rgba(155, 77, 255, 0.6);
}

/* MESSAGES */

#reset-error,
#reset-success {
    display: none;
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
}

#reset-error {
    background: rgba(255, 0, 100, 0.15);
    border: 1px solid rgba(255, 0, 100, 0.4);
    color: #ff4b8a;
}

#reset-success {
    background: rgba(0,255,160,0.15);
    border: 1px solid rgba(0,255,160,0.4);
    color: #3cff99;
}

/* FOOTER */

.reset-footer {
    margin-top: 18px;
    font-size: 14px;
    color: #ccc;
}

.reset-footer a {
    color: #00ffc6;
    text-decoration: none;
}

/* Mobile adaptation */

@media (max-width: 600px) {
    .reset-container {
        width: 90%;
        padding: 22px 20px;
        margin-top: 60px;
    }

    #reset-btn {
        font-size: 15px;
    }
}

/* Fade animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
#resend-btn {
    background: rgba(255,255,255,0.08);
    color: #00ffc6;
    border: 1px solid rgba(0,255,198,0.3);
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    transition: 0.2s;
}

#resend-btn:hover:not(:disabled) {
    background: rgba(0,255,198,0.15);
}
#resend-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}