/* 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: rgba(8, 11, 38, 0.85);
  border: 1px solid rgba(168, 85, 247, 0.28);
  color: #ffffff;
  padding: 13px 16px;
  border-radius: 14px;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.auth-input:focus {
  border-color: #a855f7;
  background: rgba(14, 18, 56, 0.95);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.3), 0 0 16px rgba(168, 85, 247, 0.25);
}

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

.auth-btn-primary {
  width: 100%;
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  color: #ffffff;
  border: none;
  padding: 14px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(236, 72, 153, 0.45);
}

.auth-btn-primary:hover {
  background: linear-gradient(135deg, #9333ea 0%, #db2777 100%);
  box-shadow: 0 6px 28px rgba(236, 72, 153, 0.65);
  transform: translateY(-2px);
}

.auth-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: 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;
}

/* Live Site URL Preview Box */
.auth-url-preview-box {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(99, 102, 241, 0.35);
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.82rem;
  color: #cbd5e1;
  margin-top: 12px;
  line-height: 1.5;
}

.auth-url-live-text {
  direction: ltr;
  text-align: left;
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: #818cf8;
  background: rgba(30, 41, 59, 0.9);
  padding: 8px 12px;
  border-radius: 8px;
  margin-top: 6px;
  word-break: break-all;
  border: 1px solid rgba(129, 140, 248, 0.25);
}

.auth-url-live-text span.prefix {
  color: #94a3b8;
  font-weight: 500;
}

.auth-url-live-text span.slug {
  color: #ec4899;
  font-weight: 800;
}

/* 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;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 5, 22, 0.88);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 10px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  animation: fadeIn 0.25s ease-out;
  direction: rtl;
}

.zibel-coin-modal-card {
  background: linear-gradient(155deg, rgba(26, 18, 64, 0.96) 0%, rgba(14, 12, 42, 0.98) 100%);
  border: 1px solid rgba(168, 85, 247, 0.38);
  border-radius: 28px;
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.85), 0 0 35px rgba(168, 85, 247, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  overflow: hidden;
  direction: rtl;
  color: #ffffff;
  margin: auto;
}

.zibel-coin-modal-header {
  padding: 16px 20px;
  background: rgba(10, 8, 30, 0.92);
  border-bottom: 1px solid rgba(168, 85, 247, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.zibel-coin-modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  text-shadow: 0 0 14px rgba(168, 85, 247, 0.4);
}

.zibel-modal-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  backdrop-filter: blur(8px);
}

.zibel-modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.5);
  transform: scale(1.08);
}

.zibel-coin-modal-body {
  padding: 20px;
  overflow-y: auto;
  max-height: calc(88vh - 65px);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.zibel-coin-modal-body::-webkit-scrollbar {
  width: 4px;
}
.zibel-coin-modal-body::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.5);
  border-radius: 8px;
}

.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;
}

/* Site Creation Choice Modal Grid (Matching Home Squircle Items) */
.z-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 14px 0 8px;
}

.z-choice-item {
  background: rgba(22, 18, 54, 0.85);
  border: 1px solid rgba(168, 85, 247, 0.28);
  border-radius: 20px;
  padding: 18px 8px 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.12);
  position: relative;
}

.z-choice-item:hover, .z-choice-item:active {
  transform: translateY(-4px) scale(1.02);
  background: rgba(32, 26, 80, 0.95);
  border-color: rgba(217, 70, 239, 0.65);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55), 0 0 20px rgba(168, 85, 247, 0.4);
}

.z-choice-item .z-quick-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s ease;
}

.z-choice-item:hover .z-quick-icon-wrap {
  transform: scale(1.1);
}

.z-choice-label {
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  line-height: 1.3;
}

.z-choice-pill {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.z-choice-pill.pink {
  background: rgba(236, 72, 153, 0.2);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.45);
}

.z-choice-pill.blue {
  background: rgba(56, 189, 248, 0.18);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.z-choice-pill.purple {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

