﻿/* AUTH & MODALS — Vlast Premium Theme */

.user-widget-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

#notif-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
#notif-btn:hover {
  background: rgba(126,184,247,0.12);
  border-color: rgba(126,184,247,0.35);
}

#notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #ff4757;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
}

.user-widget {
  position: relative;
}

.widget-trigger {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  color: #fff;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.widget-trigger:hover {
  background: rgba(126,184,247,0.12);
  border-color: rgba(126,184,247,0.35);
  transform: scale(1.05);
}
.widget-trigger .user-icon-placeholder {
  width: 20px;
  height: 20px;
  color: rgba(255,255,255,0.8);
}
.widget-trigger .user-icon-placeholder svg {
  width: 100%;
  height: 100%;
}

.user-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.widget-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 200px;
  background: rgba(7, 13, 28, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 8px;
  z-index: 9999;
  box-shadow: 0 20px 60px rgba(0,0,0,0.7), 0 0 0 1px rgba(126,184,247,0.06);
  transform-origin: top right;
  animation: dropdownIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes dropdownIn {
  from { opacity: 0; transform: scale(0.88) translateY(-8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.user-widget.active .widget-dropdown {
  display: block;
}

.auth-dropdown-header {
  padding: 8px 12px 10px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-blue, #7eb8f7);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 6px;
  text-align: center;
  letter-spacing: 0.3px;
}

.auth-dropdown-item {
  width: 100%;
  padding: 9px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: rgba(255,255,255,0.85);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s, color 0.15s;
}
.auth-dropdown-item:hover {
  background: rgba(126,184,247,0.1);
  color: #fff;
}
.auth-dropdown-item.primary {
  color: var(--accent-blue, #7eb8f7);
  font-weight: 600;
}
.auth-dropdown-item.primary:hover {
  background: rgba(126,184,247,0.15);
}

/* === MODAL OVERLAY === */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  pointer-events: none;
  visibility: hidden;
  transition: background 0.35s ease, backdrop-filter 0.35s ease;
}

.auth-modal-overlay.active {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  pointer-events: all;
  visibility: visible;
}

/* === MODAL BOX === */
.auth-modal-box {
  width: 100%;
  max-width: 460px;
  background: linear-gradient(160deg, rgba(10, 18, 40, 0.97) 0%, rgba(5, 8, 22, 0.98) 100%);
  border: 1px solid rgba(126, 184, 247, 0.15);
  border-radius: 20px;
  padding: 2.5rem;
  position: relative;
  color: #fff;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 0 80px rgba(126, 184, 247, 0.04);
  opacity: 0;
  transform: scale(0.9) translateY(20px);
  transition: opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.auth-modal-overlay.active .auth-modal-box {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.auth-modal-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(126, 184, 247, 0.5), transparent);
  border-radius: 50%;
}

.auth-modal-box.inbox-box {
  max-width: 520px;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
}

.auth-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
}
.auth-modal-close:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(126,184,247,0.4);
  color: var(--accent-blue, #7eb8f7);
  transform: rotate(90deg);
}

/* === AUTH FORMS === */
.auth-form-wrapper {
  position: relative;
  width: 100%;
}

.auth-form.hidden {
  display: none;
}

.auth-form h2 {
  font-family: 'Outfit', sans-serif;
  margin-bottom: 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, #e0eeff, var(--accent-blue, #7eb8f7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.6rem;
  font-weight: 800;
}

.auth-field {
  margin-bottom: 1rem;
}

.auth-field label {
  display: block;
  margin-bottom: 7px;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.auth-field input,
.auth-field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255,255,255,0.09);
  color: #fff;
  padding: 11px 14px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.auth-field input:focus,
.auth-field textarea:focus {
  border-color: rgba(126, 184, 247, 0.5);
  background: rgba(126, 184, 247, 0.06);
  box-shadow: 0 0 0 3px rgba(126, 184, 247, 0.1);
}
.auth-field input::placeholder,
.auth-field textarea::placeholder {
  color: rgba(255,255,255,0.25);
}

.pass-wrapper {
  position: relative;
  width: 100%;
}
.pass-wrapper input {
  padding-right: 46px;
}

/* === LIVING EYE === */
.living-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 26px;
  height: 16px;
  background: #fdfdfd;
  border-radius: 100% 0;
  cursor: pointer;
  overflow: hidden;
  border: 1.5px solid var(--accent-blue, #7eb8f7);
  box-shadow: 0 0 8px rgba(126, 184, 247, 0.55), inset 0 0 4px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 5;
  box-sizing: border-box;
}
.living-eye .pupil {
  position: absolute;
  width: 10px;
  height: 10px;
  background: radial-gradient(circle at 30% 30%, #444, #000);
  border: 1px solid var(--accent-blue, #7eb8f7);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s;
  box-sizing: border-box;
}
.living-eye .pupil::after {
  content: '';
  position: absolute;
  top: 20%;
  left: 20%;
  width: 3px;
  height: 3px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
}
.living-eye.closed {
  height: 6px;
  border-radius: 10px;
  transform: translateY(-50%) rotate(0deg);
}
.living-eye.closed::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent-blue, #7eb8f7);
  box-shadow: 0 0 5px var(--accent-blue, #7eb8f7);
  opacity: 0.8;
}
.living-eye.closed .pupil {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.5);
}
@keyframes eye-look {
  0%, 100% { transform: translate(-50%, -50%); }
  15%, 25%  { transform: translate(-80%, -50%) scale(1.1); }
  40%, 50%  { transform: translate(-20%, -50%) scale(1.1); }
  65%, 75%  { transform: translate(-50%, -80%) scale(1.1); }
  85%, 95%  { transform: translate(-50%, -20%) scale(1.1); }
}
.living-eye:not(.closed) .pupil {
  animation: eye-look 10s infinite ease-in-out;
}
.living-eye.staring .pupil {
  animation: none;
  transform: translate(-80%, -50%) scale(1.1);
}
.living-eye:hover {
  box-shadow: 0 0 20px var(--accent-blue, #7eb8f7);
  border-color: #fff;
  transform: translateY(-50%) rotate(45deg) scale(1.05);
}
.living-eye.closed:hover {
  transform: translateY(-50%) scale(1.05);
}

/* === AUTH BUTTON === */
.auth-btn-primary {
  width: 100%;
  margin-top: 14px;
  padding: 13px 24px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #5ca8f5 0%, #38bdf8 100%);
  color: #02060f;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  box-shadow: 0 4px 18px rgba(126, 184, 247, 0.35);
  position: relative;
  overflow: hidden;
}
.auth-btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.25s;
}
.auth-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(126, 184, 247, 0.55);
  background: linear-gradient(135deg, #7eb8f7 0%, #5dd6ff 100%);
}
.auth-btn-primary:hover::before { opacity: 1; }
.auth-btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 3px 12px rgba(126, 184, 247, 0.3);
}
.auth-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.auth-switch {
  text-align: center;
  margin-top: 1.1rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}
.auth-switch a {
  color: var(--accent-blue, #7eb8f7);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}
.auth-switch a:hover { opacity: 0.8; }

/* === INBOX === */
.inbox-list {
  overflow-y: auto;
  flex: 1;
  margin-top: 1rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(126,184,247,0.3) transparent;
}
.inbox-item {
  padding: 13px 14px;
  border-radius: 10px;
  margin-bottom: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  transition: background 0.2s;
}
.inbox-item:hover { background: rgba(255,255,255,0.06); }
.inbox-item.unread {
  border-color: rgba(126,184,247,0.3);
  background: rgba(126,184,247,0.06);
}
.inbox-item.important { border-left: 3px solid #ff4757; }
.inbox-item-title { font-weight: 700; margin-bottom: 5px; font-size: 0.95rem; }
.inbox-item-text { font-size: 0.88rem; color: rgba(255,255,255,0.65); line-height: 1.5; }
.inbox-item-date { font-size: 0.75rem; color: rgba(255,255,255,0.35); margin-top: 6px; }

/* === REVIEW STARS === */
.review-stars-input {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 1rem 0;
  font-size: 1.5rem;
  color: rgba(255,255,255,0.2);
  cursor: pointer;
}
.review-stars-input i.active { color: #ffd700; }

/* === FAQ === */
.faq-suggestion-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  text-align: left;
  transition: background 0.2s;
}
.faq-suggestion-item:hover { background: rgba(255,255,255,0.07); }
.faq-suggestion-q { font-weight: 700; margin-bottom: 0.4rem; color: var(--accent-blue, #7eb8f7); }
.faq-suggestion-a { font-size: 0.9rem; color: rgba(255,255,255,0.65); line-height: 1.5; }
.faq-empty { opacity: 0.45; text-align: center; padding: 2rem; }

/* === SUCCESS ICON === */
.form-ok-ic {
  margin: 0 auto 20px;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--accent-blue, #7eb8f7);
  background: rgba(126, 184, 247, 0.1);
  color: var(--accent-blue, #7eb8f7);
  animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes popIn {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

/* === REVIEWS GRID === */
.reviews-section { margin-top: 3rem; text-align: center; }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
  text-align: left;
}
.review-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 1rem;
  transition: background 0.2s;
}
.review-card:hover { background: rgba(255,255,255,0.07); }
.review-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 0.5rem; flex-wrap: wrap; }
.review-card-head img { border-radius: 4px; }
.review-stars { color: #ffd700; margin-left: auto; font-size: 0.85rem; }

@media (max-width: 768px) {
  .user-widget-wrap { display: none; }
  .auth-modal-box { padding: 1.75rem 1.25rem; border-radius: 16px; }
}
