/* =====================================================
   AUTH MODAL OVERLAY
===================================================== */

#kk-auth-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9999;
  backdrop-filter: blur(2px);
}

/* =====================================================
   MODAL CONTAINER
===================================================== */

#kk-auth-modal {
  background: #ffffff;
  max-width: 420px;
  margin: 8vh auto;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  animation: kkFadeUp 0.25s ease;
  position: relative;
}

/* =====================================================
   MODAL TITLE
===================================================== */

#kk-auth-title {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
}

/* =====================================================
   CLOSE ICON
===================================================== */

#kk-close {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 22px;
  cursor: pointer;
  color: #6b7280;
}

#kk-close:hover {
  color: #000;
}

/* =====================================================
   TABS (TEXT-STYLE)
===================================================== */

.kk-tabs {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 22px;
}

.kk-tabs button {
  background: none;
  border: none;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  color: #6b7280;
  position: relative;
}

.kk-tabs button:hover {
  color: #374151;
}

.kk-tabs button.active {
  color: #2271b1;
}

.kk-tabs button.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: #2271b1;
}

/* =====================================================
   TAB VISIBILITY
===================================================== */

.kk-tab {
  display: none;
}

.kk-tab.active {
  display: block;
}

/*
*/
.kk-nav-profile-wrap {
  position: relative;
  display: inline-block;
}

.kk-profile-submenu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  min-width: 120px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  z-index: 9999;
}

.kk-profile-submenu a {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  color: #333;
}

.kk-profile-submenu a:hover {
  background: #f5f5f5;
}

.kk-nav-profile-wrap:hover .kk-profile-submenu {
  display: block;
}

/* =====================================================
   FORM ELEMENTS
===================================================== */

#kk-auth-modal input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  margin-bottom: 14px;
  font-size: 14px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

#kk-auth-modal input:focus {
  outline: none;
  border-color: #2271b1;
  box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.15);
}

#kk-auth-modal button {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: none;
  color: #0d0d0d;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 6px;
}

#kk-auth-modal button:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

#kk-auth-modal .submit-btn {
  background: #135e96;
  color: #ffffff;
}

/* =====================================================
   MESSAGE AREA
===================================================== */

#kk-auth-msg {
  text-align: center;
  font-size: 14px;
  margin-top: 12px;
  min-height: 18px;
  color: #374151;
}

/* =====================================================
   PROFILE FORM (FRONTEND)
===================================================== */

.kk-profile-form {
  max-width: 720px;
  margin: 40px auto;
  background: #ffffff;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.kk-profile-form h3 {
  font-size: 22px;
  margin-bottom: 22px;
}

.kk-profile-form label {
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
  color: #374151;
}

.kk-profile-form input,
.kk-profile-form textarea,
.kk-profile-form select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  margin-bottom: 18px;
  font-size: 14px;
}

.kk-profile-form textarea {
  min-height: 100px;
  resize: vertical;
}

.kk-profile-form input:disabled {
  background: #f3f4f6;
}

.kk-profile-form button {
  background: #2271b1;
  color: #ffffff;
  padding: 12px 18px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
}

.kk-profile-form button:hover {
  background: #135e96;
}

/* =====================================================
   ANIMATION
===================================================== */

@keyframes kkFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
