/* ==========================================================================
   Waeyuk Google-Style Account Chooser & Multi-Account Switcher
   ========================================================================== */

#googleAccountChooser {
  width: 100%;
  animation: gacFadeIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes gacFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.gac-header {
  text-align: center;
  margin-bottom: 22px;
}

.gac-icon-glow {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, rgba(14, 165, 233, 0.05) 70%);
  border: 1px solid rgba(56, 189, 248, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  font-size: 22px;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.25);
}

.gac-title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  font-family: 'Tajawal', sans-serif;
}

.gac-subtitle {
  margin: 0;
  font-size: 13px;
  color: #94a3b8;
  font-family: 'Tajawal', sans-serif;
}

/* Account List */
.gac-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
  max-height: 340px;
  overflow-y: auto;
  padding: 2px;
}

.gac-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.22s ease;
  position: relative;
  text-decoration: none;
  user-select: none;
  font-family: 'Tajawal', sans-serif;
}

.gac-item:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.gac-avatar-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.gac-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(56, 189, 248, 0.4);
  background: #0f172a;
}

.gac-status-dot {
  position: absolute;
  bottom: 0px;
  left: 0px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid #0f172a;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

.gac-status-dot.expired {
  background: #eab308;
  box-shadow: 0 0 8px #eab308;
}

.gac-info {
  flex: 1;
  text-align: right;
  min-width: 0;
}

.gac-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.gac-details {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gac-role-badge {
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
  font-weight: 600;
}

.gac-badge {
  flex-shrink: 0;
}

.gac-badge-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.gac-badge-pill.active {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.gac-badge-pill.expired {
  background: rgba(234, 179, 8, 0.12);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.gac-arrow {
  color: #64748b;
  font-size: 13px;
  transition: transform 0.2s, color 0.2s;
  margin-right: 4px;
}

.gac-item:hover .gac-arrow {
  color: #38bdf8;
  transform: translateX(-4px);
}

/* Removal Mode */
.gac-remove-btn {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.gac-remove-btn:hover {
  background: #ef4444;
  color: #fff;
  transform: scale(1.1);
}

/* Actions at bottom */
.gac-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.gac-action-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px dashed rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  cursor: pointer;
  transition: all 0.22s ease;
  text-align: right;
  font-family: inherit;
}

.gac-action-btn:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: #38bdf8;
  transform: translateY(-1px);
}

.gac-btn-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  font-size: 15px;
  flex-shrink: 0;
}

.gac-btn-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.gac-btn-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #f8fafc;
}

.gac-btn-desc {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

.gac-btn-arrow {
  color: #64748b;
  font-size: 13px;
}

.gac-footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 4px;
}

.gac-link-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  transition: color 0.2s;
  padding: 4px 8px;
}

.gac-link-btn:hover {
  color: #cbd5e1;
}

.back-to-chooser-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  margin-bottom: 16px;
}

.back-to-chooser-btn {
  background: none;
  border: none;
  color: #38bdf8;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  transition: all 0.2s;
}

.back-to-chooser-btn:hover {
  color: #7dd3fc;
  transform: translateX(3px);
}
