/* ================================================================
   mail.oneline.az PORTALI
   Yalnız webmail-portal/index.php yükləyir — panelin səhifələrinə təsir etmir.
   Webmail-in öz üslubu style.css-dədir (.wm-*); burada onun ətrafı və telefon düzülüşü var.
   ================================================================ */

/* ── Giriş səhifəsi ── */
.wmp-aside-list {
  list-style: none; margin: 28px 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 12px;
  color: var(--text-dim); font-size: 14.5px;
}
.wmp-aside-list li { display: flex; gap: 10px; align-items: flex-start; }
.wmp-aside-list li::before {
  content: ''; flex-shrink: 0; width: 7px; height: 7px; margin-top: 7px;
  border-radius: 50%; background: var(--lime);
}
.wmp-login-help {
  margin: 18px 0 0; text-align: center;
  font-size: 12.5px; line-height: 1.5; color: var(--text-faint);
}
/* Dil keçidi panelin girişində düymədir, burada keçid (JS-siz işləsin deyə) — görünüş eyni */
.login-lang-bar a {
  padding: 4px 14px; border: 1px solid var(--line); border-radius: 20px;
  color: var(--text-dim); text-decoration: none;
  font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  transition: border-color .15s, color .15s, background .15s;
}
.login-lang-bar a:hover { border-color: var(--lime); color: var(--lime); }
.login-lang-bar a.is-active { border-color: var(--lime); background: rgba(49, 53, 254, .12); color: var(--lime); }

/* ── Mail paketlərimiz (giriş səhifəsinin yan tərəfi) ── */
.wmp-plans { margin-top: 34px; }
.wmp-plans-title {
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 12px;
}
.wmp-plans-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.wmp-plan {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 16px; border-radius: 12px;
  background: rgba(255,255,255,.03); border: 1px solid var(--line-soft);
  transition: border-color .15s, transform .15s;
}
.wmp-plan:hover { border-color: var(--lime); transform: translateY(-1px); }
.wmp-plan-name { font-weight: 800; font-size: 16px; color: var(--text); }
.wmp-plan-meta { font-size: 12.5px; color: var(--text-dim); }
.wmp-plan-desc { font-size: 12px; color: var(--text-faint); line-height: 1.4; }
.wmp-plan-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.wmp-plan-price { font-weight: 800; font-size: 15px; color: var(--text); white-space: nowrap; }
.wmp-plan-price span { font-weight: 500; font-size: 11.5px; color: var(--text-faint); }
.wmp-features {
  margin-top: 16px; padding: 14px 16px; border-radius: 12px;
  background: rgba(49, 53, 254, .06); border: 1px solid var(--line-soft);
}
.wmp-features-title {
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 10px;
}
.wmp-features-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 7px 16px;
}
.wmp-features-list li {
  position: relative; padding-left: 20px;
  font-size: 12.5px; line-height: 1.4; color: var(--text-dim);
}
.wmp-features-list li::before {
  content: ''; position: absolute; left: 2px; top: 4px;
  width: 9px; height: 5px; border-left: 2px solid var(--lime); border-bottom: 2px solid var(--lime);
  transform: rotate(-45deg);
}

/* Telefonda panelin girişi yan tərəfi gizlədir — burada isə paketlər formanın altında qalır */
@media (max-width: 860px) {
  .wmp-login .auth-aside { display: flex; order: 2; padding: 28px 20px; border-right: none; border-top: 1px solid var(--line-soft); }
  .wmp-login .auth-aside > div:first-child > img,
  .wmp-login .auth-aside .auth-aside-quote,
  .wmp-login .auth-aside .wmp-aside-list { display: none !important; }
  .wmp-login .wmp-plans { margin-top: 0; }
  .wmp-login .auth-form-col { order: 1; }
}

/* ── Qutu seçimi (Google / panel hesabı ilə giriş) ── */
.wmp-pick-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.wmp-pick-list form { margin: 0; }
.wmp-pick-item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 12px 14px; border-radius: 12px; cursor: pointer; text-align: left;
  background: var(--panel-2); border: 1px solid var(--line-soft); color: var(--text-dim);
  transition: border-color .15s, background .15s;
}
.wmp-pick-item:hover:not([disabled]) { border-color: var(--lime); color: var(--text); }
.wmp-pick-item[disabled] { opacity: .55; cursor: not-allowed; }
.wmp-pick-av {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(49, 53, 254, .16); color: var(--lime); font-weight: 800;
}
.wmp-pick-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wmp-pick-text strong { color: var(--text); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wmp-pick-text small { font-size: 12px; color: var(--warning, #f59e0b); }
.wmp-pick-logout { margin: 0; }
.wmp-login-help a { color: var(--lime); text-decoration: none; font-weight: 600; }

/* ── Webmail ── */
body.wmp-app { background: var(--ink); overflow: hidden; }
.wmp-shell { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.wmp-topbar-logo { height: 22px; flex-shrink: 0; }
.wmp-logout-form { margin: 0; }
.wmp-folders-btn, .wmp-read-back, .wmp-folders-backdrop { display: none; }

@media (max-width: 900px) {
  /* Qovluqlar soldan açılan menyu olur */
  .wmp-folders-btn { display: flex; }
  .wmp-app .wm-sidebar {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 8000;
    width: 260px; transform: translateX(-100%); transition: transform .2s ease;
  }
  /* Kölgə yalnız açıqkən — bağlı menyunun kölgəsi ekranın sol kənarına düşürdü */
  .wmp-folders-open .wm-sidebar { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.35); }
  .wmp-folders-open .wmp-folders-backdrop {
    display: block; position: fixed; inset: 0; z-index: 7999; background: rgba(0,0,0,.45);
  }
  .wmp-app .wm-list-pane { width: 300px; }
}

@media (max-width: 700px) {
  .wmp-app .wm-topbar { padding: 0 10px; gap: 8px; }
  .wmp-app .wm-account-addr, .wmp-logout-label { display: none; }
  .wmp-app .wm-search { max-width: none; }

  /* Siyahı tam enində; məktub açılanda onun üstünü tam örtür, "geri" düyməsi ilə bağlanır */
  .wmp-app .wm-list-pane { width: 100%; border-right: none; }
  .wmp-app .wm-read-pane { display: none; }
  .wmp-app .wm-read-pane:has(#wmReadContent[style*="flex"]) {
    display: flex; position: fixed; inset: 0; z-index: 7000;
  }
  .wmp-read-back { display: inline-flex; }
  .wmp-app .wm-read-actions { overflow-x: auto; padding: 8px 10px; }
  .wmp-app .wm-read-actions .wm-action-btn { flex-shrink: 0; white-space: nowrap; }
  .wmp-app .wm-compose-modal { padding: 0; }
  .wmp-app .wm-compose-box { width: 100%; max-width: 100%; max-height: 100dvh; border-radius: 0; }
}
