@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;600;800&display=swap');

.webald-auth-app { max-width: 440px; margin: 0 auto; padding: 20px; font-family: 'Vazirmatn', Tahoma, Arial, sans-serif; direction: rtl; }
.wa-card {
  background: #fff; border: 1px solid #e2e2ec; border-radius: 18px; padding: 32px;
  box-shadow: 0 10px 34px rgba(79,60,201,.1);
}

/* Tabs */
.wa-tabs { position: relative; display: flex; background: #f2f1fb; border-radius: 12px; padding: 4px; margin-bottom: 24px; }
.wa-tab {
  flex: 1; z-index: 1; background: none; border: none; padding: 10px; font-family: inherit;
  font-size: 14px; font-weight: 600; color: #6b6b7a; cursor: pointer; border-radius: 9px; transition: color .2s ease;
}
.wa-tab.active { color: #4f3cc9; }
.wa-tab-indicator {
  position: absolute; top: 4px; right: 4px; width: calc(50% - 4px); height: calc(100% - 8px);
  background: #fff; border-radius: 9px; box-shadow: 0 2px 8px rgba(79,60,201,.15);
  transition: transform .25s ease; transform: translateX(0%);
}

/* Panels */
.wa-panel { display: none; }
.wa-panel.active { display: block; animation: waFadeIn .25s ease; }
@keyframes waFadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.wa-field { margin-bottom: 14px; position: relative; }
.wa-field input {
  width: 100%; padding: 12px 14px; border: 1px solid #e2e2ec; border-radius: 10px;
  font-size: 14px; font-family: inherit; background: #fafaff; box-sizing: border-box;
}
.wa-field input:focus { outline: none; border-color: #6a4cf0; background: #fff; }
.wa-password-wrap .wa-eye {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: 14px; opacity: .6;
}

.wa-code-input { text-align: center; letter-spacing: 8px; font-size: 20px; direction: ltr; }

.wa-btn {
  display: block; width: 100%; text-align: center; background: linear-gradient(135deg, #6a4cf0, #4f3cc9);
  color: #fff; border: none; border-radius: 10px; padding: 13px; font-size: 14px; font-weight: 600;
  cursor: pointer; text-decoration: none; font-family: inherit; box-shadow: 0 8px 20px rgba(79,60,201,.3);
  margin-top: 4px; transition: transform .15s ease;
}
.wa-btn:hover { transform: translateY(-1px); }
.wa-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.wa-error { color: #c0362c; font-size: 12.5px; margin-top: 8px; min-height: 16px; }

/* Verify step */
#waStepVerify { text-align: center; }
.wa-icon-circle {
  width: 56px; height: 56px; border-radius: 50%; background: #eef1fd; display: flex; align-items: center;
  justify-content: center; font-size: 26px; margin: 0 auto 14px;
}
#waStepVerify h2 { font-size: 18px; color: #1f2130; margin-bottom: 6px; }
.wa-sub { color: #7a7a8c; font-size: 13px; margin-bottom: 18px; }

/* Profile */
.wa-profile-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.wa-profile-header h2 { font-size: 18px; color: #1f2130; }
.wa-logout-btn {
  background: #fdeaea; color: #c0362c; border: none; border-radius: 8px; padding: 8px 14px;
  font-size: 12.5px; font-family: inherit; cursor: pointer;
}
.wa-logout-btn:hover { background: #f8d0d0; }

.wa-subs-list { display: flex; flex-direction: column; gap: 14px; }
.wa-sub-card { border: 1px solid #eee; border-radius: 14px; padding: 18px; background: #fbfbfe; }
.wa-sub-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.wa-sub-plan { font-weight: 700; font-size: 15px; color: #1f2130; }
.wa-badge { font-size: 11.5px; padding: 4px 10px; border-radius: 20px; }
.wa-badge-active { background: #e5f9ec; color: #17a552; }
.wa-badge-expired, .wa-badge-revoked { background: #fdeaea; color: #c0362c; }
.wa-badge-cancelled, .wa-badge-suspended { background: #fdf3e0; color: #b3781f; }

.wa-sub-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; border-bottom: 1px solid #f0f0f5; }
.wa-sub-row span:first-child { color: #7a7a8c; }
.wa-sub-row span:last-child { color: #1f2130; font-weight: 600; }

.wa-usage-label { margin: 12px 0 6px; font-size: 12.5px; color: #6b6b7a; }
.wa-usage-bar { background: #f0f0f5; border-radius: 20px; height: 8px; overflow: hidden; margin-bottom: 6px; }
.wa-usage-fill { background: linear-gradient(90deg, #6a4cf0, #4f3cc9); height: 100%; transition: width .3s ease; }
.wa-usage-text { font-size: 12px; color: #7a7a8c; }
.wa-sub-license { margin-top: 12px; font-size: 12px; color: #6b6b7a; direction: ltr; text-align: right; }
.wa-sub-license code { background: #f2f1fb; padding: 2px 8px; border-radius: 6px; color: #4f3cc9; }

.wa-empty { text-align: center; color: #7a7a8c; font-size: 13px; padding: 30px 0; }
.wa-spam-hint { background: #fdf3e0; color: #8a6416; font-size: 12.5px; padding: 10px 14px; border-radius: 10px; margin-bottom: 18px; line-height: 1.7; }

/* Plugin purchases */
.wa-section-title { font-size: 15px; color: #1f2130; margin: 26px 0 14px; padding-top: 20px; border-top: 1px solid #f0f0f5; }
.wa-plugins-list { display: flex; flex-direction: column; gap: 14px; }
.wa-download-btn { width: auto; display: inline-block; padding: 9px 18px; font-size: 13px; margin-top: 10px; box-shadow: none; }
