/* Auth & Storage Quota UI Styles for Zibel Site-Saz */

/* Top User Header Bar */
.zibel-user-bar {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: inherit;
  color: #f8fafc;
  position: relative;
  z-index: 100;
}

.zibel-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.zibel-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.zibel-user-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.zibel-username-tag {
  font-weight: 700;
  font-size: 0.95rem;
  color: #818cf8;
  direction: ltr;
  display: inline-block;
}

.zibel-user-phone {
  font-size: 0.78rem;
  color: #94a3b8;
  direction: ltr;
}

/* Storage Meter Bar */
.zibel-storage-widget {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 23, 42, 0.5);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.zibel-storage-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.zibel-storage-text {
  font-size: 0.78rem;
  color: #cbd5e1;
  font-weight: 600;
}

.zibel-storage-bar-bg {
  width: 110px;
  height: 7px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  overflow: hidden;
}

.zibel-storage-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #10b981, #3b82f6);
  border-radius: 10px;
  transition: width 0.4s ease, background 0.4s ease;
}

.zibel-storage-bar-fill.warning {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.zibel-storage-bar-fill.danger {
  background: #ef4444;
}

.btn-zibel-logout {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-zibel-logout:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #ffffff;
}

/* Fullscreen Blocking Auth Modal Overlay */
.auth-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: authFadeIn 0.3s ease-out;
}

@keyframes authFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.auth-modal-card {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  width: 100%;
  max-width: 440px;
  padding: 32px 28px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 40px rgba(99, 102, 241, 0.2);
  direction: rtl;
  text-align: right;
  position: relative;
}

.auth-modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.auth-modal-badge {
  display: inline-block;
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.3);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.auth-modal-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px 0;
}

.auth-modal-desc {
  font-size: 0.88rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.5;
}

.auth-form-group {
  margin-bottom: 20px;
}

.auth-form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 8px;
}

.auth-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input {
  width: 100%;
  background: #0f172a;
  border: 1px solid #334155;
  color: #ffffff;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.auth-input.ltr {
  direction: ltr;
  text-align: left;
}

.auth-btn-primary {
  width: 100%;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #ffffff;
  border: none;
  padding: 13px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.auth-btn-primary:hover {
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  transform: translateY(-1px);
}

.auth-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.auth-status-msg {
  font-size: 0.88rem;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  display: none;
  line-height: 1.5;
  word-break: break-word;
  text-align: right;
  direction: rtl;
}

.auth-status-msg.error {
  display: block !important;
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

.auth-status-msg.success {
  display: block !important;
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.username-status-badge {
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 6px;
  display: block;
}

.username-status-badge.available {
  color: #34d399;
}

.username-status-badge.taken {
  color: #f87171;
}

.username-status-badge.checking {
  color: #fbbf24;
}

/* User folder info hint */
.auth-folder-hint {
  background: rgba(99, 102, 241, 0.08);
  border: 1px dashed rgba(99, 102, 241, 0.3);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  color: #a5b4fc;
  margin-top: 10px;
  line-height: 1.4;
}

/* Coin Widget & Modals */
.zibel-coin-pill {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
  border: 1px solid rgba(251, 191, 36, 0.5);
  transition: all 0.2s ease;
}

.zibel-coin-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.5);
}

.btn-zibel-earn-coin {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: background 0.2s ease;
}

.btn-zibel-earn-coin:hover {
  background: linear-gradient(135deg, #059669, #047857);
}

.zibel-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease-out;
}

.zibel-coin-modal-card {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  direction: rtl;
  color: #f8fafc;
}

.zibel-coin-modal-header {
  padding: 20px 24px;
  background: rgba(15, 23, 42, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.zibel-coin-modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.zibel-modal-close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #94a3b8;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.zibel-modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.zibel-coin-modal-body {
  padding: 24px;
  overflow-y: auto;
}

.coin-task-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  margin-bottom: 12px;
}

.coin-task-title {
  font-weight: 600;
  font-size: 0.92rem;
  color: #f1f5f9;
}

.coin-task-badge {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.coin-tx-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.coin-tx-item:last-child {
  border-bottom: none;
}

.coin-tx-plus {
  color: #34d399;
  font-weight: 700;
}

.coin-tx-minus {
  color: #f87171;
  font-weight: 700;
}

